CAPEC-21 / ATTACK-PATTERN
Exploitation of Trusted Identifiers
An adversary guesses, obtains, or "rides" a trusted identifier (e.g. session ID, resource ID, cookie, etc.) to perform authorized actions under the guise of an authenticated user or service.
- Category
- CAPEC patterns
- Version / scope
- CAPEC 3.9; release 2023-01-24; publisher status Stable
- Affected / relevant technologies
- Platform scope not specified separately in this source
- Evidence
- Documentation: pinned-source excerpt checked. Execution: not tested. Editorial: curated reference.
Defensive analysis and explicitly authorized assessment only. This website performs no scans, exploitation, model calls or infrastructure changes. Indicators below are investigation opportunities, not proof of compromise or guaranteed detectors.
Mechanism and prerequisites
Server software must rely on weak identifier proof and/or verification schemes. Identifiers must have long lifetimes and potential for reusability. Server software must allow concurrent sessions to exist.
Potential impact
Confidentiality Access Control Authentication Gain Privileges Confidentiality Read Data Integrity Modify Data
Versioned source scope
This record contains normalized, sometimes shortened source excerpts with editorial safety context. Markup and executable example blocks are omitted. Source-field verification does not establish device testing, a working detector or local applicability.
Publisher: MITRE. Release: CAPEC 3.9; release 2023-01-24; publisher status Stable. Source checked: 2026-11-18.
Source object: CAPEC-21. Object modified: 2022-09-29.
Attribution and source terms (© The MITRE Corporation; reproduced with permission)Detection and investigation
- No standalone detection method is provided in the selected source fields. Do not infer that absence of an alert establishes safety.
Preserve source timestamps, asset identity and collection context. Correlate independent evidence before attributing malicious intent. In OT, review passive evidence with the process owner; do not induce failures, replay commands or write to controllers to test a hypothesis.
Mitigation and response
- Design: utilize strong federated identity such as SAML to encrypt and sign identity tokens in transit.
- Implementation: Use industry standards session key generation mechanisms that utilize high amount of entropy to generate the session key. Many standard web and application servers will perform this task on your behalf.
- Implementation: If the identifier is used for authentication, such as in the so-called single sign on use cases, then ensure that it is protected at the same level of assurance as authentication tokens.
- Implementation: If the web or application server supports it, then encrypting and/or signing the identifier (such as cookie) can protect the ID if intercepted.
Apply changes through the asset owner's approved change and recovery process. Documentation review is separate from successful testing or verified production protection.
Related technical context
No protocol-specific mapping is asserted for this entry.
Related security reading
Continue directly to another reference. Editorial reading connections do not assert official CWE/CAPEC/ATT&CK/OWASP equivalence or mappings.
- OWASP WSTG — Web Security Testing Guide (guidance)
Publisher weakness and attack-pattern relationships
These relationships retain the publisher's source attributes and view context; they do not establish that an attack or weakness applies to a particular system.
- CAPEC-12 → PeerOf → CAPEC-21 Open related reference
- CAPEC-196 → ChildOf → CAPEC-21 Open related reference
- CAPEC-21 → Related_Weakness → CWE-290 Open related reference
- CAPEC-21 → Related_Weakness → CWE-302 Open related reference
- CAPEC-21 → Related_Weakness → CWE-346 Open related reference
- CAPEC-21 → Related_Weakness → CWE-384 Open related reference
- CAPEC-21 → Related_Weakness → CWE-539 Open related reference
- CAPEC-21 → Related_Weakness → CWE-6 Open related reference
- CAPEC-21 → Related_Weakness → CWE-602 Open related reference
- CAPEC-21 → Related_Weakness → CWE-642 Open related reference
- CAPEC-21 → Related_Weakness → CWE-664 Open related reference
- CAPEC-510 → ChildOf → CAPEC-21 Open related reference
- CAPEC-593 → ChildOf → CAPEC-21 Open related reference
- CAPEC-62 → ChildOf → CAPEC-21 Open related reference
- CWE-290 → Related_Attack_Pattern → CAPEC-21 Open related reference
- CWE-302 → Related_Attack_Pattern → CAPEC-21 Open related reference
- CWE-346 → Related_Attack_Pattern → CAPEC-21 Open related reference
- CWE-384 → Related_Attack_Pattern → CAPEC-21 Open related reference
- CWE-539 → Related_Attack_Pattern → CAPEC-21 Open related reference
- CWE-6 → Related_Attack_Pattern → CAPEC-21 Open related reference
- CWE-602 → Related_Attack_Pattern → CAPEC-21 Open related reference
- CWE-642 → Related_Attack_Pattern → CAPEC-21 Open related reference
- CWE-664 → Related_Attack_Pattern → CAPEC-21 Open related reference
Authoritative sources and attribution
Identifiers and source titles belong to OWASP, MITRE, the CVE Program, CISA, NIST or the cited vendor. Source excerpts are attributed and adapted under the linked publisher license; editorial context is separate. This is not an official framework mirror. Review baseline: 2026-11-18. Live documents can change; check exact current applicability.
- Publisher reference: CAPEC-21 — source accessed 2026-11-18
- capec — source accessed 2026-11-18
Source review supports bounded reference text. It is not execution evidence, a completeness claim, a CVSS assessment, a compliance certification or verification of production security.
