zebbern/claude-code-guide/windows-privilege-escalation
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks to "escalate privileges on Windows," "find Windows privesc vectors," "enumerate Windows for privilege escalation," "exploit Windows misconfigurations," or "perform post-exploitation privilege escalation." It provides comprehensive guidance for discovering and exploiting privilege escalation vulnerabilities in Windows environments.
Install
npx vskill@latest install zebbern/claude-code-guide/windows-privilege-escalationSKILL.md
Windows Privilege Escalation
Purpose
Provide systematic methodologies for discovering and exploiting privilege escalation vulnerabilities on Windows systems during penetration testing engagements. This skill covers system enumeration, credential harvesting, service exploitation, token impersonation, kernel exploits, and various misconfigurations that enable escalation from standard user to Administrator or SYSTEM privileges.
Inputs / Prerequisites
- Initial Access: Shell or RDP access as standard user on Windows system
- Enumeration Tools: WinPEAS, PowerUp, Seatbelt, or manual commands
- Exploit Binaries: Pre-compiled exploits or ability to transfer tools
- Knowledge: Understanding of Windows security model and privileges
- Authorization: Written permission for penetration testing activities
Outputs / Deliverables
- Privilege Escalation Path: Identified vector to higher privileges
- Credential Dump: Harvested passwords, hashes, or tokens
- Elevated Shell: Command execution as Administrator or SYSTEM
- Vulnerability Report: Documentation of misconfigurations and exploits
- Remediation Recommendations: Fixes for identified weaknesses
Core Workflow
1. System Enumeration
Basic System Information
User Enumeration
Network Enumeration
Antivirus Enumeration
2. Credential Harvesting
SAM and SYSTEM Files
HiveNightmare (CVE-2021-36934)
Search for Passwords
Unattend.xml Credentials
WiFi Passwords
PowerShell History
3. Service Exploitation
Incorrect Service Permissions
Unquoted Service Paths
AlwaysInstallElevated
4. Token Impersonation
Check Impersonation Privileges
Potato Attacks
5. Kernel Exploitation
Find Kernel Vulnerabilities
Common Kernel Exploits
6. Additional Techniques
DLL Hijacking
Runas with Saved Credentials
WSL Exploitation
Quick Reference
Enumeration Tools
| Tool | Command | Purpose | |
|---|---|---|---|
| WinPEAS | winPEAS.exe | Comprehensive enumeration | |
| PowerUp | Invoke-AllChecks | Service/path vulnerabilities | |
| Seatbelt | Seatbelt.exe -group=all | Security audit checks | |
| Watson | Watson.exe | Missing patches | |
| JAWS | .\jaws-enum.ps1 | Legacy Windows enum | |
| PrivescCheck | Invoke-PrivescCheck | Privilege escalation checks |
Default Writable Folders
Common Privilege Escalation Vectors
| Vector | Check Command | ||
|---|---|---|---|
| Unquoted paths | `wmic service get pathname \ | findstr /i /v """` | |
| Weak service perms | accesschk.exe -uwcqv "Everyone" * | ||
| AlwaysInstallElevated | reg query HKCU\...\Installer /v AlwaysInstallElevated | ||
| Stored credentials | cmdkey /list | ||
| Token privileges | whoami /priv | ||
| Scheduled tasks | schtasks /query /fo LIST /v |
Impersonation Privilege Exploits
| Privilege | Tool | Usage | |
|---|---|---|---|
| SeImpersonatePrivilege | JuicyPotato | CLSID abuse | |
| SeImpersonatePrivilege | PrintSpoofer | Spooler service | |
| SeImpersonatePrivilege | RoguePotato | OXID resolver | |
| SeBackupPrivilege | robocopy /b | Read protected files | |
| SeRestorePrivilege | Enable-SeRestorePrivilege | Write protected files | |
| SeTakeOwnershipPrivilege | takeown.exe | Take file ownership |
Constraints and Limitations
Operational Boundaries
- Kernel exploits may cause system instability
- Some exploits require specific Windows versions
- AV/EDR may detect and block common tools
- Token impersonation requires service account context
- Some techniques require GUI access
Detection Considerations
- Credential dumping triggers security alerts
- Service modification logged in Event Logs
- PowerShell execution may be monitored
- Known exploit signatures detected by AV
Legal Requirements
- Only test systems with written authorization
- Document all escalation attempts
- Avoid disrupting production systems
- Report all findings through proper channels
Examples
Example 1: Service Binary Path Exploitation
Example 2: AlwaysInstallElevated Exploitation
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 85 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/windows-privilege-escalation/SKILL.md
Popularity
- Repository stars
- 3,689
- Repository forks
- 341
- 7-day trend score
- 41
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 22 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/zebbern/claude-code-guide/windows-privilege-escalation)