Quantum Cryptography


Ok, I know, I know. I owe you guys a proper update after being “absent” from blogging for quite some time. So, here is my take on the recently released Princeton Memory Vulnerability that seems to be gathering so much attention with the press and creating a sort of panic in the encryption community.

I have been watching the Princeton Cold Boot Memory Attack issue for the past 2 weeks. Over at the FDE mailing list, people from the encryption community even called it “scary”.

For those who want to read the paper for themselves, you can find it here. For those who aren’t patient enough, here is a brief overview of the paper.

We all know, of course, that the DRAM loses its contents when the power is of. However, the question as of how long it would take for the DRAM to “forget” was never much paid attention to. This is probably because (and I quote) “[m]ost experts assume that a computer’s memory is erased almost immediately when it loses power, or that
whatever data remains is difficult to retrieve without specialized equipment.” And the Princeton paper released earlier this month showed that these assumption are incorrect.

Although DRAMs become less reliable when they are not refreshed, they are not immediately erased, and their contents persist sufficiently for malicious (or forensic) acquisition of usable full-system memory images. We show that this phenomenon limits the ability of an operating system to protect cryptographic key material from an attacker with physical access. We use cold reboots to mount successful attacks on popular disk encryption systems using no special devices or materials. We experimentally characterize the extent and predictability of memory remanence and report that remanence times can be increased dramatically with simple techniques. We offer new algorithms for finding cryptographic keys in memory images and for correcting errors caused by bit decay.

Moreover, the paper presented a “suite of attacks that exploit DRAM remanence effects to recover cryptographic keys held in memory.” They showed these vulnerability by defeating file encryptions systems like Microsoft’s BitLocker(Windows Vista), Apple’s FileVault (Mac OS X) and TrueCrypt (open-source disk encryption product for Windows, Mac OS, and Linux platforms).

…[C]onfirmed that decay rates vary dramatically with temperature… obtained surface temperatures of approximately -50 *C with a simple cooling technique: discharging inverted cans of “canned air” duster spray directly onto the chips. At these temperatures, …fewer than 1% of bits decayed even after 10 minutes without power. To test the limits of this effect, …DRAM modules [submerged] in liquid nitrogen (ca. -196 *C)…[has] only 0.17% [decay] after 60 minutes out of the computer.

It seems that the semicon physics community has long been aware of the remanence effect in DRAM, in a 1978 experiment it was even found that there can be no data loss for a full week without refresh when cooled with liquid nitrogen.

More recently, the same team demonstrated an attack native to OS X. They showed the ease of breaking Keychain and accessing the contents of a a Macintosh computer using only iPod and network booting. (more…)

From Quantum Cryptography:

The idea of QC was first proposed only in the 1970’s by Wiesner (1983) and by Charles H. Bennett from IBMand Gilles Brassard fromMontr´eal University (1984, 1985). However, this idea is so simple that actually every first year student since the infancy of quantum mechanics could have discovered it! Nevertheless, it is only nowadays that the matter is mature and information security important enough, and – interestingly – only nowadays that physicists are ready to consider quantum mechanics, not only as a strange theory good for paradoxes, but also as a tool for new engineering. Apparently, information theory, classical cryptography, quantum physics and quantum optics had first to develop into mature sciences. It is certainly not a coincidence that QC and, more generally, quantum information has been developed by a community including many computer scientists and more mathematics oriented young physicists. A broader interest than traditional physics was needed.

I have been researching on this subject for 3 semesters now. Cryptography and quantum mechanics have always amazed me. The idea that a set of negative rules stating things that cannot be done can one day become a standard for secure communication have always intrigued me. Currently, this is used mainly to transfer keys to create a strong encryption. While the quantum machine continues to exist only in the physicists’ minds, QC proves that it may, one day, be possible. And when that day comes, the public key infrastracture will stumble, taking one-time pads even further.