Related weaknesses
The weaknesses an attack pattern targets.
GET/api/v1/capecs/{capecId}/cwes
The CWE weaknesses that a CAPEC attack pattern targets, each with its id and name — the bridge from how an attack works to the weakness it exploits.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
capecId | path | string | Attack-pattern id (66 or CAPEC-66). |
Example request
curl "https://radicalnotion.ai/api/v1/capecs/586/cwes" \
-H "Authorization: Bearer $RN_TOKEN"Example response
{
"capec_id": "CAPEC-586",
"count": 1,
"cwes": [
{
"id": "cwe-502",
"display": "CWE-502",
"name": "Deserialization of Untrusted Data"
}
]
}Response schema
| Field | Type | Description |
|---|---|---|
capec_id | string | The attack pattern the weaknesses map to. |
count | integer | Number of related weaknesses. |
cwes[].id / display / name | string | The related weakness. |
Responses
| Status | Meaning |
|---|---|
200 | Success. |
400 | A path or query parameter failed validation. |
401 | Missing or invalid access token. |
429 | Rate limit exceeded. |