Menu

1 / 3

Your PDF says AES-256. The key had 9 bits of entropy.

DEV Community: infosec·Sam LABBE·20 days ago
#8Drk0YRQ
#devtoinfosec#devto#dev#password#file
Reading 0:00
15s threshold

I just created a PDF with AES-256 encryption and a password, watched the reader refuse to open it without that password, and then decrypted it without any password in 0.63 seconds , secret contents fully recovered. The tool that did it is public since yesterday. The vulnerability is not in AES, and not in the password: it is in the key generation , where a "256-bit" key was derived from a timestamp-seeded pseudo-random generator with 9 bits of effective entropy . This is the story of V12's PDF decryptors , and below is the lab I ran end to end on my machine, which you can rerun in ten minutes.

What PDF encryption is supposed to do

PDF standard security, revision 6 (the AES-256 one, AESV3 ), has a sound design: the file is encrypted with a random 32-byte file key . Your password never encrypts the document directly; it wraps the file key ( /UE in the encryption dictionary).…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.