February 21, 2008 8:37 AM PST

Disk encryption may not be secure enough, new research finds




Computer scientists have discovered a novel way to bypass the encryption used in programs like Microsoft's BitLocker and Apple's FileVault and then view the contents of supposedly secure files.

In a paper (PDF) published Thursday that could prompt a rethinking of how to protect sensitive data, the researchers describe how they can extract the contents of a computer's memory and discover the secret encryption key used to scramble files. (I tested these claims by giving them a MacBook with FileVault; here's a slideshow.)

"There seems to be no easy remedy for these vulnerabilities," the researchers say. "Simple software changes are likely to be ineffective; hardware changes are possible but will require time and expense; and today's Trusted Computing technologies appear to be of little help because they cannot protect keys that are already in memory. The risk seems highest for laptops, which are often taken out in public in states that are vulnerable to our attacks. These risks imply that disk encryption on laptops may do less good than widely believed."

The nine researchers listed on the paper include San Francisco-area programmers Jacob Appelbaum and Seth Schoen and a team of Princeton University computer scientists such as graduate students J. Alex Halderman and Nadia Heninger and professor Ed Felten. The paper is titled "Lest We Remember: Cold Boot Attacks on Encryption Keys."

Click for gallery

Their technique doesn't attack the encryption directly. Rather, it relies on gaining access to the contents of a computer's RAM--through a mechanism as simple as booting a laptop over a network or from a USB drive--and then scanning for encryption keys. How the scan is done is one of the most clever portions of the paper.

The reason I say this research could prompt a rethinking of how to protect data is that many of us who use encrypted file-systems believe that if our computers are lost or stolen, our data will be secure. But if a thief (or nosy border guard, or FBI agent) nabs my laptop locked with a screen saver or in sleep mode with the RAM intact, the paper shows that encryption provides no protection.

"You can't rely on the screen saver," said Peter Gutmann, a computer science professor at the University of Auckland in New Zealand who has done related work but is not affiliated with Thursday's paper. "If you really are that worried, you have to turn off your PC."

The researchers say their technique works against Apple's FileVault, the BitLocker Drive Encryption feature included in the Enterprise and Ultimate versions of Windows Vista, the open-source product TrueCrypt, and the dm-crypt subsystem built into Linux kernels starting with 2.6. The other researchers include William Clarkson, William Paul, and Ariel J. Feldman.

In its marketing literature, Apple promises that, with FileVault turned on, "the data in your home folder is encoded and your information is secure if your computer is lost or stolen." When I contacted the company for comment, Apple would say only this: "Apple takes security very seriously and has a great track record of addressing potential vulnerabilities before they can affect users. We always welcome feedback on how to improve security on the Mac."

Microsoft was more forthcoming, saying:

The claims detailed in the Princeton paper are not vulnerabilities, per se, but simply detail the fact that contents that remain in a computer's memory can be accessed by a determined third party if the system is running. BitLocker is an effective solution to help safe guard personal and private data on mobile PCs and provides a number of protection options that meet different end-user needs. Like all full volume encryption products BitLocker has a key-in memory when the system is running in order to encrypt/decrypt data, on the fly, for the drive/s in use. If a system is in 'Sleep mode' it is, in effect, still running. We recognize users want advice with regards to BitLocker and have published best practice guidance in the Data Encryption Toolkit (available here). In it we discuss the balance of security and usability and detail that the most secure method to use BitLocker is hibernate mode and with multi-factor authentication.

At this point, clever readers might be thinking: If the attack involves executing a specific memory-dump utility while rebooting, then Apple, HP, Toshiba, and so on can simply lock down the hardware to prevent any such utility from being run until the RAM can be safely wiped. Problem solved?

Well, not so fast. Another interesting technique that Thursday's paper describes is how to supercool the RAM chips with a can of compressed air held upside-down. Then the cooled memory can be physically extracted and inserted in another computer owned by the attacker. (If the memory is permanently affixed to the motherboard, there are still other methods [PDF] that can be used.)

The paper states:

Contrary to the expectation that DRAM loses its state quickly if it is not regularly refreshed, we found that most DRAM modules retained much of their state without refresh, and even without power, for periods lasting thousands of refresh intervals. At normal operating temperatures, we generally saw a low rate of bit corruption for several seconds, followed by a period of rapid decay. We obtained surface temperatures of approximately −50 degrees C with a simple cooling technique: discharging inverted cans of "canned air" duster spray directly onto the chips. At these temperatures, we typically found that fewer than 1% of bits decayed even after 10 minutes without power. To test the limits of this effect, we submerged DRAM modules in liquid nitrogen (ca. −196 degrees C) and saw decay of only 0.17% after 60 minutes out of the computer.

Gutmann, the New Zealand computer scientist, previewed this kind of attack in a 1996 paper that said: "To extend the life of stored bits with the power removed, the temperature should be dropped below -60 degrees C. Such cooling should lead to weeks, instead of hours or days, of data retention."

