An agent skill that maps a reported vulnerability (CVE, bug report, finding, or pentest result) to the single most accurate CWE weakness, chosen by its root cause — while enforcing hard rules that forbid Pillar, Class, Category, View, and deprecated/Prohibited/Discouraged entries.
The skill lives in cwe-root-cause-mapping/.
- Lands only on a Base or Variant CWE whose Mapping Usage is Allowed / Allowed-with-Review.
- Prefers a Variant when the root cause is bound to a language/technology/platform/hardware that is actually present; otherwise a Base.
- Searches a domain-specific view first (e.g. Hardware
CWE-1194, SoftwareCWE-699), thenCWE-1003(the NVD view), then the full corpus (CWE-1000). - Maps the root cause, not the impact or attack vector; for chains, recommends the primary link.
- Two modes: simple (from a structured question bank + live CWE content) and verbose (also enriches from NVD, OSV.dev, GitHub Advisories, and linked references, and compares against similar vulnerabilities' assigned CWEs).
Copy the skill folder into your skills directory:
# Claude Code — per-user (all projects)
cp -r cwe-root-cause-mapping ~/.claude/skills/
# …or per-project (shared via your repo)
cp -r cwe-root-cause-mapping <your-repo>/.claude/skills/Then ask, e.g. "map this CVE to a CWE" / "root cause mapping for this finding". See the skill's own README for the helper script and data sources.
Designed to be safe to share: unauthenticated public endpoints only, an HTTPS host allowlist, no
credential handling, workspace-confined, and prompt-injection-resistant. Details in
cwe-root-cause-mapping/SECURITY.md. Scanned clean (no
high/critical) with the Cisco AI Defense
skill-scanner.
MIT. CWE™ is a trademark of The MITRE Corporation; this is an independent helper, not affiliated with or endorsed by MITRE.