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
- Very specific: line 41
Before /axguard-audit when scope is unclear.
- Very specific: line 59
Prefer CLI when available: run axguard surface <path> (or rely on the audit surface phase via axguard audit) to get application-model.json …
“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.
Files
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-auditwhen scope is unclear. - Alongside
threat-modelingfor 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
- Prefer CLI when available: run
axguard surface <path>(or rely on the auditsurfacephase viaaxguard audit) to getapplication-model.json/.mdbefore manual inventory. - Identify exposure: web routes, GraphQL, WS, gRPC, webhooks, mobile BFF, admin panels, debug/actuators.
- List trust inputs: params, headers, files, messages, env-injected dynamic config, model/tool outputs.
- Map identities: anonymous, user, admin, service, CI.
- Note data stores & egress: DB, object storage, email, outbound HTTP (SSRF candidates), cloud metadata.
- Flag high-risk features: auth, payments, uploads, HTML render, template editors, deserializers, shell-outs, agents.
- Diff inventory vs docs/OpenAPI — mark undocumented/shadow routes.
- Prioritize top surfaces → assign AXGuard commands/skills (
/axguard-auth,ssrf-analysis, etc.). - Hand off to
threat-modeling(abuse cases) andaxguard 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 changeRelated Skills
threat-modeling,security-architecture-reviewapi-security,axguard-cso/ audit orchestration
Framework Mapping
- OWASP A04:2021 Insecure Design
- OWASP API9:2023 Improper Inventory Management
References
- https://owasp.org/Top10/A04_2021-Insecure_Design/
- https://owasp.org/API-Security/editions/2023/en/api9-improper-inventory-management/
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)
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- yaklang/hack-skills★ 2.4ksame name
- conjure-3301/skills★ 0same name
- MohOneX/claude-opus-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository39 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ai-agent-securitySkill
- ai-application-securitySkill
- api-securitySkill
- authentication-analysisSkill
- authorization-analysisSkill
- axguard-auditSkill
- axguard-csoSkill
- axguard-knowledgeSkill
- axguard-preshipSkill
- axguard-remediateSkill
- axguard-reportSkill
- axguard-securitySkill
- axguard-triageSkill
- cloud-securitySkill
- command-injectionSkill
- configuration-securitySkill
- deserialization-securitySkill
- file-upload-securitySkill
- graphql-securitySkill
- jwt-securitySkill
- mcp-securitySkill
- oauth-securitySkill
- path-traversalSkill
- prompt-injectionSkill
- prototype-pollutionSkill
- secrets-detectionSkill
- security-architecture-reviewSkill
- security-remediationSkill
- security-triageSkill
- session-securitySkill
- sql-injectionSkill
- ssrf-analysisSkill
- ssti-analysisSkill
- supply-chain-securitySkill
- threat-modelingSkill
- websocket-securitySkill
- xss-analysisSkill
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.

