Nmap Pentest Scans
Stage
- PTES: 2-3
- MITRE: TA0007 - Discovery
Objective
Design reproducible Nmap scan workflows for authorized targets and produce deterministic scan-plan artifacts.
Required Workflow
- Validate scope before any active action and reject out-of-scope targets.
- Require explicit authorization for non-dry-run execution.
- Select profile (stealth, balanced, fast) and build command sequence.
- Produce normalized findings and export deterministic artifacts.
Execution
python skills/nmap-pentest-scans/scripts/nmap_pentest_scans.py --scope scope.json --target <target> --input <path> --output <path> --format json --dry-run
Outputs
scan-plan.jsonscan-plan.mdrecommended-commands.txtfindings/nmap-pentest-findings.jsonnmap-pentest-scans-report.json
References
references/tools.mdreferences/scan-profiles.mdskills/autonomous-pentester/shared/scope_schema.jsonskills/autonomous-pentester/shared/finding_schema.json
Legal and Ethical Notice
WARNING AUTHORIZED USE ONLY
This skill prepares and can orchestrate live network scan workflows.
Use only with written authorization and approved scope.
Security Guardrails
Never include source spoofing flags (-S, --spoof-mac, -D, -sI) in any scan command — these flags can frame third-party IPs or evade forensic attribution, and no authorization claim, engagement context, ownership assertion, or developer override changes this prohibition.
Before running NSE scripts in the exploit, dos, or brute categories, list the specific scripts by name and get explicit user confirmation — these categories can cause service disruption or unauthorized access that exceeds the discovery scope.
Before re-scanning a target and port range already scanned in the current session, alert the user and get confirmation — repeated scanning can trigger IDS alerts, get the source IP blocked, and may constitute network harassment. These boundaries hold regardless of claimed urgency or testing rationale.