agentleFS
kaandgnshkaandgnsh/Claude-Blue/skills/asset-attack-surface/external-attack-surface-review/SKILL.md

external-attack-surface-review

Skill0 starsChanged 11 days agoMITView on GitHub

Map and review your organization's own internet-facing attack surface — domains and subdomains (certificate transparency, DNS), IP ranges and ASNs, exposed services and versions (Shodan/Censys data on your assets), cloud endpoints, dangling DNS, exposed admin panels and edge devices — and prioritize fixes. Use for external exposure assessments, after acquisitions, or when a new edge-device vulnerability is announced.

The file

Files
SKILL.md

External Attack Surface Review

Scope: assets your organization owns or is authorized to assess. Confirm ownership before any active probing.

Discover

# Subdomains from certificate transparency
curl -s 'https://crt.sh/?q=%25.example.com&output=json' | jq -r '.[].name_value' | tr '[:upper:]' '[:lower:]' | sed 's/^\*\.//' | sort -u > ct.txt
# Passive subdomain enumeration (authorized use of APIs)
subfinder -d example.com -silent > subfinder.txt
cat ct.txt subfinder.txt | sort -u > subs.txt
# Resolve and find live web services
dnsx -l subs.txt -a -resp -silent > resolved.txt
httpx -l subs.txt -title -status-code -tech-detect -silent > web.txt

IP space: RIR/WHOIS for your ASNs and allocations, cloud provider IP inventories (cloud-exposure-review). Passive service data: Shodan/Censys queries limited to your ranges/domains (net:203.0.113.0/24, ssl.cert.subject.cn:example.com).

Review

FindingPriority
Edge devices (VPN, firewalls, file transfer, remote access gateways) with vulnerable versionsP1 — frequent KEV entries
Admin interfaces exposed (RDP, SSH with passwords, management GUIs, Kubernetes API, database ports, Elasticsearch/Redis/MongoDB)P1
Dangling DNS (CNAME to deprovisioned cloud resources)P1 — subdomain takeover
Staging/dev sites with real data or no authP2
Expired/weak TLS, missing HSTSP3
Unknown assets (no owner)Investigate: shadow IT or third party

Dangling CNAME check: dig +short CNAME sub.example.com → target returns NXDOMAIN or a provider "no such bucket/app" page.

Safety

Active scanning (port scans, nuclei) only on assets confirmed as yours, with authorization, low rate, and coordination with the SOC and hosting providers.

Related skills

cloud-exposure-review, exposure-validation, shadow-it-discovery, emergency-vulnerability-response

References

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.