agentleFS
awarexoneawarexone/AXguard/attack-surface-mapping/SKILL.md

attack-surface-mapping

Skill17 starsChanged 47 days agoMITView on GitHub

Map application attack surface before deep scanning — use to inventory entry points, trust boundaries, data stores, and high-risk features that prioritize AXGuard skills and /axguard-audit.

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before /axguard-audit when scope is unclear.

    line 41
  2. Very specific:

    Prefer CLI when available: run axguard surface <path> (or rely on the audit surface phase via axguard audit) to get application-model.json …

    line 59

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “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 Mapping

Purpose

Produce a concise attack surface inventory of the software under review so subsequent AXGuard skills target real entry points instead of guessing.

When to Use / When Not to Use

Use when:

  • First touch on a repo, large PR, or pre-ship gate.
  • Before /axguard-audit when scope is unclear.
  • Alongside threat-modeling for unknown systems.

Do not use when:

  • A single known sink class is already in scope (go to that domain skill).
  • Pure dependency CVE scanning without app entry mapping (supply-chain skill when available).

Security Concepts

Attack surface = reachable interfaces that accept trust (HTTP, WS, queues, uploads, admin CLIs, agent tools). Shadow endpoints and forgotten versions (API9) are surface, not footnotes.

Threat Model

Mapping itself is not a vuln. It identifies where attackers interact: anonymous vs authenticated surfaces, high-value sinks, and unmanaged inventory.

Analysis Workflow

  1. Prefer CLI when available: run axguard surface <path> (or rely on the audit surface phase via axguard audit) to get application-model.json / .md before manual inventory.
  2. Identify exposure: web routes, GraphQL, WS, gRPC, webhooks, mobile BFF, admin panels, debug/actuators.
  3. List trust inputs: params, headers, files, messages, env-injected dynamic config, model/tool outputs.
  4. Map identities: anonymous, user, admin, service, CI.
  5. Note data stores & egress: DB, object storage, email, outbound HTTP (SSRF candidates), cloud metadata.
  6. Flag high-risk features: auth, payments, uploads, HTML render, template editors, deserializers, shell-outs, agents.
  7. Diff inventory vs docs/OpenAPI — mark undocumented/shadow routes.
  8. Prioritize top surfaces → assign AXGuard commands/skills (/axguard-auth, ssrf-analysis, etc.).
  9. Hand off to threat-modeling (abuse cases) and axguard audit (detection).

Evidence Requirements

Surface maps are inventory artifacts. Do not file CVEs from mapping alone. Record:

  • Entry point list with auth expectation
  • High-risk feature tags
  • Recommended next skills

False Positive Controls

  • Dead code / unreachable feature flags documented as non-surface
  • Internal-only listeners bound to localhost with confirmed deployment evidence
  • Third-party SaaS UIs outside the owned codebase (note as dependency risk only)

Remediation

Inventory gaps become engineering work: remove shadow APIs, document OpenAPI, disable debug surfaces, reduce anonymous reachability.

Verification

axguard surface <path> (or audit surface phase) → Confirm against routes/deploy config → Feed /axguard-audit → Update map when features change

Related Skills

  • threat-modeling, security-architecture-review
  • api-security, axguard-cso / audit orchestration

Framework Mapping

  • OWASP A04:2021 Insecure Design
  • OWASP API9:2023 Improper Inventory Management

References

Research Provenance

Primary sources:

  • OWASP Top 10:2021 A04; OWASP API9:2023 (accessed 2026-09-15)

Secondary / internal:

  • AXGuard /axguard-threat-model, /axguard-audit, CSO skill
  • AwareXone Agentic-Bug-Hunter recon/surface methodology (concepts only; not copied)

Datasets:

  • UVID HF dataset — category linkage concepts only (MIT license metadata review 2026-09-15)

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.