Join our Newsletter — 33% off our NHI Course
Home› FAQ› Threats, Abuse & Incident Response› How do attackers use CRIME Attack?
Threats, Abuse & Incident Response

How do attackers use CRIME Attack?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 18, 2026 Domain: Threats, Abuse & Incident Response

Attackers use CRIME to recover secrets from compressed TLS or SPDY traffic by exploiting compression side channels. They induce repeated requests and compare size changes to guess protected values, such as session tokens. Defenders should disable compression where it is unnecessary and avoid placing attacker-controlled input near sensitive reflected values.

How CRIME turns compression into a secret-recovery channel

CRIME works because compression makes protected data slightly shorter when attacker-controlled input matches the secret being reflected nearby. The attacker does not need to break TLS directly, they need repeated measurements. By sending chosen inputs and watching length changes in compressed traffic, they can infer session tokens or similar secrets one byte at a time.

The practical danger is that the attack succeeds through observation, not decryption. That makes the channel attractive wherever a secret is compressed in the same message as user-supplied content, especially in protocols or application flows that repeat the same request many times.

Why repeated requests make the attack effective

CRIME is an adaptive attack. The attacker varies one guess at a time, then compares compressed sizes across many requests until a candidate value produces a better size reduction than the alternatives. That feedback loop is what turns a weak signal into a usable oracle.

In practice, this means the attacker needs a stable target and enough repetitions to separate real size differences from normal traffic noise. If the application changes message structure, randomises responses, or avoids reflecting attacker input near secrets, the side channel becomes much less useful.

The State of NHI & AI Agent Breach Report 2026 is useful background on how stolen tokens and secrets are abused once they are exposed.

What defenders should change in the protocol and application design

The first fix is to remove the condition that creates the oracle. Disable compression where it is not needed, especially for traffic that carries authentication material. If compression must stay enabled for performance reasons, keep attacker-controlled content away from sensitive reflected values so the compressor cannot create a measurable correlation.

It also helps to treat secrets as data that should never be co-located with untrusted input in a way that is visible to compression. The question is not only whether the secret is encrypted in transit, but whether the surrounding message structure leaks information before encryption does its work.

When the protocol exposes multiple layers, review each one separately. A secure transport alone does not protect a design that still gives an attacker a length oracle through compression, repetition, and reflection.

Risk and Threat Considerations

Compression side channels matter because they convert ordinary protocol efficiency into a confidentiality failure. The exposed value is often a session token, cookie, or similar secret that can be replayed after recovery, so the impact is not just disclosure, it is account or session compromise.

Failure mechanism: The attacker influences part of the compressed message, then uses size differences across repeated requests to test whether their guess matches adjacent protected data.

Impact: Successful guessing can reveal authentication material that lets the attacker impersonate the victim, hijack sessions, or pivot into higher-value application access.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK addresses the attack and risk surface, while NIST SP 800-53 Rev 5, OWASP ASVS, CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
MITRE ATT&CKT1001 — Data ObfuscationCRIME abuses compression to transform plaintext into a side channel.
Recommendation — Detect compressed side-channel abuse and limit attacker influence over reflected data.
NIST SP 800-53 Rev 5SC-28 — Protection of Information at RestThe issue is secret exposure, so protection of sensitive information is central.
Recommendation — Protect secrets so they are not exposed through transport or message-processing side channels.
OWASP ASVSV12 — CryptographyThe attack exploits weaknesses in transport handling around encrypted traffic.
Recommendation — Review transport and encryption design to prevent side-channel leakage of protected values.
CIS Controls v8CIS-3 — Data ProtectionCompression-oracle leakage is a data exposure problem that needs strong handling of sensitive information.
Recommendation — Reduce exposure of sensitive data in transit and eliminate unnecessary leakage paths.
NIST CSF 2.0PR.DS-01 — Data-at-rest is protectedSensitive values exposed through traffic processing require protection across handling paths.
Recommendation — Protect sensitive data throughout its handling lifecycle, including transport processing.

Practitioner Guidance

What to verify: Confirm whether compression is enabled on any path that carries cookies, bearer tokens, CSRF tokens, or other reflected secrets. If the same response can be influenced by user input, test whether response size changes are observable and stable enough to support guessing.

Decision rule: If a secret and attacker-controlled text share a compressed context, treat the design as high risk unless you can prove the secret cannot be inferred from length changes. If you cannot prove that, remove the compression or redesign the message flow.

Practitioner takeaway: CRIME is a reminder that confidentiality can fail through side effects, not just broken cryptography, so the safest response is to eliminate the compression oracle rather than try to tune it away.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 18, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org