mizazhaider-ceh/agentarsenal/nmap-port-scanning
Claude Code and agent skill by mizazhaider-ceh/agentarsenal
- community
Checking that the SKILL.md file is still in the repository.
Use when you need to scan ports across live hosts with nmap on
Install
npx vskill@latest install mizazhaider-ceh/agentarsenal/nmap-port-scanningSKILL.md
The same SKILL.md was published earlier as mizazhaider-ceh/agentarsenal/nmap-port-scanning.
Port scanning is nmap's core job: testing which ports accept connections on each live host. This skill covers scan-type selection and execution on authorized engagements: SYN scans as the default, connect scans where raw sockets are unavailable, UDP scans for connectionless services, and timing control for fragile or monitored networks. Service identification is a separate sub-skill; this one is about accurate port states.
Quick Workflow
- Start from the live host list produced by nmap-host-discovery.
- Run a top-ports SYN sweep for the quick picture.
- Run a full-port SYN sweep on hosts that matter.
- Run targeted UDP scans for DNS, SNMP, and other UDP services.
- Interpret filtered versus closed correctly; re-probe ambiguities.
- Save machine-readable output for the service detection phase.
1. SYN scanning
SYN scan needs raw socket privileges (root). It is the default because it is fast and never completes the handshake, which keeps logs slightly quieter.
2. Connect and UDP scans
Use -sT on jump hosts where you lack root, and in environments where raw sockets are blocked. UDP scanning a full range takes hours; scope it to the top ports plus any UDP service the engagement cares about.
3. Timing and output discipline
-oA gives you normal, XML, and grepable output in one run. The XML file is what parsers, spreadsheets, and the report all consume; never rely on terminal scrollback.
Edge cases
- Everything is filtered. The firewall drops probes; try ACK scans to map
the filter ruleset, and report the filtering as a finding about the network posture.
- Results flap between runs. Rate limiting or load balancing is in play;
lower the rate, raise retries, and keep the union with notes.
- The scan crashes a fragile host. Stop immediately, note the exact
command and target, inform the test lead, and switch to polite timing for the rest of the scope.
- IPv6 targets behave differently. Scan them separately; firewall rules
and service bindings often differ from IPv4.
Escalation
- You need to map firewall rules, not just ports: use ACK, window, and
FIN scans to infer stateful versus stateless filtering.
- The window is too short for full sweeps: masscan the range at speed,
then nmap only the open ports it found.
- A host must not be scanned at all: exclude it with
--exclude, get its
data from the client, and note the gap honestly.
Detection and defender view
Defenders see port scanning as the noisiest phase: SYN bursts across ports, completed handshakes from connect scans, and long UDP probe series. IDS scan detectors and firewall logs catch all of it. Defenses are scan detection with alerting, rate limiting, and reducing open ports so scans find little. Stealth scanning trades speed for quiet; it does not become invisible.
Key references
- MITRE ATT&CK T1046 (Network Service Discovery).
- MITRE ATT&CK T1595.002 (Active Scanning: Vulnerability Scanning).
- nmap 7.98 documentation: port scanning techniques.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/network/nmap-methodology/sub/nmap-port-scanning/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mizazhaider-ceh/agentarsenal/nmap-port-scanning)