domain-surface
Review the external attack surface of a domain via mlab.sh - DNS records, subdomains, SSL certificates, mail spoofability (SPF/DKIM/DMARC), security.txt and exposed hosts. Use when the user asks to scan/audit/review a domain, check what a company exposes, verify their own perimeter, or assess a third party's external posture.
- License 许可
- MIT
- 最近更新
- 2026-10-22
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- domain-surface
- description
- Review the external attack surface of a domain via mlab.sh - DNS records, subdomains, SSL certificates, mail spoofability (SPF/DKIM/DMARC), security.txt and exposed hosts. Use when the user asks to scan/audit/review a domain, check what a company exposes, verify their own perimeter, or assess a third party's external posture.
03 SKILL.md 正文
Domain Surface Review
Before interpreting any tool result, read
${CLAUDE_PLUGIN_ROOT}/docs/tool-reference.md: verified output shapes and gotchas that override intuition.
Workflow
1. Scan the domain
start_domain_scan on the apex domain. Domain scans consume quota; for a list of domains, check get_scan_limits first. If a recent scan exists you get results immediately; otherwise poll get_domain_scan_results every few seconds until status is completed. Tell the user the scan is running rather than going silent.
2. Walk the surface
From the completed scan:
- Subdomains: group by function (mail, dev/staging, vpn, api, cdn...). dev-, staging-, test-, old- prefixes on public DNS are findings in themselves.
- DNS records: dangling records (CNAME to unclaimed services = takeover candidates), wildcard entries, suspicious TXT records.
- SSL certificates: expired or expiring soon, weak configs, certs revealing internal hostnames.
- security.txt / robots.txt: present? robots.txt disclosing sensitive paths?
3. Deepen selectively
- Interesting exposed hosts →
scan_ipon their A records: datacenter vs corporate ASN, proxy/VPN flags, rDNS coherence. Each lookup consumes quota; pick the hosts that matter, do not carpet-scan. - Mail posture →
scan_emailonpostmaster@<domain>: returns the domain's SPF/DKIM/DMARC spoofability verdict. A spoofable domain is usually the report's top finding for anyone doing phishing-awareness.
4. Report
## External surface: <domain>
**Posture:** <tight | average | leaky> - <one sentence>
### Top findings
<3-5 prioritized, each: finding -> risk -> fix>
### Surface inventory
| Subdomain | Points to | Notes |
### Mail spoofability
<SPF/DKIM/DMARC verdict + what it permits an attacker>
### Certificates
<expiries, anomalies>
### Not covered
<what a DNS-based scan cannot see: closed ports, appl-level vulns, internal segmentation>
Rules
- This is reconnaissance from public data, not a pentest; the report says so and never claims exploitability.
- For a third-party domain, stay descriptive. Do not suggest intrusive follow-ups against infrastructure the user does not own.
- Takeover candidates are reported as "candidate, verify ownership of <service>" - confirming one means claiming the resource, which is not this skill's job.
04 同仓库更多 Skills
threat-watch
Generate a threat landscape digest from mlab.sh - recent critical/KEV CVEs filtered to a declared technology stack, with actor attribution. Use when the user asks what is new in vulnerabilities, wants a daily/weekly threat brief, asks about recent CVEs for a product, or sets up a recurring watch on their stack.
supply-chain-audit
Full supply-chain audit of a project - postmortem detects malicious code, install hooks and risky dependencies locally, then mlab.sh enriches what it finds (hashes, endpoints, actors, CVEs). Use when the user asks to audit a project's dependencies or supply chain, check a repo for malicious packages, or vet a codebase before adoption or deployment.
smishing-campaign
Analyze a batch of reported SMS/text messages through mlab.sh - score each for smishing, cluster them into campaigns, and extract the shared infrastructure (URLs, callback numbers, sender patterns). Use when the user has multiple reported SMS from users/employees, or investigates an SMS phishing wave. For a single message, phishing-triage does the job.
script-triage
Statically analyze a suspicious shell script through mlab.sh - install.sh, cron payloads, CI steps, curl-pipe-sh one-liners. Flags dangerous constructs (download-piped-to-shell, base64 decoding, reverse shells, persistence, anti-forensics, destructive deletes), extracts every IOC and enriches them. Use when the user pastes shell code and asks if it is safe/malicious, or provides a .sh file to vet before running it.
sbom-export
Generate a CycloneDX SBOM locally with postmortem and push it through mlab.sh vulnerability scanning - for projects or container images where no single lockfile can be pasted. Use when the user asks for an SBOM, needs vuln scanning of a container image or a multi-ecosystem repo, or when sbom-audit lacks a usable lockfile.
sbom-audit
Audit a dependency lockfile or SBOM for known vulnerabilities via mlab.sh, prioritize findings by KEV status and EPSS, and attribute actively exploited CVEs to threat actors. Use when the user provides a lockfile (package-lock.json, yarn.lock, pnpm-lock.yaml, Cargo.lock, requirements.txt, poetry.lock, uv.lock, Pipfile.lock, go.sum, composer.lock, Gemfile.lock, pom.xml, gradle.lockfile, packages.lock.json, pubspec.lock, mix.lock) or a CycloneDX / SPDX SBOM, or asks to check dependencies for vulnerabilities.