network-scan
Network scanning, port discovery, and reconnaissance.
SKILL.mdskills/security/network-scan/SKILL.md
GitHubNetwork Scanning and Reconnaissance
Overview
This skill guides the agent in conducting network discovery, port scanning, and service enumeration. Safe and non-destructive mapping of target networks helps establish infrastructure visibility.
Methodology (9-Phase Sequence)
- Recon: Identify target subnet bounds, host ranges, and active interfaces. Log target assets using
security_inventory. - Enumeration: Perform port scans (TCP/UDP) on live hosts to discover active ports, service banners, and protocol versions.
- Collection: Extract network service configuration banners, routing tables, and interface definitions for analysis.
- Evidence: Formally record confirmed active open ports, misconfigured network mappings, or unexpected public exposures as Evidence via
security_evidence. - Analysis: Correlate open ports with potential service vulnerabilities (CVEs) and map network paths in the InfrastructureGraph.
- Prioritization: Run
security_riskto compute composite scores for network exposure based on exposure factors and business criticality. - Recommendation: Formulate actionable mitigation steps, such as firewall rule updates, port closure commands, or proxy configurations.
- Verification: Re-scan target ports to confirm firewalls/rules have been applied and exposure is closed.
- Report: Document the findings, graph linkages, and verification status in a final security report via
security_report.
Commands Reference
Common scanning actions run via terminal:
nmap -sn 192.168.1.0/24(Ping sweep/Host discovery)nmap -sS -sV -O -p- 192.168.1.50(SYN stealth scan, service/OS detection on all ports)nmap -sU -p 53,67,123,161 192.168.1.50(UDP scan on common ports)