Known-plaintext attack

A cryptanalytic attack in which the attacker holds some plaintext and its matching ciphertext, and uses those pairs to recover the key or decrypt other messages.

In a known-plaintext attack the attacker has samples of plaintext together with the ciphertext they produced, but did not choose them. Such pairs are easier to obtain than they sound: standard headers, predictable greetings, fixed file formats and messages later made public can all supply them. Allied codebreakers used predictable fragments of this kind, called cribs, against Enigma, and linear cryptanalysis of DES, published by Mitsuru Matsui in 1993, is a known-plaintext technique.

The ISC2 exam outline lists ciphertext only, known plaintext and chosen ciphertext among the attacks in Domain 3 objective 3.7. With chosen plaintext they form a ladder of attacker capability: ciphertext only gives the least, known plaintext adds matched pairs, a chosen-plaintext attack lets the attacker select what is encrypted, and a chosen-ciphertext attack lets the attacker obtain decryptions. Modern ciphers such as AES are designed to resist all four, so known-plaintext successes today tend to come from weak constructions, such as a stream cipher whose reused keystream falls out of known plaintext XORed with its ciphertext.

Exam relevance: questions in this area tend to describe what the attacker holds and ask which attack type applies. Candidates are expected to classify by access: matched pairs the attacker did not choose indicate known plaintext, while pairs the attacker selected indicate chosen plaintext.