ingest-cwe-taxonomies
bởi microsoft
Nhập cơ sở dữ liệu MITRE CWE chính thức và tạo các phân loại kiểm toán bảo mật theo từng miền cho PromptKit. Sử dụng kỹ năng này khi người dùng muốn cập nhật CWE…
npx skills add https://github.com/microsoft/promptkit --skill ingest-cwe-taxonomiesYou must read and execute the prompt file at
.github/prompts/ingest-cwe-taxonomies.prompt.md. Treat it as the
complete, self-contained instruction set for the CWE ingestion pipeline.
Inputs
- CWE source: A local path to a CWE XML file, or
latestto download the current release fromhttps://cwe.mitre.org/data/xml/cwec_latest.xml.zip. - Any overrides to the domain registry or mapping rules the user specifies.
Output
- Per-domain taxonomy files at
taxonomies/cwe-<domain>.md(13 domains) - Normalized CWE data at
data/cwe/<version>/ - Updated
manifest.yamlwith new taxonomy entries - Reusable ingestion script at
scripts/ingest-cwe.py - Diff report if a previous CWE version exists
Workflow
- Read
.github/prompts/ingest-cwe-taxonomies.prompt.mdbefore doing anything else. - Ask the user for the CWE source (path or
latest). - Follow all six phases defined in the prompt file: Acquisition, Normalization, Domain Mapping, Taxonomy Generation, Integration, and Verification.
- Do NOT skip the sanity checks in Phase 6.