Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Nmap

$ nmap Foundation High Risk
Gordon Lyon (Nmap Project) · Browser & Web · NPSL (Nmap Public Source License) · macos / linux / windows

Nmap 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.

FCRS-1.0 Score
77 /100
Good
Medium Confidence
Zero-Friction Install
brew install nmap
CLI vs MCP Decision CLI Only

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

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

Outputs structured XML (-oX) and grepable (-oG -) formats cleanly, though lacks native JSON and can run very slowly without tight -p bounds.

  • Supports -oX XML and -oG - grepable stdout; no native JSON
Trust & Safety 14 / 25

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
Setup & Portability 14 / 15

Cross-platform binary via brew, Linux package managers, and official installers.

  • Widely packaged on macOS, Linux, Windows
Utility & Efficiency 13 / 15

Gold standard for port, service-version, and TLS cipher verification on authorized hosts.

  • Service detection (-sV), NSE scripts, and XML output
Maintenance & Lineage 9 / 10

Long-standing foundational security project (nmap/nmap), though NPSL is not OSI-approved.

  • Official Nmap Project (NPSL license)
Docs & Verifiability 9 / 10

Exhaustive official reference book and man pages at nmap.org.

  • Official Nmap Reference Guide at nmap.org/book/man.html

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No authentication credentials required; raw-packet scans (-sS, -O) require root/CAP_NET_RAW privileges.

Side Effects
Read-Only Local Write
Cost & Quotas

Free under Nmap Public Source License (NPSL); notice commercial redistribution restrictions.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Fast unprivileged TCP connect scan on localhost ports
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

Inspect local service versions and write XML report
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 require sudo; no native JSON output.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI