agentleFS
RifteoRifteo/skills/attack-surface/SKILL.md

attack-surface

Skill37 starsChanged 5 months agoMITView on GitHub

Maps every entry point, component, and trust boundary of a target before testing begins prevents missed coverage and prioritizes the highest-value attack paths. Trigger when the user provides a target and wants to know where to start, says "map the attack surface", "what should I test", or "where do I begin", or is starting any engagement after scope-grill is complete.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before testing individual vulnerabilities, map the full attack surface.

    line 13
  2. Distinctive:

    Follow with a Recommended Testing Order — ordered list of highest-value targets first.

    line 58
  3. Distinctive:

    Do not start testing until Phase 1 is complete — partial maps lead to missed coverage

    line 62
  4. Distinctive:

    If the scope is large, timebox Phase 1 and note what was not mapped

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Attack Surface Mapper

Before testing individual vulnerabilities, map the full attack surface. Untested components are unfound vulnerabilities. This skill produces a structured map that drives testing coverage.

Process

Phase 1 — Enumerate Entry Points

Systematically identify every place an attacker could interact with the target:

  • Web — domains, subdomains, ports 80/443, login pages, API endpoints, file upload, search, export
  • APIs — REST, GraphQL, SOAP, WebSocket, mobile API backends
  • Auth flows — login, registration, password reset, OAuth/SSO, MFA bypass paths
  • Network — open ports, admin interfaces (SSH, RDP, Telnet), VPNs, exposed management panels
  • Cloud — S3 buckets, blob storage, exposed functions/lambdas, public AMIs, metadata endpoints
  • Third-party integrations — webhooks, OAuth providers, embedded iframes, CDN-served content
  • Client-side — JavaScript source, local storage, service workers, postMessage handlers

Phase 2 — Identify Trust Boundaries

Mark where the system transitions between trust levels:

  • Unauthenticated → authenticated
  • User role → admin role
  • External network → internal network
  • Client-controlled input → server-side processing

Phase 3 — Tech Stack Fingerprint

For each component, note:

  • Language / framework
  • Version (if visible)
  • Authentication mechanism
  • Known CVEs for the version (run check-exploit skill on identified versions)

Phase 4 — Prioritize

Rank attack paths by value. See references/priority-matrix.md.

Output Format

Produce a Surface Map table:

ComponentTypeAuth RequiredTech StackPriorityNotes
/api/v2/usersREST APIBearer tokenNode.js/ExpressHighReturns PII
admin.target.comWeb appBasic authApache/PHPCriticalExposed to internet

Follow with a Recommended Testing Order — ordered list of highest-value targets first.

Rules

  • Do not start testing until Phase 1 is complete — partial maps lead to missed coverage
  • If the scope is large, timebox Phase 1 and note what was not mapped
  • Reference check-exploit for every identified technology version

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.