But in reality, such extreme methods probably won't be necessary. If thieves, FBI agents, or border guards have physical access to a computer that's turned on, they have other options. In 2004, Maximillian Dornseif showed how to extract the contents of a computer's memory merely by plugging in an iPod to the Firewire port. A subsequent presentation by "Metlstorm" in 2006 expanded the Firewire attack to Windows-based systems.

Translation: If you use an encrypted file-system and want privacy and security when you're not using your computer, you need to shut down your computer and wait a few minutes for the RAM contents to vanish. Another option for sensitive files is to use an encrypted volume like a PGP disk and unmount it as soon as you're done.

That assumes PGP erases the encryption keys from memory once the volume is unmounted, which the company swears it does. "We go well beyond that," said John Dasher, PGP Corporation's director of product management, adding that PGP products take "very elaborate measures to make sure that things are properly and completely disposed of."

He downplayed the potential threat to users of PGP, which provides both whole disk encryption and volume encryption and the researchers speculate will be vulnerable as well. "We never say buy whole disk and you're done," Dasher said. "You want to protect the device. You want to protect the data itself. And of course you're not going to get rid of your network protection. Security's not about buying whole disk encryption (and calling it a day)."

In response to the overall claim about the vulnerability of encrypted file-systems, Dasher said, "Even if it's true, I don't know if it changes my behavior."

It's been known for a long time--at least since Gutmann's 1996 paper--that encryption keys are vulnerable when stored in memory. And additional research (PDF) by Adi Shamir and Nicko van Someren two years later talks about identifying encryption keys by scanning hard drives.

By demonstrating the limits of off-the-shelf encryption products, what the research published on Thursday may do is shift the debate from academic arguments to how to protect users in real-world situations. It also advances previous research by calculating how long dynamic RAM chips hold their contents at different temperatures (little decay until a few seconds elapse) and offering algorithms to reconstruct encryption keys even when the contents of memory have begun to decay.

The reconstruction technique works by taking into account what's known as a "key schedule" for algorithms such as DES and AES, the U.S. government's Advanced Encryption Standard. A key schedule is used in certain kinds of ciphers that do multiple rounds of encryption. The computer scientists said that it takes them "a few seconds" to reconstruct AES keys with 10 percent of the bits decayed; the more decay, the longer it takes.

So what are the countermeasures? As I noted above, shutting down the system, zeroing memory on boot, and unmounting encrypted volumes are some options. The paper suggests others, including limiting booting from network or removable drives, better methods of putting a computer to sleep (perhaps involving encrypting the portions of memory with the keys to the file system), recomputing keys when they're needed to avoid keeping copies in memory, and hardware changes such as tamperproof or encrypting RAM.

There is one irony here. One Princeton Ph.D. student, Joseph Calandrino, is listed as having "performed this research while under appointment to the Department of Homeland Security." Because this research lets them bypass file-system encryption in some cases, police agencies are the most obvious and immediate beneficiaries of this research.

As early as 1984, the FBI Laboratory began developing computer forensics hardware. And we know from the Scarfo, Forrester-Alba, and Boucher cases how intent federal police agencies are in trying to find ways to circumvent the privacy that encryption provides. If the feds didn't know about these techniques already--remember, they were years ahead of everyone else in inventing public key cryptography--today will be a very good day for Homeland Security.

Update 12:30pm: I've been asked whether encrypted swap was turned on in our test to see if they could bypass FileVault. It was. But it actually doesn't matter; remember, they're analyzing the contents of RAM, not the contents of the hard drive.

