---
id: "capec_id"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["software"]
langs: ["common"]
quality: 75
url: "http://registry.apicrafter.io/datatype/capec_id"
---

# CAPEC identifier (`capec_id`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Identifier of an attack pattern in MITRE's Common Attack Pattern Enumeration and Classification (CAPEC): CAPEC- followed by a number of one to five digits without leading zeros. CVE records use it to describe the impact of a vulnerability, and MITRE ATT&CK techniques refer to related CAPEC entries with it.

- Personal data (PII): no
- Categories: Software development (software)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^CAPEC-[1-9][0-9]{0,4}$
```

## Examples

- `CAPEC-66` — SQL Injection
- `CAPEC-13` — Subverting Environment Variable Values, referenced by ATT&CK technique HISTCONTROL
- `CAPEC-0` (invalid example) — Zero is not a valid number

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/CAPEC>
- doc: <https://capec.mitre.org/data/definitions/66.html>
- doc: <https://github.com/CVEProject/cve-schema/blob/main/schema/CVE_Record_Format.json>

## Quality

Score 75/100. Missing: mapping (Wikidata, Schema.org, ...), translation, detector coverage.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/capec_id.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/software/capec_id.yaml>
