securitygraph_cwe
Markdown export of the MITRE CWE catalog for graph-oriented tools such as keep and Obsidian.
This repository contains generated Markdown documents for:
- CWE weaknesses
- CWE categories
- CWE views
- CWE external references
The source of truth is MITRE's published CWE XML catalog. The generator in src/ downloads the upstream files into .cache/ and rebuilds the Markdown corpus from those primary sources.
Source Data
MITRE publishes the CWE schema and catalog at:
https://cwe.mitre.org/data/xsd/cwe_schema_latest.xsdhttps://cwe.mitre.org/data/xml/cwec_latest.xml.zip
The source data is subject to the CWE Terms of Use:
https://cwe.mitre.org/about/termsofuse.html
Repository Layout
weaknesses/: one Markdown file per CWE weaknesscategories/: one Markdown file per CWE categoryviews/: one Markdown file per CWE viewreferences/: one Markdown file per external referencesrc/parse_cwe.py: parser and rendererspec/spec.md: export spec.cache/: ignored download cache for the original MITRE files
Regenerating
Rebuild everything from the original MITRE sources with:
make parse
This will:
- Download the latest schema and catalog into
.cache/ - Regenerate
categories/,views/,weaknesses/, andreferences/
To remove generated output directories:
make clean
Export Conventions
- Document identity is stored in
_id - Reference provenance uses
_source_uri - Cross-document relationships use wikilinks such as
[[CWE-20|Improper Input Validation]] - Weakness and view bodies are rendered to roughly match the section layout used on the CWE website
License
The repository includes MITRE's LICENSE.txt. See that file together with MITRE's published Terms of Use.
How to Install
- Download the ZIP or clone the repository
- Open the folder as a vault in Obsidian (File → Open Vault)
- Obsidian will prompt you to install required plugins
Stats
Stars
0
Forks
0
License
NOASSERTION
Last updated 2d ago
Tags
cwemitre