Recent posts from The Iconoclast
FBI's Net surveillance proposal raises privacy, legal concerns
Transcript: FBI director on surveillance of 'illegal' Internet activity
FBI, politicos renew push for ISP data retention laws
Shamos: Why e-voting paper trails are a bad idea
FBI nudges state 'fusion centers' into the shadows
Add a Comment (Log in or register) 31 comments (Page 1 of 2)
So after all that yada yada nonsense
by ewsachse February 21, 2008 9:26 AM PST
The key is to turn off your laptop and not leave it in sleep mode. Right? You could have gotten to that point right away before you bored me to tears.
Reply to this comment
Not ironic
by Jim1900 February 21, 2008 9:41 AM PST
The term "ironic" is usually misused. Apparently it is a prerequisite for graduation for most English and Journalism majors. Since the Ph.D. student worked for the Department of Homeland Security, he would be expected to research ways of bypassing encryption. That is the opposite of irony.
Reply to this comment View reply
quidjabitchin
by rhsc February 21, 2008 9:53 AM PST
there is nothing wrong with being thorough
Reply to this comment
The solution exists!
by awkuhn February 21, 2008 10:05 AM PST
Seagate together with Dell, ASI Computers and NEC-Europe are shipping encryption technology where the encryption key never leaves the protected environment of the hardware based encryption hard disk. With this system there is no need to do encryption key management. The preboot environment is totally OS independent. The solution is provided by Wave Systems Corp. Dell, ASI and NEC-Europe are bundling their notbooks with the necessary security software.
Reply to this comment
We knew this Already
by MichaelWorobec February 21, 2008 10:31 AM PST
While this may be news to the end-user, this is not news at all to anyone with a basic understanding of cryptography and computer security. The issue raised here is best restated as something that is simply inherent to cryptography: "Encryption is no more secure than are the decryption keys." What is news is that the following are probably not well-communicated to or understood by users: 1. If the computer is stolen or otherwise accessed while it is still on (standby included), it is likley that the key is in memory and could be accessed. Microsoft provides convenient APIs to temporarily protect data like this, but the protection can really only be active when the key is not in use. Apple does not directly offer APIs for this kind of protection of in-memory data, although an equivalent can be made using the keychain APIs. 2. Even when off, it is possible that the key may be stored on disk as a consequence of swapping memory to disk. The developer of the technology must do certain things to prevent such swapping of critical data like this. And it is difficult to get every aspect of this correct, so even a well-intentioned attempt to prevent the storage of the key on disk may not succeed in all scenarios. 3. The encryption key is only as secure as the user's password. Passwords are extremely easy to get. To use the example given in this article, go to your local coffee shop with a small video camera, and capture video of the first few seconds of a customer's use of their laptop. You can likely derive their username and password by watching the video frame-by-frame.
Reply to this comment
Good article
by zextron February 21, 2008 10:41 AM PST
For me, as a user of truecrypt, this was a very good and informative article. Thanks.
Reply to this comment
of course you have to get my laptop first
by stlwest February 21, 2008 10:59 AM PST
yes then you'll have access to the public and private keys. One obvious solution would be to unmount secured drives or volumes when entering sleep mode and if the whole boot drive is crpted then don't allow sleep mode. Use of a USB key to store the key where the user enters the key only when they want to access the files. Yes, stupid people could still leave their laptop sitting unlocked with the USB key inserted but an educated user could easilly unplug the USB key. Or you could store your files on an https website, hopefully that is still secure, or the software could store your key on a secured website. If the files are truly that important they really probably shouldn't be on your laptop but on some server that requires multifactor authentication and operates over an encrypted channel. I just can't see how anyone can think it is OK to walk around with people's social security #'s and credit card info on a laptop.
Reply to this comment View reply
Apple's "secure virtual memory"?
by meerkat9090 February 21, 2008 11:09 AM PST
As noted in the article, disabling booting from an external drive + a bios password is a good start for countermeasures, but it doesn't mention if Apple's "secure virtual memory" option (not on by default) would help against the search for the filevault key.
Reply to this comment View all 2 replies
did you read the paper?
by eprepr February 21, 2008 12:08 PM PST
obviously, you can do more with apple. how do they claim it is 'better'? snap from the paper. "In the process of testing FileVault, we discovered that Mac OS X 10.4 and 10.5 keep multiple copies of the user?s login password in memory, where they are vulnerable to imaging attacks. Login passwords are often used to protect the default keychain, which may protect passphrases for FileVault disk images."
Reply to this comment View reply
LaLala
by moebsghost February 21, 2008 1:28 PM PST
Give me a break... what a fluff story
Reply to this comment
1 | 2 | Next 10 Comments >>
Powered by Jive Software
advertisement
  • About The Iconoclast

  • Declan McCullagh has covered politics, technology, and Washington, D.C. for over a decade, which has turned him into an iconoclast and a skeptic of anyone who says: "We oughta have a new federal law against this."

Add this feed to your online news reader
Google
Yahoo
MSN

Latest blog posts from News.com

Featured blogs

Beyond Binary by Ina Fried A look at how technology is changing our lives and at the people behind all that life-changing stuff.

Coop's Corner by Charles Cooper Charles Cooper weighs in on Silicon Valley hijinks, and he doesn't suffer fools gladly.

Defense in Depth by Robert Vamosi Covering the latest in computer viruses and computer crime.

Geek Gestalt by Daniel Terdiman At the tech culture nexus of video games, fire art, and virtual worlds.

Green Tech Fresh green tech news and commentary.

One More Thing by Tom Krazit Tom Krazit takes on the tech phenomenon that is Apple, and keeps a close watch on the chip industry.

Outside the Lines by Dan Farber When business and technology meet, that's when things get interesting.

The Social by Caroline McCarthy Exploring all facets of social media and tech culture.

Underexposed by Stephen Shankland Coverage of digital photography, science, and open-source software.

advertisement
On CHOW: Does drinking ice water burn calories?
Advanced
search
Advanced
search
Visit other CNET Networks sites: