/network-recon
Network reconnaissance, host discovery, port scanning, and OS fingerprinting. Produces a port/service map that the orchestrator uses to route to service-specific enumeration skills.
$ npx -y skills add blacklanternsecurity/red-run --skill network-recon --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/network-recon
Context preview
The summary Claude sees to decide when to auto-load this skill.
Network reconnaissance, host discovery, port scanning, and OS fingerprinting. Produces a port/service map that the orchestrator uses to route to service-specific enumeration skills.
SKILL.md
network-recon.SKILL.mdname: network-recon
description: >
Network reconnaissance, host discovery, port scanning, and OS
fingerprinting. Produces a port/service map that the orchestrator uses
to route to service-specific enumeration skills.
keywords:
- scan this network
- nmap
- port scan
- host discovery
- recon this target
- what's running on this host
- network scan
- find open ports
- scan this IP
- scan this subnet
- scan through tunnel
- pivot scan
- proxychains nmap
- internal network recon
tools:
- nmap
opsec: medium
Network Reconnaissance
You are helping a penetration tester perform network reconnaissance and service enumeration. All testing is under explicit written authorization.
Engagement Logging
Check for `./engagement/` directory. If absent, proceed without logging.
When an engagement directory exists:
- Print `[network-recon] Activated → <target>` to the screen on activation.
- **Evidence** → save significant output to `engagement/evidence/` with
descriptive filenames (e.g., `sqli-users-dump.txt`, `ssrf-aws-creds.json`).
Scope Boundary
This skill covers network reconnaissance — host discovery, port scanning, OS fingerprinting, and output parsing. It produces a port/service map; the orchestrator routes to service-specific enumeration skills for deeper checks.
Do not load or execute another skill. Do not continue past your scope boundary. Instead, return to the orchestrator with:
- What was found (hosts, ports, services, OS)
- Recommended next skills based on discovered services
- Context to pass (target IP, open ports, service versions)
The orchestrator decides what runs next. Your job is to scan thoroughly and return a clean port/service map.
**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.
You MUST NOT:
- Enumerate individual services (SMB shares, database access, FTP anonymous) —
the orchestrator routes to **smb-enumeration**, **database-enumeration**, **remote-access-enumeration**, or **infrastructure-enumeration**
- Perform web application testing — route to **web-discovery**
- Perform AD enumeration — route to **ad-discovery**
- Perform privilege escalation — route to **linux-discovery** or **windows-discovery**
- Test credentials or brute force — route to **password-spraying**
- Exploit confirmed vulnerabilities — route to the appropriate technique skill
State Management
Call `get_state_summary()` from the state MCP server to read current engagement state. Use it to:
- Skip re-testing targets, parameters, or vulns already confirmed
- Leverage existing credentials or access for this technique
- Understand what's been tried and failed (check Blocked section)
State Writes
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:
- `add_pivot()` — new subnets discovered from routing info or nmap traceroute
- `add_blocked()` — scan failures (host unreachable, firewall blocking)
Your return summary must include:
- All discovered hosts (with IP, OS, role)
- Open ports and services per host (formatted as per-host one-liner)
- OS fingerprinting results
- Routing recommendations based on discovered services
- Blocked items (what failed and why, whether retryable)
Prerequisites
- Network access to target(s) — direct or via pivot tunnel
- Target IP, hostname, or CIDR range
- Scope confirmation (which IPs/ranges are authorized)
- nmap installed (core tool — all other tools optional)
- **If scanning through a tunnel:** check engagement state for tunnel details
(type, local endpoint, requires_proxychains, proxychains config path)
Privileged Commands
Claude Code cannot execute `sudo` commands directly. Nmap requires root for SYN scans, UDP scans, OS detection, and most NSE scripts. How nmap runs depends on whether the nmap MCP server is available.
MCP nmap Server (Subagent Mode)
When running as a subagent with nmap MCP access, use the `nmap_scan` tool directly — no sudo handoff needed. The MCP server runs `sudo nmap` in a subprocess and returns parsed JSON.
nmap_scan(target="10.10.10.5", options="-A -p- -T4")
- Returns structured JSON: hosts, ports, services, scripts, OS detection.
- Raw XML is saved to `engagement/evidence/` automatically.
- Use `get_scan(scan_id)` to retrieve previous results.
- The **Nmap Is the Gate** principle still applies — do not run other network
tools until `nmap_scan` completes and you've parsed the results.
Handoff Protocol (Inline Mode)
When running inline without nmap MCP access, hand off to the user for manual execution. This applies to:
- **nmap** — SYN scans (`-sS`), UDP scans (`-sU`), OS detection (`-O`), and most NSE scripts that need raw sockets
- **responder** — LLMNR/NBNS/mDNS poisoning (requires raw sockets)
- **mount** — NFS/SMB mounting
**Handoff protocol:**
1. Present the full command including `sudo` to the user 2. Specify the output file path (ensure commands include `-oA`, `-oG`, or `-oL` flags) 3. Ask the user to run it in their terminal 4. Read the output file when the user confirms completion 5. Continue analysis based on the parsed output
**nmap always requires either MCP or the handoff protocol.** Do not run nmap directly from Bash — not even non-privileged scan types like `-sT` or `-sV`. Unprivileged nmap produces unreliable results (connect scans miss filtered ports, no OS detection, no raw-socket NSE scripts).
Nmap Is the Gate — Hard Stop
**After starting an nmap scan (via MCP or handoff), STOP. Do nothing else until scan results are available.** No httpx, no curl, no netexec, no nuclei, no "quick triage" — nothing touch
Read more
name: network-recon description: > Network reconnaissance, host discovery, port scanning, and OS fingerprinting. Produces a port/service map that the orchestrator uses to route to service-specific enumeration skills. keywords: - scan this network - nmap - port scan - host discovery - recon this target - what's running on this host - network scan - find open ports - scan this IP - scan this subnet - scan through tunnel - pivot scan - proxychains nmap - internal network recon tools: - nmap opsec: medium
Network Reconnaissance
You are helping a penetration tester perform network reconnaissance and service enumeration. All testing is under explicit written authorization.
Engagement Logging
Check for `./engagement/` directory. If absent, proceed without logging.
When an engagement directory exists:
- Print `[network-recon] Activated → <target>` to the screen on activation.
- **Evidence** → save significant output to `engagement/evidence/` with
descriptive filenames (e.g., `sqli-users-dump.txt`, `ssrf-aws-creds.json`).
Scope Boundary
This skill covers network reconnaissance — host discovery, port scanning, OS fingerprinting, and output parsing. It produces a port/service map; the orchestrator routes to service-specific enumeration skills for deeper checks.
Do not load or execute another skill. Do not continue past your scope boundary. Instead, return to the orchestrator with:
- What was found (hosts, ports, services, OS)
- Recommended next skills based on discovered services
- Context to pass (target IP, open ports, service versions)
The orchestrator decides what runs next. Your job is to scan thoroughly and return a clean port/service map.
**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.
You MUST NOT:
- Enumerate individual services (SMB shares, database access, FTP anonymous) —
the orchestrator routes to **smb-enumeration**, **database-enumeration**, **remote-access-enumeration**, or **infrastructure-enumeration**
- Perform web application testing — route to **web-discovery**
- Perform AD enumeration — route to **ad-discovery**
- Perform privilege escalation — route to **linux-discovery** or **windows-discovery**
- Test credentials or brute force — route to **password-spraying**
- Exploit confirmed vulnerabilities — route to the appropriate technique skill
State Management
Call `get_state_summary()` from the state MCP server to read current engagement state. Use it to:
- Skip re-testing targets, parameters, or vulns already confirmed
- Leverage existing credentials or access for this technique
- Understand what's been tried and failed (check Blocked section)
State Writes
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:
- `add_pivot()` — new subnets discovered from routing info or nmap traceroute
- `add_blocked()` — scan failures (host unreachable, firewall blocking)
Your return summary must include:
- All discovered hosts (with IP, OS, role)
- Open ports and services per host (formatted as per-host one-liner)
- OS fingerprinting results
- Routing recommendations based on discovered services
- Blocked items (what failed and why, whether retryable)
Prerequisites
- Network access to target(s) — direct or via pivot tunnel
- Target IP, hostname, or CIDR range
- Scope confirmation (which IPs/ranges are authorized)
- nmap installed (core tool — all other tools optional)
- **If scanning through a tunnel:** check engagement state for tunnel details
(type, local endpoint, requires_proxychains, proxychains config path)
Privileged Commands
Claude Code cannot execute `sudo` commands directly. Nmap requires root for SYN scans, UDP scans, OS detection, and most NSE scripts. How nmap runs depends on whether the nmap MCP server is available.
MCP nmap Server (Subagent Mode)
When running as a subagent with nmap MCP access, use the `nmap_scan` tool directly — no sudo handoff needed. The MCP server runs `sudo nmap` in a subprocess and returns parsed JSON.
nmap_scan(target="10.10.10.5", options="-A -p- -T4")
- Returns structured JSON: hosts, ports, services, scripts, OS detection.
- Raw XML is saved to `engagement/evidence/` automatically.
- Use `get_scan(scan_id)` to retrieve previous results.
- The **Nmap Is the Gate** principle still applies — do not run other network
tools until `nmap_scan` completes and you've parsed the results.
Handoff Protocol (Inline Mode)
When running inline without nmap MCP access, hand off to the user for manual execution. This applies to:
- **nmap** — SYN scans (`-sS`), UDP scans (`-sU`), OS detection (`-O`), and most NSE scripts that need raw sockets
- **responder** — LLMNR/NBNS/mDNS poisoning (requires raw sockets)
- **mount** — NFS/SMB mounting
**Handoff protocol:**
1. Present the full command including `sudo` to the user 2. Specify the output file path (ensure commands include `-oA`, `-oG`, or `-oL` flags) 3. Ask the user to run it in their terminal 4. Read the output file when the user confirms completion 5. Continue analysis based on the parsed output
**nmap always requires either MCP or the handoff protocol.** Do not run nmap directly from Bash — not even non-privileged scan types like `-sT` or `-sV`. Unprivileged nmap produces unreliable results (connect scans miss filtered ports, no OS detection, no raw-socket NSE scripts).
Nmap Is the Gate — Hard Stop
**After starting an nmap scan (via MCP or handoff), STOP. Do nothing else until scan results are available.** No httpx, no curl, no netexec, no nuclei, no "quick triage" — nothing touch
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,
Other skills on red-run.
- /acl-abuse
Exploits misconfigured Active Directory ACLs for privilege escalation. Covers GenericAll, GenericWrite, WriteDACL, WriteOwner, ForceChangePassword, targeted Kerberoasting via SPN manipulation, shadow credentials (msDS-KeyCredentialLink → PKINIT), and AdminSDHolder persistence.
Open skill - /ad-discovery
Enumerates Active Directory domains and maps attack surface for penetration testing.
Open skill - /ad-persistence
Establishes persistent access in Active Directory environments after domain compromise. Covers DCShadow (rogue DC attribute modification), Skeleton Key (LSASS master password), custom SSP injection (credential logging via mimilib/memssp), security descriptor backdoors
Open skill - /adcs-access-and-relay
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 ACLs), ESC7 (ManageCA/ManageCertificates abuse), ESC8 (NTLM relay to HTTP enrollment), ESC11 (NTLM relay to ICPR RPC).
Open skill - /adcs-persistence
Establishes persistence and exploits weak certificate mapping in AD CS. Covers ESC9 (no security extension), ESC10 (weak certificate mapping), ESC12-15 (YubiHSM, issuance policy, altSecIdentities, application policies), Golden Certificate (forge with stolen CA key), certificate
Open skill - /adcs-template-abuse
Exploits misconfigured AD CS certificate templates to impersonate any domain user via SAN manipulation or enrollment agent abuse. Covers ESC1 (enrollee supplies subject), ESC2 (any-purpose/no EKU), ESC3 (enrollment agent), ESC6 (EDITF_ATTRIBUTESUBJECTALTNAME2 CA flag).
Open skill

