naabu
$ naabu Official High RiskProjectDiscovery's naabu rapidly enumerates open TCP ports on single hosts, CIDRs, or stdin target lists (naabu -host example.com -top-ports 1000). Supports unprivileged TCP CONNECT scans (-s c), native NDJSON (-j/-json), -silent, -nc (-no-color), and -rate throttling.
brew install naabu Executes scoped host/local TCP port discovery and streams NDJSON (naabu -j -silent); MCP servers cannot perform local SYN/CONNECT socket scanning.
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
First-class -j/-json NDJSON output, -silent banner suppression, -nc no-color mode, and -s c unprivileged execution without interactive prompts.
- Native
-j/-jsonNDJSON output with-silentand-nc - Unprivileged
-s cTCP connect mode
Active port scanning against unauthorized hosts triggers IDS/abuse policies, and default SYN mode (-s s) requires root/libpcap unless -s c is passed.
- Active port scanner requiring strict target authorization
- SYN scan needs root; CONNECT (
-s c) runs unprivileged
Go binary via brew install naabu, go install, and GitHub Releases; SYN mode requires libpcap/Npcap installed.
- Cross-platform binary;
libpcapneeded only for raw SYN mode
Much faster and cleaner JSON output than nmap when you only need open-port discovery prior to HTTP/TLS probing.
- High-speed port enumeration with
-top-portsand stdin piping
Official ProjectDiscovery repository (projectdiscovery/naabu) under MIT license.
- Actively maintained
projectdiscovery/naaburepo
Clear documentation at docs.projectdiscovery.io and thorough naabu -h option reference.
- Official docs at docs.projectdiscovery.io/tools/naabu/
Security, Auth & Guardrails
No credentials required; SYN scans (-s s) require root/CAP_NET_RAW and libpcap, whereas CONNECT scans (-s c) run unprivileged.
Free, MIT-licensed open-source Go binary from ProjectDiscovery.
# naabu Agent Rules - ONLY scan `127.0.0.1` or explicitly user-authorized targets—unauthorized external port scanning can trigger IDS blocks and abuse complaints. - Always pass `-s c` (unprivileged CONNECT), explicit `-p`/`-top-ports` bounds, `-rate`, and `-j -silent`.
Agent-Ready Command Recipes
Safe Read-Only Queries
naabu -host 127.0.0.1 -s c -p 80,443,3000,8080 -j -silent
Runs an unprivileged TCP CONNECT scan (-s c) against four local ports and emits clean NDJSON (-j -silent).
naabu -host 127.0.0.1 -s c -top-ports 100 -rate 200 -j -silent
Probes the top 100 ports on 127.0.0.1 capped at 200 packets/sec (-rate 200) as JSON.
Strengths for Agents
- +
-j -silentemits clean NDJSON (host,ip,port) ready forjqor downstreamhttpxpipes. - +
-s cruns unprivileged TCP connect checks cleanly withoutsudo.
Caveats & Pitfalls
- ! Active port scanning can violate acceptable-use policies if run on unauthorized targets.
- ! Default SYN scan mode (
-s s) requires root privileges andlibpcap.