acl-abuse
Exploits misconfigured Active Directory ACLs for privilege escalation. Covers GenericAll, GenericWrite, WriteDACL, WriteOwner, ForceChangePassword, targeted…
Exploit remote SMB vulnerabilities for unauthenticated code execution on Windows hosts.
$ npx -y skills add blacklanternsecurity/red-run --skill smb-exploitation --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/smb-exploitationContext preview
The summary Claude sees to decide when to auto-load this skill.
Exploit remote SMB vulnerabilities for unauthenticated code execution on Windows hosts.
name: smb-exploitation description: > Exploit remote SMB vulnerabilities for unauthenticated code execution on Windows hosts. keywords: - MS08-067 - MS17-010 - EternalBlue - SMBGhost - smb exploit - exploit SMB - exploit this Windows host - smb-vuln - CVE-2008-4250 - CVE-2017-0143 - CVE-2020-0796 - CVE-2009-3103 - NetAPI exploit - eternal blue - eternal romance - eternal synergy tools: - Metasploit (msfconsole) - impacket - nmap (for confirmation only) opsec: high
You are helping a penetration tester exploit a confirmed SMB vulnerability for remote code execution. 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 SMB protocol exploitation — enumeration, authentication attacks, and share access. When you reach the boundary of this scope — whether through completing your methodology or discovering findings outside your domain — **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.
Call `get_state_summary()` from the state MCP server to read current engagement state. Use it to:
Your return summary must include:
VPN, or appropriate interface)
If not already provided by the orchestrator or conversation context, determine:
1. **Which vulnerability?** Check engagement state or ask — MS08-067, MS17-010, MS09-050, or SMBGhost 2. **Target OS and architecture?** Windows version, service pack, 32-bit vs 64-bit — critical for exploit target selection 3. **Attack machine IP?** Run `ip -4 addr show tun0` (or appropriate interface) to get the listener address
| CVE | Vulnerability | Affected OS | Notes | |-----|--------------|-------------|-------| | CVE-2008-4250 | MS08-067 | XP SP0-SP3, Server 2003 SP0-SP2, Vista SP0-SP1, Server 2008 pre-SP2 | Most reliable on XP/2003 | | CVE-2009-3103 | MS09-050 | Vista SP1-SP2, Server 2008 SP1-SP2 | SMBv2 negotiation bug | | CVE-2017-0143 | MS17-010 (EternalBlue) | XP through Server 2016 (unpatched) | Unstable on XP/2003 32-bit | | CVE-2020-0796 | SMBGhost | Windows 10 1903/1909, Server v1903/v1909 | SMBv3 compression |
Skip this step if the orchestrator already provided this information.
**Metasploit module:** `exploit/windows/smb/ms08_067_netapi`
Preferred for Windows XP and Server 2003. More stable than EternalBlue on these older systems.
**Target selection — critical for reliability:**
| Target ID | OS | |-----------|----| | 0 | Automatic Targeting | | 1 | Windows 2000 Universal | | 2 | Windows XP SP0/SP1 Universal | | 3 | Windows XP SP2 English (NX) | | 4 | Windows XP SP3 English (NX) | | 5 | Windows 2003 SP0 Universal | | 6 | Windows XP SP2/SP3 English (AlwaysOn NX) | | 7 | Windows 2003 SP1 English (NO NX) | | 8 | Windows 2003 SP1 English (NX) | | 9 | Windows 2003 SP2 English (NO NX) | | 10 | Windows 2003 SP2 English (NX) |
**Decision logic:**
reverse doesn't
fingerprinting
specific targets exist in Metasploit (check `show targets` for full list)
**Payload selection:**
payload can fail on slow/filtered links
**Metasploit modules (choose based on target OS):**
| Module | Best For | Notes | |--------|------
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…