port-mass-scan

port-mass-scan is a skill for Claude Code, Codex from uphiago/recon-skills. It costs 23 tokens per session (2,397 once invoked), scanned B, original, MIT.

A toolset for finding open network ports and identifying the services running behind them across individual hosts or IP ranges.

In plain words
What is it for?
It helps scan one host with RustScan, scan larger ranges with Masscan, and pass discovered ports to Nmap for service and version information.
Why use it?
It speeds up the first stage of an authorized network assessment by showing which network services are reachable before detailed inspection.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit It helps scan one host with RustScan, scan larger ranges with Masscan, and pass discovered ports to Nmap for service and version information.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/uphiago/recon-skills/port-mass-scan
About the project

Recon Skills is a pack of security-testing skills covering reconnaissance, web applications, APIs, authentication, vulnerability validation, cloud infrastructure, and reporting. Security professionals use it for authorized assessments of systems they own or have written permission to test. The catalogue entries are individual skills from the pack.

uphiago/recon-skills · 1,254 stars · on GitHub · hiago.sh

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add uphiago/recon-skills --skill port-mass-scan
Clone the repo
git clone --depth 1 https://github.com/uphiago/recon-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for port-mass-scan

README.md
[![agentmods](https://agentmods.dev/badge/skills/uphiago/recon-skills/port-mass-scan/github.svg)](https://agentmods.dev/skills/uphiago/recon-skills/port-mass-scan)
Your own site
<a href="https://agentmods.dev/skills/uphiago/recon-skills/port-mass-scan"><img src="https://agentmods.dev/badge/skills/uphiago/recon-skills/port-mass-scan/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for port-mass-scan

Your own site · 80×15
<a href="https://agentmods.dev/skills/uphiago/recon-skills/port-mass-scan"><img src="https://agentmods.dev/badge/skills/uphiago/recon-skills/port-mass-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,397 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high YARA Match · line 62
    YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).
    Fix: Remove offensive tool references and exploit code. Legitimate agent skills should not contain penetration testing tools, exploit frameworks, or reconnaissance utilities.
  • medium YARA Match · line 19
    YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).
    Fix: Remove offensive tool references and exploit code. Legitimate agent skills should not contain penetration testing tools, exploit frameworks, or reconnaissance utilities.
  • medium Privilege Escalation · line 177
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.02397
Opus 5 $0.00012 $0.01198
Sonnet 5 $0.00005 $0.00479
Haiku 4.5 $0.00002 $0.00240

Measured 11d ago against content hash 11b87d6b0948, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade B, and why

port-mass-scan scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- **Masscan requires root.** Uses raw sockets. Run as root or with `sudo`.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

compatibility: Requires curl, nmap, masscan
recon/port-mass-scan/SKILL.md · 190 lines

How it starts

The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Port Mass Scan Skill

High-speed port scanning methodology using RustScan for single hosts and Masscan for large IP ranges. RustScan provides 400x speedup over Nmap for 1000-port scans (3-10s vs 5-10min). Masscan handles /8 and /16 ranges that Nmap cannot. The ISP and government network examples below were from authorized infrastructure assessments with signed RoE.

When to Use

  • Authorized red team engagement with signed RoE covering the target IP range.
  • Fast single-host port discovery before Nmap service enumeration.
  • After subdomain-enumeration — scan resolved IPs for non-HTTP services.
  • ISP-wide or /8 scanning without explicit written authorization is illegal in most jurisdictions. This skill exists for legitimate authorized engagements, not mass scanning.

Prerequisites

  • terminal with masscan, rustscan, and nmap installed.
  • For Masscan: root access (uses raw sockets), libpcap.
  • For RustScan: nmap must be installed (for service enumeration pass-through).

How to Run

# Single host — RustScan (3-10 seconds for 1000 ports)
rustscan -a TARGET -r 1-65535 -- -sV

# /24 range — Masscan (2-5 minutes)
masscan -p1-65535 --rate=10000 -iL targets.txt -oJ scan.json

# /8 range — Masscan with banner grab (hours)
masscan -p80,443,8080,8443,22,3306,6379 --rate=50000 --banners -iL /8_range.txt -oJ scan.json

Quick Reference

Scenario Tool Command Time
Single host, all ports RustScan rustscan -a IP -r 1-65535 3-10s
/24 range, common ports Masscan masscan -p1-1000 --rate=10000 -iL /24.txt 2-5 min
/16 range, web ports Masscan masscan -p80,443,8080,8443 --rate=50000 -iL /16.txt 10-30 min
/8 camera hunt Masscan masscan -p554,80,8010 --rate=100000 -iL /8.txt Hours
Banner grab (1 IP) Masscan masscan -p1-65535 --banners --source-ip ETH0_IP IP 1-5 min

Performance Comparison (empirical, 5000+ scans)

Tool 1000 ports (1 host) /24 (1000 ports each) /8 (web ports) Accuracy
Nmap 5-10 min ~30 min Impossible (days) 99%
RustScan 3-10s 15-30s ~2 min 98% (then Nmap -sV)
Masscan 15-20s 2-5 min 30-60 min 99% (TCP)

Read the full file on GitHub · 190 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 190 lines · 23 tokens per session scan B 11b87d6b0948

Subscribe to this mod's changes

port-mass-scan is a skill published in the GitHub repository uphiago/recon-skills (1,254 stars, last pushed 9d ago), licensed MIT. It adds 23 tokens to every session and 2,397 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

security-research

Full-spectrum security research skill for web servers, REST APIs, web applications, and network/port enumeration. Triggers whenever the user wants to: find vulnerabilities, run a security assessment, scan a target, test an API for security issues, enumerate ports or services, check for OWASP Top 10 vulnerabilities…

rhysha/claude-security-research-skill · 153 tokens

auditing-gcp-iam-permissions

Auditing Google Cloud Platform IAM permissions to identify overly permissive bindings, primitive role usage, service account key proliferation, and cross-project access risks using gcloud CLI, Policy Analyzer, and IAM Recommender.

xalgorix/xalgorix · 51 tokens

detecting-compromised-cloud-credentials

Detecting compromised cloud credentials across AWS, Azure, and GCP by analyzing anomalous API activity, impossible travel patterns, unauthorized resource provisioning, and credential abuse indicators using GuardDuty, Defender for Identity, and SCC Event Threat Detection.

xalgorix/xalgorix · 55 tokens

implementing-aws-config-rules-for-compliance

Implementing AWS Config rules for continuous compliance monitoring of AWS resources, deploying managed and custom rules aligned to CIS and PCI DSS frameworks, configuring automatic remediation with SSM Automation, and aggregating compliance data across accounts.

xalgorix/xalgorix · 53 tokens

implementing-cloud-dlp-for-data-protection

Implementing Cloud Data Loss Prevention (DLP) using Amazon Macie, Azure Information Protection, and Google Cloud DLP API to discover, classify, and protect sensitive data across cloud storage, databases, and data pipelines.

xalgorix/xalgorix · 54 tokens

implementing-cloud-trail-log-analysis

Implementing AWS CloudTrail log analysis for security monitoring, threat detection, and forensic investigation using Athena, CloudWatch Logs Insights, and SIEM integration to identify unauthorized access, privilege escalation, and suspicious API activity.

xalgorix/xalgorix · 50 tokens