acl-abuse
Exploits misconfigured Active Directory ACLs for privilege escalation. Covers GenericAll, GenericWrite, WriteDACL, WriteOwner, ForceChangePassword, targeted…
Windows local privilege escalation enumeration and attack surface mapping.
$ npx -y skills add blacklanternsecurity/red-run --skill windows-discovery --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/windows-discoveryContext preview
The summary Claude sees to decide when to auto-load this skill.
Windows local privilege escalation enumeration and attack surface mapping.
name: windows-discovery description: > Windows local privilege escalation enumeration and attack surface mapping. keywords: - enumerate privesc - check for privilege escalation - run winpeas - windows privesc - local privesc - check my privileges - escalate on windows - what can I escalate - post-exploitation windows tools: - WinPEAS - PowerUp - Seatbelt - Watson - WES-NG - PrivescCheck - accesschk opsec: low
You are helping a penetration tester enumerate a Windows system for local privilege escalation vectors. 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`).
This skill covers Windows host discovery — enumerating system configuration, identifying privilege escalation vectors, and reporting findings to the orchestrator. When you confirm an exploitable vector — **STOP**.
Do not load or execute another skill. Do not continue past your scope boundary. Instead, return to the orchestrator with:
The orchestrator decides what runs next. Your job is to execute this skill thoroughly and return clean findings.
**Stay in methodology.** Only use techniques documented in this skill. If you encounter a scenario not covered here, note it and return — do not improvise attacks, write custom exploit code, or apply techniques from other domains. The orchestrator will provide specific guidance or route to a different skill.
**Do NOT spider or enumerate SMB shares.** Never run `nxc smb`, `spider_plus`, `manspider`, `smbclient`, or any remote share enumeration tool. Share spidering is performed from the attackbox by ad-discovery or network-recon — not from inside a low-privilege shell. If `net share` (the only allowed share command) reveals a share not already in engagement state, record it as an finding via `add_vuln()` and note it in your return summary. Do not connect to it, read its contents, or spider it — a different agent handles that from the attackbox.
Call `get_state_summary()` from the state MCP server to read current engagement state. Use it to:
Write actionable findings **immediately** via state so the orchestrator can react in real time (via event watcher) instead of waiting for your full return summary. Use these tools as you discover findings:
Your return summary must include:
Gather baseline system information for exploit matching and context.
systeminfo systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type" /C:"Hotfix(s)" hostname
[System.Environment]::OSVersion.Version Get-ComputerInfo | Select-Object CsName, OsName, OsVersion, OsArchitecture, OsBuildNumber, WindowsVersion wmic os get Caption, Version, BuildNumber, OSArchitecture
**Key outputs to note:**
**Patch analysis (offline — run on attacker machine):**
# WES-NG — compare systeminfo against known vulnerabilities python3 wes.py --update python3 wes.py systeminfo.txt
**Watson (on target — .NET 2.0+):**
Watson.exe
This is the highest-priority check — token privileges determine immediate escalation paths.
**OPSEC WARNING:** `whoami` and `whoami /priv` are heavily monitored by EDR (CrowdStrike triggers on these). In OPSEC-sensitive engagements, prefer inferring privileges from context or using alternative methods:
# OPSEC-safe alternatives (less signatured than whoami)
[System.Security.Principal.WindowsIdentity]::GetCurrent().Name
[System.Security.Principal.WindowsIdentity]::GetCurrent().Groups | ForEach-Object { $_.Translate([System.Security.Principal.NTAccount]) }
# Check specific privilege without whoami
[bool](([System.Security.Principal.WindowsIdentity]::GetCurrent()).groups -match "S-1-5-32-544") # Is admin?
# Token privileges via .NET (no whoami.exe process creation)
Add-Type -TypeDefinition @"
using System;using System.Runtime.InteropServices;
public class Priv{
[DllImport("advapi32.dll",SetLastSecurity 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…