Skip to content
Finding the Weak Crypto Needle in a Byte Haystack episode artwork

EPISODE · Dec 28, 2014

Finding the Weak Crypto Needle in a Byte Haystack

from 31C3 Talks - audio mp3 · host Ben H.

When operating a stream cipher, reusing a keystream introduces a critical weakness to the resulting ciphertext: the encryption becomes vulnerable to easy (and sometimes /very/ easy) cryptographic attacks. This is due to the encryption's linear nature - for instance, XORing a plaintext with the corresponding ciphertext yields keystream bytes. While key reuse is a widely known issue, it's an issue that keeps arising in practice. The soviets did it during WWII, Microsoft did it in the implementation of Word 2003 document encryption, and malware authors did it when designing variants of Zeus, DirCrypt and Ramnit. To exploit a vulnerability, you must first realize it's there. Unfortunately, many instances of homebrew crypto operate on the "security by obscurity" principle, and don't reveal their implementation details. As a result, detecting key reuse often requires trial and error, an accidental epiphany or a night spent reverse engineering - and in all these cases, luck and human effort. In this presentation we show an approach to automating this task - based on the linear properties of stream ciphers, redundancy in the text and Bayesian reasoning. Finally, we demonstrate the algorithm's operation in several real-world use cases. Math Ph.D. not required.

Episode metadata supplied by the publisher feed · Published Dec 28, 2014

Embed this episode

Ready to play

Finding the Weak Crypto Needle in a Byte Haystack

0:00 0:00

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

When was this 31C3 Talks - audio mp3 episode published?

This episode was published on December 28, 2014.

Can I download this 31C3 Talks - audio mp3 episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!