What is a chosen-ciphertext attack?

A chosen-ciphertext attack lets an adversary obtain decryptions of messages they pick. Here is what the term means, where you meet it in post-quantum standards, and what it changes for your migration.

On this page

What is a chosen-ciphertext attack, and why does it matter for post-quantum key establishment?

A chosen-ciphertext attack is one in which the adversary can get ciphertexts of its own choosing decrypted by the target and then use the results to learn something about the secret key or the plaintext. If you are reading a scheme requirement or a vendor document that mentions chosen-ciphertext security, the goal it drives is a formal security notion, usually written as IND-CCA2, that standards for key encapsulation and encryption name explicitly. The term appears most often for engineers reading NIST FIPS 203, which specifies ML-KEM, the key-encapsulation mechanism for establishing a shared secret key over a public channel, and for security reviewers working through vendor questionnaires that ask whether an implementation resists these attacks. It also shows up in documentation for key establishment in TLS, in certificate profiles, and in cryptographic library guides, where a product's claim of CCA security is what a reviewer needs to verify.

The reason the term matters for post-quantum key establishment is that a key encapsulation mechanism is exposed to exactly this kind of query. In a protocol, an attacker can sit on the network, capture or modify ciphertexts, and observe whether the receiving side accepts or rejects them, or how it behaves afterwards. An implementation that leaks any of that behavior through error messages, timing, or different handling of malformed input can allow the attacker to recover a session key over many attempts. FIPS 203 is written to resist this class of attack, but resistance depends on the implementation as well as the specification, so the practical question for a reviewer is whether the library and its integration in TLS or other protocols return uniform outcomes for invalid ciphertexts and avoid side-channel leakage during decapsulation.

For an engineer or security lead, the action is to confirm three things before accepting a claim of chosen-ciphertext security. First, identify the exact standard and parameter set the product uses, such as ML-KEM-768, and confirm it matches FIPS 203. Second, ask the vendor for its test evidence and how decapsulation failures are handled in the code path used by your protocol. Third, check how the implementation is integrated with TLS and any hybrid mode, because the RFC documents for these protocols define how the key establishment result is used. Where the sources listed on this page do not say how a given vendor implements these safeguards, treat that as an open question to put to the vendor rather than an assumed property.

Which names and identifiers you will see for ML-KEM and related schemes

This table lists the names you will meet when reading about chosen-ciphertext attacks and the ML-KEM key-encapsulation scheme. Use it to tell apart the attack, the security goal that guards against it, the standard that specifies the scheme, and the guidance documents around it. The parameter sets are named in FIPS 203.

Name or identifierWhat it refers toWhere you will see it
Chosen-ciphertext attackAn attack in which the adversary can get chosen ciphertexts decrypted and uses the answers to learn about the secret key or plaintextScheme requirements and security analyses of key-encapsulation and encryption schemes
IND-CCA2The security goal commonly required of key-encapsulation and encryption schemes, meaning security against chosen-ciphertext attacks (see the sibling page on IND-CCA2 security)Standards and papers that state the required security property of a scheme
FIPS 203The NIST standard that specifies ML-KEM, a key-encapsulation mechanism for establishing a shared secret key over a public channel, final on 13 August 2024NIST FIPS 203 page
ML-KEM-512One of the three ML-KEM parameter sets defined in FIPS 203Configuration settings and specifications that name a parameter set
ML-KEM-768One of the three ML-KEM parameter sets defined in FIPS 203Configuration settings and specifications that name a parameter set
ML-KEM-1024One of the three ML-KEM parameter sets defined in FIPS 203Configuration settings and specifications that name a parameter set
SP 800-227NIST recommendations for key-encapsulation mechanisms, final on 18 September 2025, after an initial public draft dated 7 January 2025NIST SP 800-227 page
FIPS 204The NIST standard that specifies ML-DSA for digital signatures, final on 13 August 2024, which is a separate scheme from ML-KEMDocuments that cover signatures rather than key establishment

Where chosen-ciphertext security shows up in practice

