Agent skill

Asn Infrastructure Mapping

by uphiago in uphiago/recon-skills

Map organization IP infrastructure via ASN, CIDR, TLD expansion, and reverse DNS.

MITAuto-check passedSecurity

Install Asn Infrastructure Mapping

skills CLI
$ npx skills add uphiago/recon-skills --skill asn-infrastructure-mapping -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install uphiago/recon-skills asn-infrastructure-mapping --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/uphiago/recon-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/recon/asn-infrastructure-mapping .claude/skills/asn-infrastructure-mapping && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
asn-infrastructure-mapping
GitHub stars
1.3k
Token cost
~1.6k tokens
SKILL.md length
355 words
Files
1
Skills in repo
23
Repo updated
First seen
Licence
MIT

At a glance

Map organization IP infrastructure via ASN, CIDR, TLD expansion, and reverse DNS.

  • Works in 7 steps: Domain to ASN Discovery → ASN to CIDR Ranges → CIDR to Individual IPs → …
  • Security work in your project
  • SKILL.md covers When to Use, Prerequisites, Quick Detection and Procedure, plus 3 more sections
  • Calls wget; reaches bgp.he.net and asnlookup.com

What it does

Asn Infrastructure Mapping is an agent skill from uphiago/recon-skills. Map organization IP infrastructure via ASN, CIDR, TLD expansion, and reverse DNS.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Requires curl, dnsx, httpx

It sits in Security. The repository describes itself as: Recon & pentest skill pack. CORS, XSS, SQLi, SSRF, RCE, WordPress, MCP, cloud, subdomain takeover, and more. Field-tested. MIT. Full write-up at hiago.sh. The licence is MIT.

When your agent uses it

  • Security work in your project

Example prompts

  • “/asn-infrastructure-mapping”

Requirements

  • Compatibility (from SKILL.md): Requires curl, dnsx, httpx

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Domain to ASN Discovery
  2. ASN to CIDR Ranges
  3. CIDR to Individual IPs
  4. Reverse DNS on IP Ranges
  5. TLD Expansion
  6. Architecture Visualization
  7. Sub-organization Discovery

What it can do on your machine

Read from SKILL.md and the folder at commit 1260244. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • wget

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • bgp.he.net
    • asnlookup.com
    • bgp.tools
    • data.iana.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires curl, dnsx, httpx

    From compatibility in the SKILL.md frontmatter.

Context cost

Asn Infrastructure Mapping loads about 1.6k tokens when it runs. Until then it costs about 27 tokens; SKILL.md has 355 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~27
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from uphiago/recon-skills at commit 1260244, republished under its MIT licence (© uphiago). 355 words, ~1,621 tokens.

Download SKILL.mdSave it as .claude/skills/asn-infrastructure-mapping/SKILL.md (or your agent's skills folder).
name
asn-infrastructure-mapping
description
Map organization IP infrastructure via ASN, CIDR, TLD expansion, and reverse DNS.
compatibility
Requires curl, dnsx, httpx
version
1.1.0
revision_date
2026-07-25
license
MIT
platforms
linux
tags
recon, ASN, CIDR, IP-range, TLD, reverse-DNS, infrastructure
category
recon
related_skills
subdomain-enumeration, origin-ip-discovery, vhost-enumeration, port-mass-scan

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).

Quick Detection

bash
# 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
bash
# 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
Phase 2 — ASN to CIDR Ranges
bash
# asnmap — direct CIDR extraction
asnmap -a AS33905 -silent > cidr_ranges.txt

# RADB whois — full route objects
whois -h whois.radb.net -- "-i origin AS33905" \
  | grep -Eo "([0-9.]+){4}/[0-9]+" \
  | sort -u >> cidr_ranges.txt

# metabigor — multi-source IP intelligence
echo "Company Name" | metabigor net --org -o cidr_ranges.txt
echo "ASN33905" | metabigor net --asn -o cidr_ranges.txt
Phase 3 — CIDR to Individual IPs
bash
# mapcidr — split CIDR into flat IP list
cat cidr_ranges.txt | mapcidr -silent > all_ips.txt
wc -l all_ips.txt

# prips — alternative IP generator
while read cidr; do prips "$cidr"; done < cidr_ranges.txt >> all_ips.txt

# Scan discovered IPs for live web services
cat all_ips.txt | httpx \
  -ports 80,443,8080,8443,3000,5000,8000,8888,9090,9443 \
  -status-code -title -web-server -silent \
  -o live_ip_services.txt
Phase 4 — Reverse DNS on IP Ranges
bash
# dnsx PTR — resolve hostnames from IP blocks
cat cidr_ranges.txt | dnsx -silent -resp-only -ptr > ptr_domains.txt

# Filter for target-related hosts
grep -i "target" ptr_domains.txt > ptr_target.txt

# hakrevdns — reverse DNS at scale
hakrevdns -d target.com -R resolvers.txt

# resolveDomains — check which IPs serve target content
resolveDomains -d all_subs.txt > resolved.txt
awk '{print $3}' resolved.txt | sort -u > unique_ips.txt
Phase 5 — TLD Expansion
bash
# tldbrute — discover all registered TLD variants
tldbrute -d target.com

