map-attack-surface
Skill0 starsChanged 4 months agoMITView on GitHub
Maps an owned or explicitly authorized system's internal, external, or combined attack surface into an evidence-backed asset ledger, reachability model, and prioritized attack paths. Use when inventorying exposed assets, reconciling shadow IT, scoping a security assessment, understanding trust and privilege boundaries beyond one codebase, or establishing a baseline for continuous exposure management. Passive discovery is the default; active probing requires explicit targets and rules of engagement.
In this repository72 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- agents-md-initSkill
- analytical-frameworksSkill
- appkit-accessibility-auditorSkill
- assess-security-controlsSkill
- audit-accessibilitySkill
- automated-security-reviewSkill
- changelogSkill
- check-ai-onboard-updatesSkill
- agents-sdkSkill
- cloudflare-email-serviceSkill
- cloudflare-oneSkill
- durable-objectsSkill
- sandbox-sdkSkill
- turnstile-spinSkill
- workers-best-practicesSkill
- wranglerSkill
- cobra-commandSkill
- competitive-intelSkill
- component-scaffoldSkill
- conduct-open-source-investigationSkill
- conduct-user-researchSkill
- conventional-commitSkill
- coordinate-data-viewsSkill
- core-data-expertSkill
- data-storytellingSkill
- datavizSkill
- debug-systematicallySkill
- define-brand-foundationSkill
- dependency-vuln-scanSkill
- design-and-build-websiteSkill
- design-product-contentSkill
- design-product-interfaceSkill
- develop-apple-platform-appSkill
- develop-test-firstSkill
- evolve-design-systemSkill
- gh-issueSkill
- gh-prSkill
- gh-releaseSkill
- identity-managementSkill
- input-sanitizationSkill
- manage-vulnerability-riskSkill
- market-researchSkill
- measure-product-experimentsSkill
- obsidianSkill
- pr-descriptionSkill
- preserve-web-evidenceSkill
- prisma-migrateSkill
- retrieve-technical-docsSkill
- secret-managementSkill
- secret-scanSkill
- secure-codingSkill
- security-auditSkill
- shape-product-opportunitySkill
- simplify-code-safelySkill
- swift-api-design-guidelinesSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 13 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Keep discovery separate from vulnerability testing: this skill establishes coverage and attack paths, then routes deeper assessment to …
- Distinctive: line 21
Read references/authorization-and-scope.md.
- Very specific: line 23
If ownership or authorization is ambiguous, do not produce an attack-surface ledger, attack paths, or security-target priorities.
- Very specific: line 29
Use conduct-open-source-investigation for a substantial public-source evidence investigation.
- Very specific: line 30
Use threat-model after the surface exists to apply STRIDE to important flows and boundaries.
- Very specific: line 31
Use security-audit to inspect an application or codebase for concrete vulnerabilities.
- Very specific: line 32
Use manage-vulnerability-risk when findings need prioritization, ownership, remediation, and retesting.
- Very specific: line 33
Use assess-security-controls when the question is whether defined controls are designed and operating.
- Very specific: line 34
Use vulnerability-hardening, identity-management, secret-scan, or dependency-vuln-scan for their bounded remediation or testing jobs.
- Distinctive: line 37
Do not repeat those procedures inside the surface map.
- Distinctive: line 52
Start with authoritative inventories and configuration, then compare them with observed sources.
- Distinctive: line 56
Do not make a paid service, API key, account signup, or new scanner installation a prerequisite.
- Distinctive: line 61
Use assets/attack-surface-ledger-template.md when a durable artifact helps.
- Distinctive: line 73
Keep ambiguous assets separate until evidence supports a merge.
- Distinctive: line 90
Read references/analysis-and-monitoring.md.
- Distinctive: line 94
Call out unknown owners, conflicting inventories, unmanaged identities, stale assets, unmonitored zones, unsupported systems, third-party …
- Distinctive: line 99
Use an independent reviewer to challenge ownership, source independence, missing asset classes, and attack path assumptions when available.
- Distinctive: line 115
Never exploit, bypass access controls, spray credentials, persist, exfiltrate, socially engineer, or run destructive or high-volume tests …
- Distinctive: line 117
Never expand from an authorized asset to a related third party without separate authority.
- Distinctive: line 119
Stop active work when a target behaves unexpectedly, scope cannot be confirmed, or safety thresholds in the rules of engagement are reached.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Map attack surface
Produce a defensible map of what can be reached, what it connects to, what it protects, and who owns it. Keep discovery separate from vulnerability testing: this skill establishes coverage and attack paths, then routes deeper assessment to narrower skills.
Establish authority and scope
- Name the organization, system, environments, business objective, time window, and decision owner.
- Record target inclusions and exclusions using exact identifiers where possible: repositories, accounts, tenants, domains, CIDRs, applications, facilities, or business units.
- Classify the permitted action level before collecting:
- Passive: inspect supplied artifacts and public records without sending probes to a target.
- Authorized read-only: query an approved inventory, cloud, directory, logging, or security system.
- Authorized active: send bounded discovery or validation traffic under written rules of engagement.
- Read references/authorization-and-scope.md. Do not infer that a hostname, shared-cloud address, vendor portal, or public record is owned or authorized.
- If ownership or authorization is ambiguous, do not produce an attack-surface ledger, attack paths, or
security-target priorities. Ask for authority or route proportionate general public-source research to
conduct-open-source-investigation; do not widen it into security reconnaissance.
Route adjacent work
- Use
conduct-open-source-investigationfor a substantial public-source evidence investigation. - Use
threat-modelafter the surface exists to apply STRIDE to important flows and boundaries. - Use
security-auditto inspect an application or codebase for concrete vulnerabilities. - Use
manage-vulnerability-riskwhen findings need prioritization, ownership, remediation, and retesting. - Use
assess-security-controlswhen the question is whether defined controls are designed and operating. - Use
vulnerability-hardening,identity-management,secret-scan, ordependency-vuln-scanfor their bounded remediation or testing jobs.
Do not repeat those procedures inside the surface map.
Build the map
1. Select the view
- For enterprise, cloud, SaaS, identity, endpoint, network, CI/CD, and administrative surfaces, read references/internal-mapping.md.
- For internet-reachable and publicly discoverable assets, read references/external-mapping.md.
- For a combined assessment, read both and preserve an
internal,external, orbothmarker on each record.
2. Collect from independent sources
Start with authoritative inventories and configuration, then compare them with observed sources. Record the source, retrieval time, collection method, and scope for every import or observation. Treat absence from one source as a coverage question, not proof that an asset does not exist.
Do not make a paid service, API key, account signup, or new scanner installation a prerequisite. Use free, local, public, or already-authorized capabilities available in the environment.
3. Normalize and establish ownership
Use assets/attack-surface-ledger-template.md when a durable artifact helps. Deduplicate aliases without erasing source provenance. Assign:
- a stable asset identifier and asset class;
- business and technical owners, or an explicit
unknown; - environment and lifecycle state;
- source-backed ownership confidence;
- internal and external reachability;
- identities, privileges, trust zone, and administrative plane;
- data sensitivity, business criticality, and dependencies; and
- last observed date and monitoring source.
Keep ambiguous assets separate until evidence supports a merge.
4. Model exposure and attack paths
Draw a compact graph or table from potential actor to entry point, identity or control boundary, dependent asset, protected data or capability, and plausible outcome. Include unauthenticated access, ordinary users, privileged users, machine identities, vendors, and insiders where relevant.
Distinguish:
- observed reachability from inferred reachability;
- an exposure from a vulnerability;
- a control presence from verified control effectiveness; and
- a plausible path from a demonstrated path.
5. Prioritize and identify coverage gaps
Read references/analysis-and-monitoring.md. Rank paths using exposure, privilege, asset criticality, data sensitivity, control strength, and confidence. Do not assign false numerical precision when evidence is incomplete.
Call out unknown owners, conflicting inventories, unmanaged identities, stale assets, unmonitored zones, unsupported systems, third-party dependencies, and areas the collection method could not observe.
6. Review and report
Use an independent reviewer to challenge ownership, source independence, missing asset classes, and attack path assumptions when available. Use a verifier to reproduce a sample of high-impact records and confirm that the report does not imply active validation that did not occur.
Report:
- scope, authority, action level, assumptions, and exclusions;
- source and coverage summary;
- asset ledger and ownership gaps;
- high-priority exposure and attack paths with confidence;
- unknowns and conflicting evidence;
- routed next assessments and remediation owners; and
- a monitoring plan for detecting material surface change.
Safety rules
- Never exploit, bypass access controls, spray credentials, persist, exfiltrate, socially engineer, or run destructive or high-volume tests as part of mapping.
- Never expand from an authorized asset to a related third party without separate authority.
- Minimize personal data and secrets in the ledger; link to protected evidence rather than copying it.
- Stop active work when a target behaves unexpectedly, scope cannot be confirmed, or safety thresholds in the rules of engagement are reached.
Completion standard
The map is complete when a decision-maker can see what was covered, which assets are owned, how important assets may be reached, where evidence is weak, what requires deeper assessment, and how material change will be detected.
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
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.