Chosen-ciphertext security is a property that standards, protocol documents and procurement reviews ask schemes to meet. The cards below name the places a practitioner is most likely to meet the term and what each one asks you to confirm.

FIPS 203 requirements for ML-KEM

FIPS 203 specifies ML-KEM, the key-encapsulation mechanism NIST published as a final standard on 13 August 2024, with parameter sets ML-KEM-512, ML-KEM-768 and ML-KEM-1024. The standard is where the security goal for ML-KEM is stated and where you confirm which parameter set your implementation uses. When a vendor says its module implements ML-KEM, check the parameter set and whether the implementation follows the standard's requirements, not just the algorithm name.

FIPS 203 page

NIST SP 800-227 recommendations for KEMs

SP 800-227 gives recommendations for key-encapsulation mechanisms, published as a final document on 18 September 2025 after an initial public draft dated 7 January 2025. It is the guidance to read when deciding how a KEM should be used in a system, including how its security properties are relied on. Use it as a reference when reviewing a vendor's KEM usage, and confirm with the document itself which recommendations apply to your deployment.

SP 800-227 page

Hybrid key exchange terminology in RFC 9794

RFC 9794 is an Informational RFC dated June 2025 that defines terminology for post-quantum traditional hybrid schemes. It defines a PQ/T hybrid key encapsulation mechanism as a multi-algorithm KEM with at least one post-quantum component and at least one traditional component. Use it to read hybrid designs precisely, since a hybrid claim depends on which components are combined and how they are used together.

RFC 9794 text

TLS 1.3 key establishment in RFC 8446

RFC 8446 defines TLS 1.3, an Internet Standards Track document dated August 2018 that obsoletes RFC 5077, RFC 5246 and RFC 6961. It is the protocol context where key establishment happens, so it is where a KEM or hybrid key exchange is negotiated in practice. When reviewing a TLS deployment, check which key exchange groups are offered and confirm with the vendor's documentation which versions and groups it supports.

RFC 8446 text

X.509 identifiers for ML-KEM in RFC 9935

RFC 9935, dated March 2026 and on the IETF Standards Track, gives X.509 algorithm identifiers for ML-KEM. Identifiers are how certificates and related structures name the algorithm they carry, so a practitioner checking certificate or PKI support should confirm that the tooling recognizes these identifiers. Check the RFC and your own PKI tooling rather than assuming support from the algorithm name alone.

RFC 9935 page

Vendor security questionnaires and tender requests

Security questionnaires and tender requests often ask whether a product's key encapsulation relies on schemes that resist chosen-ciphertext attacks, and which standards it follows. Treat a yes as a claim to verify, asking which standard the implementation follows, which parameter set it uses, and what evidence supports the answer. Do not accept a product described as certified or validated unless the vendor names the module, version and issuer of that evidence.

How a chosen-ciphertext attack appears in a running system

A chosen-ciphertext attack shows up in a running system as a pattern of decryption requests that no legitimate client would send. The attacker builds ciphertexts on purpose, submits them to a service that holds the private key, and watches what comes back. The signal may be a success or failure response, an error message, a timing difference or a change in connection behavior. Any service that decrypts input from outside and tells the sender the outcome can serve as this kind of decryption oracle, whether the component is an API gateway, a key exchange endpoint, a messaging backend or a database field that is decrypted on read. For operators, the first place to look is where a private key is used to decrypt attacker-supplied data, and what that service reveals about each attempt.

The exposure comes from the feedback loop, not from any single request. If an outside party can learn whether a constructed ciphertext decrypted correctly, they can gradually learn information about the protected value or about the key itself over many attempts. Systems most at risk are those that return distinct errors for malformed input, log failures in ways visible to the sender, or handle invalid ciphertexts on a different code path from valid ones. Rate limiting and generic error responses reduce the signal but do not replace a scheme that resists the attack. This is why standards require key encapsulation and encryption schemes to meet IND-CCA2 security, the goal that the adversary gains no advantage even with decryption access for other ciphertexts. Confirm against FIPS 203 (ML-KEM) and your own TLS or application configuration which schemes your deployment uses.

Where a decapsulation oracle sits in a key establishment exchange

