asn-infrastructure-mapping

asn-infrastructure-mapping is a skill for Claude Code, Codex from uphiago/recon-skills. It costs 24 tokens per session (1,946 once invoked), scanned A, original, MIT.

An infrastructure-mapping procedure that traces an organization’s domain to its network ranges, related hostnames, and services. An ASN is a public identifier for a network, while CIDR ranges describe blocks of IP addresses.

In plain words
What is it for?
Authorized security assessments that map an organization’s owned IP space, related top-level domains, reverse-DNS names, and services on unusual ports.
Why use it?
It can reveal systems that ordinary subdomain searches or website-only checks miss.

Skill for Claude CodeCodex

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

Good fit Authorized security assessments that map an organization’s owned IP space, related top-level domains, reverse-DNS names, and services on unusual ports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/uphiago/recon-skills/asn-infrastructure-mapping
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,408 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 asn-infrastructure-mapping
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 asn-infrastructure-mapping

README.md
[![agentmods](https://agentmods.dev/badge/skills/uphiago/recon-skills/asn-infrastructure-mapping/github.svg)](https://agentmods.dev/skills/uphiago/recon-skills/asn-infrastructure-mapping)
Your own site
<a href="https://agentmods.dev/skills/uphiago/recon-skills/asn-infrastructure-mapping"><img src="https://agentmods.dev/badge/skills/uphiago/recon-skills/asn-infrastructure-mapping/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 asn-infrastructure-mapping

Your own site · 80×15
<a href="https://agentmods.dev/skills/uphiago/recon-skills/asn-infrastructure-mapping"><img src="https://agentmods.dev/badge/skills/uphiago/recon-skills/asn-infrastructure-mapping.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,946 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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: 2 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 71
    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 Data Exfiltration · line 124
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
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.00024 $0.01946
Opus 5.5 $0.00010 $0.00778
Sonnet 5.5 $0.00005 $0.00389
Haiku 4.5 $0.00002 $0.00195

Measured 23d ago against content hash 1966ec12e747, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

asn-infrastructure-mapping scanned grade A with 1 finding 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 23d 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.

Makes network callslowCapability

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

compatibility: Requires curl, dnsx, httpx
recon/asn-infrastructure-mapping/SKILL.md · 203 lines

How it starts

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

ASN Infrastructure Mapping

Map an organization's entire IP infrastructure by pivoting from domain to ASN (Autonomous System Number), extracting CIDR ranges, and discovering every hostname and service across all owned IP blocks. Includes TLD expansion to find sibling domains on different top-level domains with separate infrastructure.

When to Use

  • You have a target domain and want to discover EVERY IP owned by the organization.
  • Passive subdomain enumeration found only a few hosts — the rest may be on sibling TLDs or different IP ranges.
  • The target has a known ASN that can be expanded to full CIDR blocks.
  • Services on non-standard ports are invisible to web-only recon.
  • Acquired subsidiaries or international domains may sit on different ASNs with weaker security.

Prerequisites

  • terminal whois, dnsx, mapcidr, httpx, and asnmap.
  • The target domain and/or a known IP belonging to the organization.
  • Shodan API key (optional, for deeper OSINT).

How to Run

# Start: domain → IP → ASN → CIDR ranges
IP=$(dig target.com +short | head -1)
ASN=$(whois $IP | grep -i "origin\|OriginAS" | awk '{print $NF}' | head -1)
echo "ASN: $ASN"
whois -h whois.radb.net -- "-i origin $ASN" | grep -Eo "([0-9.]+){4}/[0-9]+" | sort -u

Quick Detection

# Start: domain → IP → ASN → CIDR ranges
IP=$(dig target.com +short | head -1)
ASN=$(whois $IP | grep -i "origin\|OriginAS" | awk '{print $NF}' | head -1)
echo "ASN: $ASN"
whois -h whois.radb.net -- "-i origin $ASN" | grep -Eo "([0-9.]+){4}/[0-9]+" | sort -u

Procedure

Phase 1 — Domain to ASN Discovery

# asnmap — automated domain → ASN
asnmap -d target.com

# Manual whois approach
IP=$(dig target.com +short | head -1)
whois $IP | grep -iE "origin|OriginAS|route:|descr:" | head -10

# spk — finds all ASNs for a company by name (including subsidiaries)
spk -json -s "Company Name"

# Webtools
# https://bgp.he.net — search by company name
# https://asnlookup.com — search by org name, ASN, or CIDR
# https://bgp.tools — modern BGP explorer

Read the full file on GitHub · 203 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. 23d ago Changed · +13 lines 1966ec12e747
  2. 3mo ago First seen · 190 lines · 24 tokens per session scan A f7f0bede906f

Subscribe to this mod's changes

asn-infrastructure-mapping is a skill published in the GitHub repository uphiago/recon-skills (1,408 stars, last pushed 23d ago), licensed MIT. It adds 24 tokens to every session and 1,946 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

asn-infrastructure-mapping compared with skills from other repositories

asn-infrastructure-mapping next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
asn-infrastructure-mappinguphiago/recon-skillsSkill1.4k23d agoMITA24Claude Code, Codex
performing-aws-privilege-escalation-assessmentxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A54Claude Code, Codex
performing-cloud-penetration-testing-with-pacuxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A51Claude Code, Codex
detecting-compromised-cloud-credentialsxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A55Claude Code, Codex
securing-api-gateway-with-aws-wafxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A59Claude Code, Codex
auditing-aws-s3-bucket-permissionsxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A62Claude Code, Codex
auditing-gcp-iam-permissionsxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A51Claude Code, Codex