# Manual IANA TLD list approach
wget -q https://data.iana.org/TLD/tlds-alpha-by-domain.txt
ROOT=$(echo "target.com" | cut -d. -f1)
cat tlds-alpha-by-domain.txt | tr '[:upper:]' '[:lower:]' \
  | while read tld; do echo "$ROOT.$tld"; done \
  | httpx -silent -mc 200 > tlds_alive.txt

# Apply to all known subdomains
cat all_subs.txt | while read sub; do
  cat tlds-alpha-by-domain.txt | tr '[:upper:]' '[:lower:]' \
    | sed "s/^/$sub./"
done | dnsx -silent > subs_tld_expanded.txt
Phase 6 — Architecture Visualization
bash
# Map which domains belong to which IP
cat unique_ips.txt | while read ip; do
  echo -n "$ip: "
  grep -l "$ip" resolved.txt 2>/dev/null | tr '\n' ' '
  echo
done > ip_to_domain_map.txt

# Identify shared infrastructure (one IP serving multiple domains — CDN or reverse proxy)
awk '{if (NF > 2) print}' ip_to_domain_map.txt > shared_infra.txt

# Scan non-web ports on ALL discovered IPs  
naabu -l all_ips.txt -p - -rate 1000 -c 50 -exclude-ports 80,443 -o all_services.txt
Phase 7 — Sub-organization Discovery
bash
# Extract all company/organization names from whois
cat all_ips.txt | while read ip; do
  whois $ip 2>/dev/null | grep -iE "OrgName|org-name|descr:" | head -1
done | sort -u > subsidiary_names.txt

# For each subsidiary, repeat the ASN → CIDR pipeline
cat subsidiary_names.txt | while read org; do
  metabigor net --org "$org" >> expanded_cidr.txt
done
Show full SKILL.md (170 more words)Show less

Pitfalls

  • CIDR ranges can be massive (e.g., AWS). Only scan IP ranges confirmed to belong to the target, not the entire hosting provider.
  • RADB whois data may be stale. Cross-reference with multiple sources (bgp.he.net, Censys, Shodan).
  • TLD expansion is noisy. Only .com/.org/.net/.io/.dev usually produce useful results.
  • Reverse DNS may reveal internal hostnames. Handle with care in external recon — these leaks are findings themselves.
  • Sub-organization discovery can lead to out-of-scope targets. Always verify the relationship before scanning.

Verification

  1. CIDR ranges were confirmed via at least two sources (whois + bgp.he.net or asnmap).
  2. Reverse DNS on discovered IPs returned target-related hostnames.
  3. TLD expansion found live domains on sibling TLDs.
  4. Web service scan identified unique applications on non-standard ports.
  5. Map the full infrastructure: domains → IPs → services → vulnerabilities.
  • subdomain-enumeration — Generate the initial subdomain list before expanding to IP infrastructure.
  • origin-ip-discovery — Once CIDR ranges are known, identify which IPs are origins behind CDN.
  • vhost-enumeration — Scan discovered IPs for hidden virtual hosts.
  • port-mass-scan — Scan all discovered IPs for exposed services.

© uphiago, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in recon/asn-infrastructure-mapping of uphiago/recon-skills.

Open the folder on GitHubat commit 1260244

Compare with similar skills

Asn Infrastructure Mapping next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Asn Infrastructure Mapping compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Asn Infrastructure Mapping this skilluphiago/recon-skills1.3k—~1.6kAutomated safety check: PassMIT
Fla Ascend Performancefla-org/flash-linear-attention5.8k—~6.3kAutomated safety check: PassMIT
Deepsec Documentation Guidevercel-labs/deepsec8.1k—~956Automated safety check: PassApache-2.0
Skill Scannergetsentry/skills1k4 repos~2.5kAutomated safety check: WarnApache-2.0
Serenity Aleabitoreddityan-labs/serenity-aleabitoreddit4801 repos~3.3kAutomated safety check: PassNone
Security Alert Triageelastic/agent-skills5921 repos~3.5kAutomated safety check: NotesApache-2.0

Similar skills

  • Fla Ascend Performance

    fla-org/flash-linear-attention

    Guidelines for Ascend NPU kernel / Triton-Ascend backend performance work in the FLA repo.

    5.8k GitHub stars~6.3k tokensUpdated today
    SecurityAuto-check passed
  • Deepsec Documentation Guide

    vercel-labs/deepsec

    Official

    Points the agent at deepsec's own docs to answer questions about initializing, configuring, resuming, scanning with and extending the vulnerability scanner.

    8.1k GitHub stars~956 tokensUpdated 9 days ago
    SecurityAuto-check passed
  • Skill Scanner

    getsentry/skills

    Official

    Scan agent skills for security issues. An agent skill from getsentry/skills.

    1k GitHub starsUsed in 4 repos~2.5k tokens
    SecurityAuto-check: warnings
  • Serenity Aleabitoreddit

    yan-labs/serenity-aleabitoreddit

    Apply trader Serenity's (@aleabitoreddit) AI/semiconductor supply-chain analytical lens to US-stock ideas and market judgment.

    480 GitHub starsUsed in 1 repo~3.3k tokens
    SecurityAuto-check passed
  • Security Alert Triage

    elastic/agent-skills

    Official

    Triage Elastic Security alerts — gather context, classify threats, create cases, and acknowledge.

    592 GitHub starsUsed in 1 repo~3.5k tokens
    SecurityAuto-check: notes
  • Shiro Attack CLI

    SummerSec/ShiroAttack2

    当用户要求利用、检测或测试 Apache Shiro rememberMe 反序列化漏洞 (Shiro-550, CVE-2016-4437) 时使用。触发词包括 "Shiro"、"rememberMe"、"shiro attack"、"CVE-2016-4437"、"Shiro-550"、"爆破 Shiro key"、"利用 Shiro"、"Shiro…

    2.6k GitHub stars~945 tokensUpdated 4 mo ago
    SecurityAuto-check passed

