Nmap
$ nmap Foundation High RiskNmap discovers open ports, running services, and TLS ciphers across local and authorized networks. Because active port scans trigger security alerts and some scan modes require sudo, agents should scope scans tightly and export -oX or -oG.
brew install nmap Strictly scoped local port/service checks (nmap -p 80,443 localhost) run directly in shell; never scan external hosts without explicit permission.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Outputs structured XML (-oX) and grepable (-oG -) formats cleanly, though lacks native JSON and can run very slowly without tight -p bounds.
- Supports
-oXXML and-oG -grepable stdout; no native JSON
High risk if pointed at external/unauthorized networks (triggers IDS/abuse policies), and several scan flags (-sS, -O) require elevated privileges.
- Active network probing can trigger security/IDS alerts; SYN/OS scans need root
Cross-platform binary via brew, Linux package managers, and official installers.
- Widely packaged on macOS, Linux, Windows
Gold standard for port, service-version, and TLS cipher verification on authorized hosts.
- Service detection (
-sV), NSE scripts, and XML output
Long-standing foundational security project (nmap/nmap), though NPSL is not OSI-approved.
- Official Nmap Project (NPSL license)
Exhaustive official reference book and man pages at nmap.org.
- Official Nmap Reference Guide at nmap.org/book/man.html
Security, Auth & Guardrails
No authentication credentials required; raw-packet scans (-sS, -O) require root/CAP_NET_RAW privileges.
Free under Nmap Public Source License (NPSL); notice commercial redistribution restrictions.
# Nmap Agent Rules - ONLY scan `127.0.0.1` / `localhost` or explicitly user-authorized CIDR targets—unauthorized network scanning is strictly prohibited. - Bound port ranges (`-p ...`) and use `-sT` (unprivileged) with `-oG -` or `-oX` instead of full 65535-port sweeps.
Agent-Ready Command Recipes
Safe Read-Only Queries
nmap -sT -p 80,443,3000,8080 -oG - 127.0.0.1
Uses TCP connect (-sT, no sudo needed) on specific local ports and prints grepable output to stdout (-oG -).
Controlled Writes & Previews
nmap -sT -sV -p 8000-8090 -oX nmap-local.xml 127.0.0.1
Probes local service banners (-sV) and saves structured XML output to nmap-local.xml.
Strengths for Agents
- + Authoritative port, service banner (
-sV), and TLS cipher inspection. - +
-oX -and-oG -give deterministic machine-parsable output.
Caveats & Pitfalls
- ! Active network scanning can violate acceptable-use policies if run against unauthorized targets.
- ! SYN (
-sS), UDP (-sU), and OS (-O) scans requiresudo; no native JSON output.