This illustrative flow starts with a client that runs encapsulation against the server's public key and sends the resulting ciphertext across the network. The server holds the private key and runs decapsulation on the received ciphertext to recover the shared secret. An external party with network access can submit ciphertexts of its own choosing to the same server and observe whether and how the server responds. That observable response channel is the oracle. When reviewing a key establishment deployment, check whether the server reveals any difference in behavior, errors or timing for malformed or altered ciphertexts, and whether the protocol or implementation limits what an outside party can learn from those responses. Consult the scheme's specification and the protocol documentation for the exact handling rules.

Illustrative flow showing where an external party can probe the server's decapsulation.

Standardization status of schemes that must resist these attacks

Schemes that must resist chosen-ciphertext attacks are now described in published NIST standards. FIPS 203, which specifies the key-encapsulation mechanism ML-KEM, and FIPS 204, which specifies the digital signature algorithms ML-DSA, were both published as final standards on 13 August 2024. ML-KEM is the scheme that carries the IND-CCA2 security goal in most guidance, so its FIPS 203 text is the first document to check when a product claims to resist these attacks. The ML-KEM parameter sets are ML-KEM-512, ML-KEM-768 and ML-KEM-1024, and a reviewer should confirm which set a product implements, since the sources listed here do not say how each set compares for any given deployment.

NIST SP 800-227, Recommendations for Key-Encapsulation Mechanisms, was finalized on 18 September 2025, after an initial public draft dated 7 January 2025. This document is the NIST guidance on how KEMs should be used, so teams reviewing a KEM-based design should read it alongside FIPS 203. On the IETF side, RFC 9935 gives X.509 algorithm identifiers for ML-KEM, dated March 2026 on the Standards Track, and RFC 9881 gives X.509 identifiers for ML-DSA, dated October 2025 on the Standards Track. Certificate and PKI teams will need these identifiers when they issue or validate certificates carrying the schemes. RFC 9794, which defines terminology for PQ/T hybrid schemes, is an Informational document and does not set a requirement on its own.

These are publication dates, not compliance results. Publication of FIPS 203 or FIPS 204 does not mean a product is validated, certified or compliant, and the sources listed here do not show that any particular implementation has been tested against them. Before relying on a vendor's claim of resistance to chosen-ciphertext attacks, ask which standard version and parameter set the product implements, whether the implementation has undergone independent validation, and which RFC identifiers its certificates use. Confirm these against the vendor's documentation and the standards themselves at the links above.

What to do with chosen-ciphertext requirements during a migration

This sequence shows how to find every place your systems depend on key encapsulation or encryption, confirm which ML-KEM parameter sets each one uses, and collect vendor and test evidence that the decryption behavior meets the security goal for these schemes. It produces a record you can hand to auditors and a clear list of gaps to close. It does not by itself establish that any product is secure.

  1. Inventory key encapsulation and encryption uses

    Start by listing every system, service and library that performs key encapsulation or public key encryption, including TLS endpoints, VPN gateways, messaging components, file encryption tools and internal APIs. Record the owner, the component name and version, and where it runs. The step is done when the list covers each place a shared secret or encrypted message is produced or decrypted, and each entry has an owner. Teams usually find more of these than they expected, so check with application and platform owners as well as the security team.

  2. Identify the parameter set each system uses

    For each entry, determine which algorithm and parameter set it implements. FIPS 203 defines ML-KEM with three parameter sets, ML-KEM-512, ML-KEM-768 and ML-KEM-1024, so record which one is configured, or whether the system still uses a traditional key exchange or a hybrid. Check the configuration files, the vendor's release notes and the library's reported algorithm identifiers rather than relying on memory. The step is complete when every entry names a specific parameter set or states that none is in use yet.

  3. Ask vendors which standard they follow

    Send each vendor in scope a written question asking which standard their implementation follows, which version it ships, and whether an independent assessment has been performed, naming the assessor and the date. Ask how their decapsulation and decryption paths handle invalid inputs. Keep the answers in the vendor file. The step is done when every vendor has answered in writing or the gap is logged as open. A vendor saying it supports a standard is not the same as an independent assessment confirming it, so record the two separately.

  4. Test that decapsulation errors stay hidden

    In a test environment, send malformed and modified ciphertexts to each decapsulation or decryption endpoint from an untrusted position, and confirm that the response does not reveal whether the failure came from the ciphertext, the key or the padding. Compare the response timing and error messages across these cases. The step is complete when the test log shows that every failure returns the same generic result, and any system that leaks distinguishable errors is recorded as a finding with an owner. Run the tests against the version and parameter set recorded in the earlier steps.

  5. Record evidence for auditors

    Gather the inventory, parameter-set records, vendor answers, assessment letters if any, and test logs into a single evidence pack, with a date and the name of the person who collected each item. Mark any item that could not be obtained and state why. Store the pack where the audit team can retrieve it and keep it current as versions change. The step is done when an auditor could trace each claim about a system back to a dated source. This record shows what was checked and when, and does not certify compliance on its own.