More from uphiago/recon-skills

All 23 skills in this repo
  • Flags API endpoints whose data or actions look like they should need a login but currently don't, as part of authorized security testing.

    1.3k GitHub stars~2k tokensUpdated 1 mo ago
    Auto-check passed
  • Error Log Mining

    uphiago/recon-skills

    Mine errorlog for creds, paths, SQL when leak hunt finds. An agent skill from uphiago/recon-skills.

    1.3k GitHub stars~3.3k tokensUpdated 1 mo ago
    Auto-check passed
  • JS Secrets Extraction

    uphiago/recon-skills

    Analyze JS bundles and source maps for hardcoded secrets, API keys, JWTs, and internal endpoints

    1.3k GitHub stars~2.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Recon Playbook

    uphiago/recon-skills

    A skill your agent uses when starting or restructuring an authorized external web and API assessment.

    1.3k GitHub stars~1.9k tokensUpdated 1 mo ago
    Auto-check passed
  • Web Enumeration

    uphiago/recon-skills

    Sensitive file scanning, path traversal bypass, vHost enum, .env extract, log mining, Varnish detect

    1.3k GitHub stars~2.8k tokensUpdated 1 mo ago
    Auto-check: notes
  • 401 403 Bypass Techniques

    uphiago/recon-skills

    A skill your agent uses when protected HTTP routes return 401 or 403.

    1.3k GitHub stars~3.1k tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Asn Infrastructure Mapping

What does Asn Infrastructure Mapping do?

Map organization IP infrastructure via ASN, CIDR, TLD expansion, and reverse DNS. Asn Infrastructure Mapping is an agent skill from uphiago/recon-skills. Map organization IP infrastructure via ASN, CIDR, TLD expansion, and reverse DNS.

When should I use Asn Infrastructure Mapping?

Asn Infrastructure Mapping fits situations like: security work in your project.

How do I install Asn Infrastructure Mapping in Claude Code?

Run `npx skills add uphiago/recon-skills --skill asn-infrastructure-mapping -a claude-code`. Or copy the skill folder (recon/asn-infrastructure-mapping in uphiago/recon-skills) into .claude/skills/asn-infrastructure-mapping in your project. Claude Code loads it when a task matches its description.

How do I install Asn Infrastructure Mapping in Codex?

Run `npx skills add uphiago/recon-skills --skill asn-infrastructure-mapping -a codex`. Or copy the skill folder (recon/asn-infrastructure-mapping in uphiago/recon-skills) into .agents/skills/asn-infrastructure-mapping in your project. Codex loads it when a task matches its description.

Can I use Asn Infrastructure Mapping in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add uphiago/recon-skills --skill asn-infrastructure-mapping -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/asn-infrastructure-mapping, .gemini/skills/asn-infrastructure-mapping, .github/skills/asn-infrastructure-mapping and .opencode/skills/asn-infrastructure-mapping in your project.

What does Asn Infrastructure Mapping need to run?

Going by SKILL.md and its folder, Asn Infrastructure Mapping needs the command-line tools its instructions call (wget). Compatibility (from SKILL.md): Requires curl, dnsx, httpx.

Does Asn Infrastructure Mapping access the network?

SKILL.md names 4 domains. In commands or code: bgp.he.net, asnlookup.com, bgp.tools and data.iana.org; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Asn Infrastructure Mapping safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Asn Infrastructure Mapping use?

Asn Infrastructure Mapping is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Asn Infrastructure Mapping use?

About 1.6k tokens (SKILL.md is roughly 6.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Asn Infrastructure Mapping?

Skills that share tags, products or a category with Asn Infrastructure Mapping: Fla Ascend Performance (fla-org/flash-linear-attention, 5.8k stars), Deepsec Documentation Guide (vercel-labs/deepsec, 8.1k stars), Skill Scanner (getsentry/skills, 1k stars) and Serenity Aleabitoreddit (yan-labs/serenity-aleabitoreddit, 480 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Asn Infrastructure Mapping?

uphiago (a GitHub user) maintains it in uphiago/recon-skills, which has 1,294 GitHub stars. The repository holds 23 skills in this directory. The repository was last updated on September 1, 2026.

Source: uphiago/recon-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.