BREACH
An attack that exploits compression to infer secrets from response sizes.
Overview
BREACH exploits HTTP compression: when a response contains both a secret and attacker-controlled input, differences in compressed size can reveal the secret byte by byte. It needs TLS or HTTP-level compression and a way to observe response sizes.
Mitigations include disabling TLS compression, avoiding responses that reflect secrets and user input together, adding random padding, separating sensitive endpoints and using CSRF tokens that are not reflected as secrets. BREACH is a risk model, not a single header.
Where you see it
Compressing responses that mix attacker-controlled input with secrets can enable BREACH-style attacks.
Compression Checker
Examples
Example values show how this term appears in practice; run a live check for current values.
| Case | Values | Note |
|---|---|---|
| Condition | compression + secret + attacker input | Value captured at review time. |
| Signal | response size differences | Value captured at review time. |
| Mitigation | disable TLS compression | Value captured at review time. |
How to use it
- Open Cipher Suite Checker and run it against a real target such as example.com.
- Compare the raw answer with the definition and the example above; do not rely on the summary alone.
- If the answer differs, use the troubleshooting checks below and confirm with a second source before changing anything.
What to watch for
- Compression can leak secrets through size differences; do not combine BREACH with reflected user input or secrets in one response.
- BREACH can be cached for its TTL, so a change may look missing until caches expire; compare the record's TTL with the age of the answer.
- A single check shows one target from one environment; confirm BREACH with a second tool, device or source before you change anything.
Why it matters
Certificates, chains, expiry, HSTS and certificate transparency.
2 tools use this term
SSL / TLSWhere to check it
Use Cipher Suite Checker, Compression Checker to inspect it directly. Each tool shows the raw result and its limitations.
SSL / TLSCommon problems and fixes
Two checks disagree: compare timestamps, TTLs, resolver location and client configuration before choosing one.
Tool limitation: read the raw output and confirm with a second tool or vantage point.
Used in these tools
2 toolsStandards and references
Frequently asked questions
What is BREACH?+
An attack that exploits compression to infer secrets from response sizes.
How do I check BREACH?+
Use Cipher Suite Checker, Compression Checker to inspect it directly. Each tool shows the raw result and its limitations.
Why does BREACH matter?+
It affects how SSL / TLS results are read. Certificates, chains, expiry, HSTS and certificate transparency.
What is a common mistake?+
Caching without Vary. A shared cache can serve the wrong language or encoding for BREACH.
How this page is written
Definitions are compiled from the 244 tool pages, checked against the standards below, and reviewed by Steve. Each term links to the tools where it is used.