Questions people ask about chosen-ciphertext attacks

What does chosen-ciphertext attack mean?

A chosen-ciphertext attack is one in which the adversary can submit ciphertexts of its own choosing to a decryption oracle, which is a system that decrypts them, and then uses the results to learn something about the secret key or about other messages. The attacker does not need to know the key. It only needs a device, service or protocol endpoint that will decrypt input it can control, and that reveals enough about the outcome, such as an error message, a timing difference or a success or failure response, to be useful. In practice this is why key encapsulation and encryption schemes are designed to reject malformed or modified ciphertexts rather than decrypt them to whatever output they produce. Readers of scheme specifications will see the term used as the threat model that a scheme must withstand. The exact requirements, including what the decryption oracle is allowed to return and how invalid inputs must be handled, are set out in the specifications themselves, and the relevant ones for post-quantum key encapsulation are FIPS 203 and SP 800-227. Check those documents for the precise definitions rather than relying on a summary.

Is a chosen-ciphertext attack the same as IND-CCA2?

No. A chosen-ciphertext attack describes the kind of attack an adversary carries out, while IND-CCA2 is a security goal that a scheme is designed to meet against that kind of attacker. IND-CCA2 stands for indistinguishability under adaptive chosen-ciphertext attack, and it is the property a scheme is judged against when the adversary can query a decryption oracle before and after receiving a challenge ciphertext. A scheme that meets IND-CCA2 is designed to resist chosen-ciphertext attacks of this type. The two terms are related but not interchangeable, so a reader should not treat the attack name and the security goal as the same statement. The sibling page on IND-CCA2 security explains the goal in more depth. For the requirements a specific scheme must satisfy, consult the scheme's standard, and do not assume that a product meets IND-CCA2 unless the standard or the vendor documentation says so for the version in use.

Is chosen-ciphertext attack resistance standardized?

Resistance to chosen-ciphertext attacks is required by the standards that define post-quantum key encapsulation and signature mechanisms. NIST published FIPS 203 on 13 August 2024, which specifies ML-KEM as a key-encapsulation mechanism for establishing a shared secret over a public channel, with parameter sets ML-KEM-512, ML-KEM-768 and ML-KEM-1024. NIST also published SP 800-227, Recommendations for Key-Encapsulation Mechanisms, as a final document on 18 September 2025, after an initial public draft dated 7 January 2025. Both documents bear on how a KEM must handle untrusted ciphertexts. The exact requirements, including the security properties each parameter set must meet and the guidance on implementation, are set out in those publications, and they are the place to confirm what a given implementation must do. A reader who needs a formal answer should use the standard text and not a paraphrase.

Do my products use chosen-ciphertext attack resistant schemes?

The sources listed for this glossary page do not say which products use which schemes, so the only way to answer for a specific product is to ask the vendor or check its documentation for the exact version you run. Confirm three things. First, which post-quantum mechanisms the product negotiates, such as ML-KEM in a hybrid group, and which parameter set it uses. Second, whether the implementation follows the relevant standard, and which version. Third, whether the product uses a PQ/T hybrid key encapsulation mechanism, which RFC 9794 defines as a multi-algorithm KEM combining at least one post-quantum component with at least one traditional component. Ask for the specific version, configuration and library in writing. Do not infer resistance from a product's marketing, from a standard's name alone, or from a claim that a feature is quantum safe, because that term is not a statement of compliance.

