60 points · by nonane · 16y ago · 133 comments
It looks like there are 2 solutions out there for Windows - TrueCrypt and Microsoft's Bitlocker. I can't use Bitlocker because my laptop doesn't have a TPM chip, which I'm told is required to encrypt the boot volume. TrueCrypt looks like the only option available right now for Windows.
Also, it looks OS X does not have built-in whole-drive encryption like Window's Bitlocker. Luckily TrueCrypt also has support for OS X.
What do you use to protect your data? Are there any pitfalls that I need to be aware of (besides loosing your password)?
As a side note, I do all my picture editing in Gimp. While this is not commom among professional photographers, it contributes in some ways to my landmark style.
I actually used Gimp before PS and from my perspective the only things it really misses are layer groups and layer styles. For PS users there is Gimp Shop[1] which attempts to "deweirdify" the UI to something more reminiscent of PS.
[1]: http://gimpshop.com
Meanwhile, one can run the external plugins such as this: http://registry.gimp.org/node/16563
For a programmer, GIMP is fine for an occasional photo editing job. Just wish, it could do a better job of importing Photoshop files. I know it is more of PS fault not GIMP's, but still.
Boot volume encryption/verification is designed to protect you against attackers who would replace your boot image with a one that contains a rootkit or keylogger. This threat model requires serious forethought and planning on the part of the attacker. He is likely targeting you or your company and he wants to do it steathily. Under this kind of threat, you really need the entire company to adopt an extremely high level of operational security. (Remember your security is only as strong as the weakest link in the chain.) Usually, this kind of paranoia is reserved for three letter agencies.
I should mention that Truecrypt doesn't protect against this threat either. At some point, there needs to be an unencrypted bootloader, which can be attacked. Hardware boot volume verification would verify that the bootloader has not been modified, which is what TPM tries to do.
Unless the encryption is implemented poorly (which in Truecrypt and Bitlocker is not) an attacker with access to your boot partition cannot attack your data partition without additional information (like your password).
On OS X, I've heard good things about PGP Whole Disk Encryption. I don't know if Truecrypt can handle Boot Camp (PGP WDE can), if you care about that at all. On Linux, I use dm-crypt + luks
I have however ran into one problem: The licensing app somehow "forgot" that it was registered (something to do with changing active directory binding). I would not have noticed except I went looking for why the computer was so slow.
I opened the PGP app and it said it wasn't licensed and the disk was "decrypting" itself.
I had to wait for basically 3 hours for it to decrypt the disk, re-enter my registration information, and re-encrypt the disk.
If we're talking about Windows, it's not "boot volume encryption" but the "C: disk encryption" that you have to worry about even if the attack scenario is data at rest. If you don't encrypt C: disk every forensic worker will trivially recover a lot of material that you'd believe was encrypted on another partition.
If we're talking about Linux where you configured /boot unencrypted and everything else encrypted, only then it's about the attack scenario that parent mentions.
I'm not advocating against "full" disk encryption. That's what I use. I just wanted to say that the OP doesn't need boot volume verification and that Bitlocker is sufficient for his needs.
There is no such thing as full disk encryption, at least in the "full" sense of the term. There will be some unencrypted partition somewhere that boots the OS. TPM is designed to verify that this partition has not changed from a trusted configuration. I wanted to say that OP does not need this level of security, which is why Bitlocker is a viable and free and fast solution for him to use. (And the security current implementations of TPM provide are questionable right now.)
Applications should not be allowed to write to this partition without elevated privileges. The OS shouldn't be writing to this during normal operation either. Sensitive data should not be put on this partition, and as far as I have heard, Windows has not done anything like this.
When I say "data", what I refer to is the C: drive. With Bitlocker and Truecrypt, the C: drive is encrypted. The Users folder should be encrypted. All the bazillions of temp directories should be encrypted. The hibernation file is encrypted. Even Program Files is encrypted.
With most operating systems, I don't think that there is a way to ensure that no protected data will ever end up on a non-protected partition. Presumably - if there is any writable directory on an unencrypted partition, there is a reasonable chance that protected data will end up on that partition.
I'm not advocating against "full" disk encryption. That's what I use. I just wanted to say that the OP doesn't need boot volume verification and that Bitlocker is sufficient for his needs.
I'll have to respectfully disagree here. Windows has heaps of different ways of caching all kinds of information outside of your home folder. Individual applications can also cache stuff wherever permissions allow (and often do). Realistically with Windows if you're going to encrypt you want to encrypt your C: drive.
PGP WDE works, it's 'good enough' to be a PITA for any authorities and you can use the same software on PC and Mac, but be warned - PGP broke Snow Leopard upgrades from Leopard when it came out and every major PGP upgrade I've ever done on Windows has resulted in a reinstall (but then again, 9.x was really, really bad).
If you're using a non-administrator account for your day to day on OSX you can use FileVault - just watch your /tmp folder.
At some point, some partition somewhere will need to be unencrypted, otherwise the system cannot boot, since the decryption programs are typically too large for a single boot sector.
I'm not advocating against "full" disk encryption. That's what I use. I just wanted to say that the OP doesn't need boot volume verification and that Bitlocker is sufficient for his needs.
http://news.cnet.com/8301-13578_3-9876060-38.html
The paper referenced is available at:
http://citp.princeton.edu/pub/coldboot.pdf
From that paper, the most salient sentence for this discussion is:
"On all of our sample DRAMs, the decay rates were low enough that an attacker who cut power for 60 seconds would recover 99.9% of bits correctly."
The long and short is that your password has to be in RAM at some point in order to be matched against what is typed in. RAM decays slowly after a machine has been switched off. As the research shows, one can use a widely-available can of air to make that decay happen even slower. In the process, one can pull the value out of RAM.
Note that this is a hardware problem that no software on the market has been able to address. To do so, you would have to be able to validate x against y without having the value of y ever enter RAM.
Consequently, a reasonably good tech thief can read the password out of RAM. For the not-so-good tech thief, using passwords and social engineering tricks like being nice to someone and then asking them to watch your stuff for a moment will probably do the trick. I tend to see the various implementations of full-disk encryption as more for peace of mind and mitigation of liability than real security.
The notion that any "reasonably good tech thief" could pull this off is also hard to take seriously. So far as I know, there are zero (0) remanence key extractor tools in circulation. Highly skilled attackers --- many apparently in the employ of foreign governments --- have a hard enough time writing tools to extract keys from live memory.
But, for the sake of argument, let's say that they don't crack it on the first go. So what? The password has to be in RAM every time the machine starts. AFAIK (and I would be pleased to be wrong about this), nobody shreds data on the hard drive because the user gets their password wrong. So, said bad guys can try to their heart's content.
As far as I'm concerned, it is a major hole in any argument for full-disk encryption.
It's there so that when the Pink Panther walks away with your laptop, he doesn't get instant access to to all of your data. If Mr. Laptop Thief wants your home directory, he's going to need to do a hell of a lot more work than reinstalling the OS and throwing the machine up on eBay.
If your drive isn't encrypted, I'll wager that a laptop thief would take a few minutes to poke around and look for something interesting, like that file 'Corporate Strategy 2010.doc', or "My Affair With The Underaged Intern, Oh God I Hope This Doesn't Get Leaked Onto The Pirate Bay.avi".
Everyone "shreds" their hard disk if they lose the password. That is the point.
Also, the Plans are to the Death Star, not the whole Empire.
Under different circumstances your solution would be 100% correct, however, in this situation we are worried about "everyday" type criminals. These are the guys/girls that find a laptop in an unlocked locker and snatch it; small window of opportunity. In your analogy the description of the criminals is much more sophisticated; Oceans 11 types.
Stealing RAM can potentially tip someone off to a threat, a better solution IMO is the Stone-Cold Bootkit[1]. The bootkit can hook into Windows in order to gain unrestricted access. It does this by writing to the MBR unrestricted; haven't we seen this before[2]? Once installed it will log your decryption password and do what ever with it.
A BIOS password(windows) and HHD encryption will be enough to keep the NSA out for a while, and a normal criminal out indefinitely.
It would be nice to have a mobo with some type of secure memory encryption programs could write to- digitally signed. Of course that could be owned too, but it's a start. In the words of Bruce Schneier, "[sic] it is very difficult to secure data when the attacker has physical control of the machine the data is stored on."[3]
Now I am thinking about the /boot partition in linux; where GRUB is stored.
[1] http://www.stoned-vienna.com/
[2] http://news.ycombinator.com/item?id=1643451
[3] http://www.schneier.com/blog/archives/2008/02/cold_boot_atta...
[4] PSA: http://zedomax.com/blog/2009/02/23/linux-boot-hack-how-to-pa...
The attacks you cite are more applicable if he were worried about intelligence agencies intercepting his data. And with rumored incestuous relationships with the corporate world, that might not be a bad idea, if he has valuable IP.
Most laptop have a special slot that accepts a cable lock. I make use of it whenever I'm in a coffee shop and have to leave the machine for more than a moment. I loop it through bag straps and my jacket too. You want to look hard to deal with.
Its also a good idea to make sure your laptop requires a password after closing the lid or whatever it is that you do when you walk away from your machine. And say hello to people around you and be helpful. They'll more likely to watch your back.
And as always, make sure no one can see what your keying in. To that end, it may help to use characters that are close together.
And yes, I know I'm a bit paranoid :-)
One needs to be careful to go all the way in. like so many things in life :-)
e.g.
http://www.daniweb.com/news/story218174.html
http://ezinearticles.com/?Business-Travel-Tip---Avoid-Having...
http://www.businesstravelnews.com/Business-Travel/Travel-Man...
You can lose a lot to thieves, but you can lose even more to state thuggery backed by the force of "law."
Your comment was ranking above other comments that were more helpful to the original poster -- and was at +3 when I voted. (I wouldn't have voted your comment down to 0 -- it wasn't inappropriate -- just less-appropriate than other better comments lagging below it.)
I've often suggested comments should have two rating dimensions -- up-promote/down-demote and left-agree/right-disagree -- and some people have said the agree+demote combination would never be used. Well, I would have used it here.
I've got no experience with Bitlocker, but I'm a huge fan of TrueCrypt.
With full source and a build environment for our product on their laptop. That makes me paranoid about loosing a laptop in the chaos of a trade show, while our booth is surrounded by our competitors.
Also it breaks the Time Machine browser. If you want to do a restore, you must mount the data backup manually and find the file(s) you want to restore through Finder. Definately not elegant or very user friendly.
Some apps do have minor glitches with FileVault. IIRC, Firefox wouldn't remember certain settings if you used it with a FileVault-enabled account (not sure if this has changed in recent versions).
For stuff I consider sensitive -- medical documents, password lists, financials and the like, I store on a truecrypt partition of the external drive that I use for backups. Since I use OS X most often, this drive is a Time Machine drive, but with a chunk of space partitioned off for TrueCrypt. I opted to use a partition because it's less obvious than a container on the filesystem. I use TC's deniable filesystem trick as well, and padded the "duress volume" with things like "hacking" documents that might be plausible.
I also have an old 80GB laptop hard drive, which is fully-encrypted with a truecrypt volume, which I occasionally back up to from my primary TC volume. This drive is stored in a secure location off-site, in the hands of a trusted individual. They do not, however, have the passphrase to the volume.
The goal in all of this is so that I don't carry sensitive data with me. None of the encrypted stuff is anything I could possibly need RIGHT THIS SECOND. This means that my sensitive information is only at risk of being exposed when I'm at home and when I actually am accessing it.
I haven't researched this, but is it possible to remotely delete a Dropbox drive? I.e. if my laptop is stolen, to use the site to wipe the data from the laptop? I assume it's possible.
From https://www.dropbox.com/account#manage (pressing "unlink"): "[The unlinked] computer will no longer stay in sync, but it will keep a copy of any file it currently has."
I’m using PGP Whole Disk Encryption http://www.pgp.com/products/wholediskencryption/index.html, which works perfectly. I prefer it over OS X’s FileVault feature since it just protects everything and is completely transparent to the system and the user.
And, btw, I’m still hoping for a mobile OS besides BlackBerry’s that provides a reasonable secure encryption option.
One thing to consider, however, are SSDs. To my knowledge, encrypted data is only written to blocks that already contain random data. You therefore might want to look for disks whose performance does not degrade that much when free blocks are no longer available.
* Encrypt the user data portion of the hd.
* Password protect the bios, hard drive (if it has that capability in the bios.), and the OS accounts.
* Keep account passwords and account information in an additional password protected store (such as 1password).
* Don't save sensitive data in web browsers or other autocomplete programs.
Encrypting the whole hard drive, in my experience, is a huge pain in the ass; particularly for disaster recovery. For non-IT department systems it's not worth it.
Bitlocker Tips:
1. You might have to enable it in your group policy (see http://www.sevenforums.com/tutorials/4681-bitlocker-drive-en...) for the option to use a USB key to show up.
2. You'll need the USB key inserted to power on the laptop or resume from hibernate, but not for waking it from sleep. That helps with convenience since you won't have to use the key to unlock it from sleep.
3. Make sure to back up the Bitlocker Recovery Key saved to the USB drive. It's saved as a hidden file, just put it somewhere safe online in case you lose the USB key.
4. Don't lose the USB key along with your laptop! Since that sort of defeats the point of encrypting the drive in the first place...
I'd love to just go the whole hog and encrypt the whole drive, but as a developer I jealously guard performance as I feel it links directly to my productivity. So I just have an encrypted Truecrypt volume where really sensitive stuff goes. But I hear everyone recommending against that.
The latest Truecrypt 7.0 uses AES-NI instructions in the i5 and i7 processors, which allegedly have 8x speed http://www.truecrypt.org/docs/?s=hardware-acceleration
Go ahead and encrypt your whole drive, if there performance problems, you can easily de-encrypt it.
On Windows, PGP gives me no real difference in anything that isn't I/O bound, although I did notice that Fallout 3 went from fine to unplayable at the same settings - I've noticed that anything that makes extensive use of sound (presumably streamed off disk) has an impact.
On Linux I did some tests a while back with luks and found that there was about a 5% overhead on i/o operations for a luks partition with ext3 vs straight ext3.
I haven't had any figures for Mac but PGP is a bit of a memory hog on Leopard. The Mac Mini server we have at work isn't something you'd want to use for day to day activities, certainly nothing intensive, but is fine as an office file server.
At the end of the day, what you're looking at is a minor memory impact (for most cases) and a minor to noticeable impact on i/o performance in exchange for a significant improvement in confidentiality for data at rest. That's the call you need to make. If your code and other files are sufficiently sensitive for you not to want random thieves to be able to look at your laptop if they steal it, encrypt. If you have sensitive information that requires protection for legal purposes, encrypt. If it's not an issue for you, then don't.
I'm sure there's more overheard with full disk encryption and I might just be used to the lower performance of my portable apps. I'd say it's worth it.
You can also configure Truecrypt to work with multiboot - so if you have Ubuntu, Chromium OS and Windows 7 for example it will still work
http://windows.microsoft.com/en-US/windows-vista/BitLocker-D...
It's hard to predict what data is going to end up being sensitive, and it's hard to predict where that data is going to end up being stored. By way of example, you haven't protected any of the session cookies stored in your browser; another user, following your advice, could lose their Google Mail account and then quickly thereafter the accounts of anything with an email password reset.
If you (a) don't keep a lot of sensitive information around and (b) are prepared to be extremely careful on a daily basis about keeping your laptop clean, yours is a workable strategy. If, like some of us, your desktop tends to get cluttered or your mail spool tends to grow without bound or your hard drive tends to mysteriously fill up over the year, you're better off with full-disk encryption.
As for /tmp and swap: those are not required to be persistent over reboots. So you can regenerate those with a random key on every boot. <a href="http://paste.pocoo.org/show/260932/>Here are some pointers to help you do that with dm-crypt</a> for a swap device backed by a loopback device.
- http://agilewebsolutions.com/knox (one vault per client) on Mac OS X, including all db data if any
- http://agilewebsolutions.com/products/1Password for all small-sized sensitive data (eg: production access, passwords etc), with an automated crypted backup
I'm looking for a reliable and as seamless solution for Windows at my pace (not a big need).
Something I'm also looking at is a way to securely erase all the free space on Mac OS X (to remove past data), as well as something that really works to find sensitive data (where I could define what sensitive means).
dd if=/dev/zero of=/tmp/free_space_eater; rm /tmp/free_space_eater
This overwrites all unused space on the disk with zeroes. You'll temporarily run out of free diskspace with either option, so it's a good idea to do this when you're not working on your computer.
dd if=/dev/zero of=/tmp/free_space_eater; sync; rm /tmp/free_space_eater
Knox is handy if you already do full-disk encryption, because it lets you segregate data further (personal financials, client work, etc), so that even if you lose your computer while it's (say) on, an attacker will still need the key to yet another encrypted volume to get that data. I find it extremely useful for things I know I'm not going to need to access often; I also use it for my mail spool.
Folder based encryption will not provide protection, only whole disk encryption.
I run PGP Whole Disk Encryption and am very happy with it. I also use Super Duper for backing up to two different external drives. One is unencrypted which I keep in the firesafe at home, and the other is also encrypted with PGP WDE which I take with me when traveling. That way, if my laptop were stolen, I can pick up a new one and restore the drive to it.
I don't use whole-disk encryption but I have almost all my applications on the encrypted partition, thanks to PortableApps (http://portableapps.com/). As a bonus it's very easy to backup all my PortableApps data, as well as take everything on an external drive and start working on a different computer (provided it has Truecrypt).
Edit: link to FreeOTFE: http://www.freeotfe.org/
don't get why you would encrypt your whole disk though. the home is all I need encrypted.
/Users/chip/work/company -> /Volumes/enc-base/work/company
/Users/chip/.subversion -> /Volumes/enc-base/dotfiles/subversion
/Users/chip/.ssh -> /Volumes/enc-base/dotfiles/ssh
/Users/chip/Library -> /Volumes/enc-base/Library
/usr/local/mysql/current/data -> /Volumes/enc-base/mysql-data
I don't imagine its perfect, but I know most of my important and confidential things are encrypted.That's why I'm slowly moving from a general mysql/mongo/redis instance toward a per-folder instance that I run when I need it.
http://www.jetico.com/encryption-bestcrypt-volume-encryption...
You do not require a TPM chip to use BitLocker, although it's better if you have one as the TPM makes it very difficult to tamper the boot code.
Use full volume encryption products (like BitLocker or Bestcrypt VE). There's always useful data in temporary files and it protects against leaving a sensitive file out of an encrypted volume.
The biggest problem? If certain system files become corrupt you lose the whole disk. It's not a decision to be taken lightly.
There you can find a method to also encrypt your whole home folder. Maybe it might work for you macbook.
Fortunately for our collective sanity, if it is the case that NSA has (several times over) the moral equivalent of the "stack overflow" for cryptosystems, there is nothing we can do about it, and there's no point wanking over alternatives that might foil them.
Regarding the FBI, "almost certainly yes", assuming you use it properly (in particular, by using strong secrets). Consider that any vulnerability in the crypto stack Truecrypt uses would have far too much value to be wasted on conventional domestic law enforcement. Consider also that unlike state secrets, domestic law enforcement uses a crypto stack that is the same or strictly weaker than Truecrypt.
You need to add "assuming you are willing to go to jail" because a warrant can compel you to disclose your password, and if you refuse you'll be jailed for contempt of court.
There are some things to keep in mind though:
Fine print: As others have pointed out elsewhere in the thread, it's possible to extract encryption keys from RAM even if the computer has been (very... within several minutes) recently shut down.
More fine print: Pick a weak passphrase, and you may be shit-outta-luck. Also, brute forcing for passphrases up to a certain complexity is viable.
Tin foil hat: A conspiracy theorist may assert that the feds are far ahead of academia when it comes to cryptography, as was likely the case several decades ago (see the history of DES). I'm not sure that I believe that, because cryptography has a huge place in academia now, worldwide. It's possible, but I doubt they've broken AES.
I responded to this same comment with more details that I won't repeat, but, with respect, I'd suggest not taking seriously the crypto insights of someone who equates these two agencies.
The fact that only one organization in the US Government is likely to be able to break your disk encryption isn't a moot point, because that one organization is extremely unlikely to harass a US citizen; forget the law, the simple incentives are all wrong.
But here's the thing... I'm not paranoid in the style of "The Lone Gunmen," but this news never quite passed the sniff test. I find it difficult to believe that if the FBI was unable to crack a TrueCrypt volume that they'd let that particular cat out of the bag.
I conclude two possible motives: 1) Subterfuge to get people feeling "safe" with a method that can be broken; or 2) Demonization of strong crypto in the media as a prelude to criminalizing its use (or at least the refusal to hand over keys, as in the UK).
Thanks
Edit: or other things that would be ok but can be used against you by law enforcement, for example what about your collection of pirated MP3s or DivX?
Is this more acceptable than accidentally downloading porn with someone that might look underage? (Or having looked at it because some trolled linked it to you)
They had their children taken away because they went to a photo shop to have the film developed and the clerk called the police.
http://www.salon.com/life/feature/2006/07/18/photos/index.ht...
I recall other vaguely-similar cases reported in less detail in earlier years. The clerks may not have good judgment, and the incentives for the clerks and many of the agencies involved are to err on the side of assuming-the-worst.
The stigma of even having been accused may make people in such a situation unwilling to talk about it even after being cleared afterwards. After all, many will assume law enforcement would only get involved if "the pictures weren't so 'innocent'".
Fortunately that is not my case but I can't say I don't have any MP3s of DivXs that aren't, err, properly licensed.
Edit: or cracked software, we have very high fines in Italy for using softwares without a license.
I'm just saying that in case the police have a look to your laptop and they WANT you to charge with something, they will.