Chosen-ciphertext attack

A cryptanalytic model in which the attacker submits ciphertexts of their choice and learns their decryptions, or how decryption behaved, then uses those answers against a target.

In a chosen-ciphertext attack, the attacker can have ciphertexts of their choice decrypted, or can at least observe how decryption went, and uses the responses to recover a plaintext or a key. The system that answers is called an oracle, and it need not return plaintext: a server that replies differently to bad padding, or takes measurably longer on one kind of error, can leak enough. The ISC2 exam outline lists chosen ciphertext among the methods of cryptanalytic attack in objective 3.7.

Padding oracle attacks are the well-known cases. Daniel Bleichenbacher showed in 1998 that error behaviour in RSA decryption with PKCS #1 v1.5 padding could reveal a protected message, and Serge Vaudenay described a comparable attack on CBC padding in 2002. The defence is to take the oracle away: use authenticated encryption, which is designed to reject altered ciphertext before releasing any plaintext, use padding designed for this threat such as RSA-OAEP, and return uniform errors. The model is usually placed at the far end of the attacker-capability scale, beyond known plaintext and chosen plaintext, because the attacker interacts with decryption itself.

Exam relevance: a scenario in which an attacker learns from a system’s decryption errors is likely to describe a chosen-ciphertext attack. Candidates are expected to recognise authenticating ciphertext before decrypting it as the main defence.