What changes for a post-quantum migration because of chosen-ciphertext attacks?

For a migration, the practical effect is that the components which decrypt or decapsulate untrusted input need to be checked, not only the algorithm names in a configuration file. A scheme that resists chosen-ciphertext attacks depends on the implementation handling malformed input correctly, so a migration plan should inventory every endpoint that decapsulates or decrypts attacker-controlled data, including TLS terminators, VPN gateways, API services and internal key exchanges. Verify that each upgraded component follows the relevant standard for its version and that error handling does not reveal decryption outcomes to a remote party. The TLS 1.3 protocol, defined in RFC 8446, is an Internet Standards Track document dated August 2018 and is the base many hybrid deployments build on, and RFC 9935 and RFC 9881 give X.509 identifiers for ML-KEM and ML-DSA on the IETF Standards Track, dated March 2026 and October 2025 respectively. Plan for testing and for retesting after each upgrade, and record the version of each component so that later reviews can match it to its standard.

What should I ask a vendor about chosen-ciphertext attack resistance?

Ask the vendor to state, in writing, the exact product, version and edition, and the post-quantum mechanisms it negotiates, including the KEM and parameter set. Ask which standard the implementation follows, such as FIPS 203 for ML-KEM or SP 800-227 for KEM recommendations, and which version of that standard it targets. Ask whether the product is a PQ/T hybrid, and if so which traditional and post-quantum components it combines, using the terminology in RFC 9794. Ask how the implementation handles malformed or modified ciphertexts, what error responses a remote party can see, and whether decryption outcomes can be distinguished from outside. Ask for independent test results or third-party assessments, and for the date they were performed, and do not accept a certificate or listing as a finding about the product unless it names the module, version and issuer. Ask what is covered by support and upgrades. Quotes should separate one-time integration effort from recurring costs such as support and retesting.

Can DeployOpen help check chosen-ciphertext attack handling in my environment?

DeployOpen plans, implements, hardens and tests self-hosted open-source platforms inside the client's own infrastructure, and it runs security testing for applications, APIs and infrastructure. For post-quantum work, that can include inventorying where key encapsulation and decryption happen in a self-hosted stack, configuring the components that terminate those operations, and testing how they respond to malformed input. DeployOpen does not issue audit reports, attestations or certifications, and it does not decide whether a given scheme meets a standard. Those judgments belong to the standard itself and to independent auditors. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, and a quote follows from that scope. Ask for the written scope to name the exact components and standards that will be checked.

How DeployOpen works on this

DeployOpen works with teams that need to confirm how their key establishment resists chosen-ciphertext attacks before and after a post-quantum migration. We scope the work in writing, build and test the self-hosted components inside your infrastructure, and hand over documentation your security and compliance teams can review.

How we scope

  • We agree a written scope listing which key establishment endpoints, libraries and protocol configurations are in the engagement.
  • We confirm which ML-KEM parameter set and which KEM interfaces your systems use, based on your own configuration.
  • We identify which components must meet an IND-CCA2 security goal and which of them your vendors document as meeting it.

How we build

  • We deploy and configure self-hosted platforms inside your own cloud accounts, data centers or air-gapped networks.
  • We test how decapsulation and error handling behave when an attacker submits crafted ciphertexts to your endpoints.
  • We apply hardening changes and document each setting so your engineers can trace it back to the standard it implements.

How we hand over

  • We deliver a configuration record listing versions, parameter sets and the protocol mode each system runs.
  • We provide a test report showing what was tried, what failed, the fixes applied and the retest results.
  • We walk your engineers through the runbook so they can repeat the checks after each upgrade.

How we support

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before any work starts.
  • Ongoing upgrades and continuous testing are available as a retainer if your environment changes frequently.
  • Your compliance and security teams can use our documentation as evidence, while independent auditors issue any formal assessment.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.