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

naabu

$ naabu Official High Risk
ProjectDiscovery · Browser & Web · MIT · macos / linux / windows

ProjectDiscovery'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.

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

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

✓ 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 23 / 25

First-class -j/-json NDJSON output, -silent banner suppression, -nc no-color mode, and -s c unprivileged execution without interactive prompts.

  • Native -j / -json NDJSON output with -silent and -nc
  • Unprivileged -s c TCP connect mode
Trust & Safety 15 / 25

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

Go binary via brew install naabu, go install, and GitHub Releases; SYN mode requires libpcap/Npcap installed.

  • Cross-platform binary; libpcap needed only for raw SYN mode
Utility & Efficiency 13 / 15

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-ports and stdin piping
Maintenance & Lineage 9 / 10

Official ProjectDiscovery repository (projectdiscovery/naabu) under MIT license.

  • Actively maintained projectdiscovery/naabu repo
Docs & Verifiability 9 / 10

Clear documentation at docs.projectdiscovery.io and thorough naabu -h option reference.

  • Official docs at docs.projectdiscovery.io/tools/naabu/

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No credentials required; SYN scans (-s s) require root/CAP_NET_RAW and libpcap, whereas CONNECT scans (-s c) run unprivileged.

Side Effects
Read-Only Local Write
Cost & Quotas

Free, MIT-licensed open-source Go binary from ProjectDiscovery.

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

Scan specific localhost ports unprivileged as JSON
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).

Check top 100 ports on localhost with rate limit
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 -silent emits clean NDJSON (host, ip, port) ready for jq or downstream httpx pipes.
  • + -s c runs unprivileged TCP connect checks cleanly without sudo.

Caveats & Pitfalls

  • ! Active port scanning can violate acceptable-use policies if run on unauthorized targets.
  • ! Default SYN scan mode (-s s) requires root privileges and libpcap.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI