Fluhrer-Mantin-Shamir: RC4 key scheduling leaks key bytes
Scott Fluhrer, Itsik Mantin and Adi Shamir (SAC 2001) showed that RC4's key scheduling algorithm leaves large classes of weak keys and that, when a known value such as an IV is concatenated with a secret key, the first keystream bytes leak information about the secret. With enough related keys the full secret key can be recovered.
Broken math. This entry concerns mathematics, algorithm design or parameter justification. Its stated scope distinguishes an attack from a defect in a security argument; a proof or accounting error alone does not establish practical key recovery.
Background
RC4, designed by Ron Rivest in 1987, was an RSA trade secret until its source leaked anonymously to the Cypherpunks mailing list in 1994. Its simplicity and speed made it the default stream cipher in SSL/TLS, WEP, WPA-TKIP, Microsoft Office, PDF, Kerberos and more. Earlier in 2001 Mantin and Shamir had already shown the second keystream byte is heavily biased toward zero.
The FMS weaknesses are properties of RC4 itself (every correct implementation has them), which is why this is classed as math. Practical exploitation, however, needs the attacker to see output from many keys that share a secret part and differ in a known part. WEP did exactly that, so FMS became the basis of real-world WEP cracking within weeks. Protocols that hashed the key per session (as TLS did) were not directly exposed to FMS, although other RC4 biases caught up with them later.
Sources
- paperWeaknesses in the Key Scheduling Algorithm of RC4 (SAC 2001)Springer, link.springer.com
- wikiRC4Wikipedia, en.wikipedia.org