agentleFS
noahfranklinnoahfranklin/gideon/skills/privilege-escalation/SKILL.md

privilege-escalation

Skill2 starsChanged 47 days agoMITView on GitHub

Use after gaining an initial foothold to escalate privileges on a Linux or Windows host — enumerating misconfigurations, weak permissions, sudo/SUID issues, service and scheduled-task abuse, credential harvesting, kernel/software vulns, and token/capability abuse. Maps to MITRE ATT&CK Privilege Escalation, with detection and remediation. Authorized engagements only.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Local Privilege Escalation (Linux & Windows)

Turning a low-privilege foothold into higher (root/SYSTEM/admin) access on a host. Mapped to MITRE ATT&CK (Privilege Escalation). Enumerate systematically before attempting anything.

0. Authorization gate

  • Foothold is in scope; escalation authorized on this host.
  • Note anything changed for clean rollback.

1. Linux

  • Enumeration: users/groups, sudo rights, SUID/SGID binaries, capabilities, cron/systemd timers, writable service files & PATH, world-writable sensitive files, mounted secrets, kernel version, running services, container context.
  • Common paths:
    • sudo misconfig / exploitable allowed commands (GTFOBins-style).
    • SUID/SGID or capability abuse.
    • Writable cron/systemd units or scripts they run.
    • Weak file permissions on credentials/keys/config.
    • Kernel or local-service vulns (validate applicability before running).
  • Fix: least-privilege sudo, remove needless SUID/capabilities, secure cron/service file perms, patch, secrets hygiene.

2. Windows

  • Enumeration: privileges/tokens (whoami /priv), services (unquoted paths, weak perms, writable binaries), scheduled tasks, AlwaysInstallElevated, autoruns, DLL hijack opportunities, stored creds (registry, files, credential manager), UAC config.
  • Common paths:
    • Service misconfig (weak service/binary permissions, unquoted service paths).
    • Token privilege abuse (e.g., SeImpersonate → potato-style local escalation).
    • DLL hijacking / writable PATH.
    • Credential harvesting from files/registry/memory.
    • Missing patches for known local escalations.
  • Fix: correct service/file ACLs, quote service paths, remove AlwaysInstallElevated, patch, restrict dangerous privileges, credential hygiene, LAPS.

3. Credential-based escalation

Harvested credentials/keys/hashes often beat exploits: reuse locally or to move laterally (→ post-exploitation, active-directory-pentest).

4. Tooling

linpeas/linenum, pspy (Linux); winPEAS, PowerUp/SharpUp, Seatbelt (Windows). Treat automated output as leads to validate, not conclusions.

5. Reporting

Per finding: host, misconfig/vuln, escalation achieved, severity, remediation. Feed chains into vuln-chaining. Checklist: references/privesc-checklist.md.


<sub>© 2026 noahfranklin · Part of the Gideon security suite · MIT License · Original work.</sub>

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.