← Back to section · Security Risk & Assessment
Failure Is Information: Decapsulation Failure Oracles in Lattice-Based KEMs
Lattice-based key encapsulation carries a tiny, by-design probability of decapsulation failure; if success and failure can be observed by an attacker, every failure leaks a little private-key information. This article qualitatively maps how failure oracles form and the defensive principles such as implicit rejection.
Why Does a Tiny Probability Deserve Its Own Article?
Decapsulation in a lattice-based key encapsulation mechanism (such as ML-KEM) is not one hundred percent reliable: because of the noise inherent in lattice problems, there is an extremely small but non-zero probability that a legitimately generated ciphertext decapsulates to the wrong shared key. The failure rates given in the standards are as low as the order of 2^-139 — in random-use scenarios this number is far below hardware fault rates and can be ignored entirely.
But security analysis cannot look only at random scenarios. The cryptographic community cares about the failure rate because success versus failure is itself one bit of information. If an attacker can craft ciphertexts, submit them repeatedly, and observe each time whether decapsulation succeeded or failed, then every failure event answers a question about the private key. Reframing the failure rate from a “probability footnote” as an “information channel” is the starting point for understanding this class of risk. This article stays qualitative and covers no construction methods.
How a Failure Oracle Forms
Three conditions must hold simultaneously for a failure oracle to form. First, the attacker can have the target decapsulate attacker-chosen ciphertexts repeatedly under a fixed private key — exactly the standard chosen-ciphertext attack (CCA) model, naturally satisfied by long-lived online key-exchange services. Second, the failure probability under the attacker’s specially crafted ciphertexts is amplified significantly, no longer the negligible astronomical figure. Third, and most critically, failure is externally observable: a protocol error, a dropped connection, retry behaviour, a difference in response time — any distinguishable signal suffices.
Of the three conditions, implementation and protocol mainly control the third. This explains why, beyond an extremely low failure rate at the algorithm level, the standards add a further safeguard at the structural level.
Key reuse deserves separate mention as an amplifier: if one static key pair serves a large number of sessions (for example, a server using a fixed key for encapsulation over the long term), the attacker’s query count is nearly unlimited and samples can accumulate slowly; ephemeral or frequently rotated key pairs, by contrast, naturally compress the query window to something small. This is one reason modern protocols prefer ephemeral keys and strictly limit the use and lifetime of static keys — it serves forward secrecy and oracle defence at once.
Not a New Problem: From Padding Oracles to Failure Oracles
“Failure is information” has a long record in cryptographic engineering. The padding-oracle attacks of the classical era exploited exactly the server’s distinguishable reactions to format errors: the algorithm had no weakness, but the implementation announced “where it went wrong”, and the attacker asked the plaintext out byte by byte. The failure oracle is a variant of the same idea in the post-quantum setting — what is distinguished is no longer padding correctness but decapsulation success, and what is asked out bit by bit is no longer the plaintext but the private key. The value of this history is to remind implementers that oracles are never abstractions from algorithm papers; they are the sum of “engineering small things” — error handling, logging and timing. There is no reason for post-quantum implementations to pay tuition the classical era already paid.
The FO Transform and Implicit Rejection: Hiding Failure
Modern lattice-based KEMs are generally built with the Fujisaki–Okamoto (FO) transform: decapsulation first decrypts to a candidate message, then re-encrypts it and compares with the original ciphertext, accepting only on a match. This “re-encryption check” makes it extremely hard to craft special ciphertexts that trigger failures, closing half the door to chosen-ciphertext attacks.
The other half is closed by implicit rejection: when the check fails, decapsulation does not return an error; it returns a key derived jointly from the ciphertext and an independent secret, which looks completely random. The two parties end up with mismatched keys, and the handshake fails naturally at a later authentication step — but from the attacker’s viewpoint, a “decapsulation failure” is indistinguishable from an ordinary “key-mismatch failure”, and the signal a failure oracle works with is erased.
Two companion requirements apply at the implementation level: the failure path must be constant-time relative to the success path, never revealing the outcome through early return timing; and error handling must not leak “check failed” upward as a distinct error code — logging and alerting must likewise avoid recording distinguishable failure causes.
An Engineering Checklist
When introducing a lattice-based KEM into a system, four checks cover the implementation and integration:
- Grounded failure-rate parameters: the decapsulation failure rate of the chosen parameter set should come from the standard or authoritative analysis, and be low enough to make failure-amplification attacks unrealistic.
- Standard construction: prefer standardised KEM constructions (with the FO transform and implicit rejection built in); do not assemble your own from a merely CPA-secure underlying encryption primitive.
- Invisible failure: inspect the integration code’s error handling, timeout and retry logic, and confirm that decapsulation failure cannot be distinguished externally via error codes, timing or logs.
- Controlled key reuse: long-lived private-key services need a key rotation policy that bounds the total number of queries a single key can serve, compressing the sample size available to an oracle.
Summary
The decapsulation failure oracle is the most representative “algorithm–implementation boundary” risk of the post-quantum migration: a sufficiently low failure rate is only a necessary condition; invisible failure is the sufficient line of defence. The FO transform’s re-encryption check, implicit rejection’s signal erasure, constant-time failure handling and controlled key reuse jointly close this channel. When evaluating any lattice-based KEM implementation, all four belong on the acceptance checklist.
References
- NIST FIPS 203 (the ML-KEM standard), public explanations of decapsulation failure rates and implicit rejection.
- Fujisaki, Okamoto et al., public literature on the FO transform.
- Hövelmanns et al.: public survey research on decryption-failure attacks against lattice-based KEMs.
Tags: ML-KEMfailure oraclesFO transformimplicit rejection