• Zeth will be attending PyCon UK on the 12th to 14th September 2008.

The Challenge: Encrypt your laptop's /home directory before Christmas

12 December 2007

The reason: people lose laptops

The Eden project lost an unencrypted laptop containing sensitive personal data on all 500 employees; bad but small beer when Posh retailer Marks and Spencer lost an unencrypted laptop containing sensitive data on 26,000 of its staff

A hospital lost the personal details of 11,500 children when an unencrypted laptop disappeared. A bank lost an unencrypted laptop with data about 11 million customers on and was fined for it.

Even the US Department of Homeland Security lost data on 100,000 staff, when an unencrypted external hard-drive went missing. Not to mention that Britain's top spies lose unencrypted laptops with sensitive data on. It goes on and on.

Some of this is down to archaic working practices, using office software when you should be a server-hosted applications, managers should not be wandering around with monster spreadsheets in their laptops, the information should be locked down on a rock-solid server inside a secure data centre.

However, it is also due to the laptops not running encryption at all. If someone steals a laptop with strong encryption, the data is completely unreadable to almost anyone on earth, give or take an American agency or two (probably just one).

Use Encryption, yes especially you Linux users

You can't always guarantee the physical security of mobile computers, indeed I myself had one stolen this year. However, on Linux, there is no need to leave yourself open to identity or data theft. Indeed if you are using Linux and you ended up at this blog post somehow, then you are highly likely to either work in IT or be otherwise highly technically competent. In other words, you have no excuse.

Encryption is easy to set-up, the approach I've outlined here does not require a reinstall, we are just going to swap out your home directory for an encrypted home partition. The simplest possible approach, but a big step forward in security for many of us.

You can follow my approach:

  • In the introductory post, we look in general at the approach to encryption that we are undertaking.
  • In the second post, we setup an encrypted partition at a dummy mount point.
  • In the third post, we copy our files to the encrypted partition, set the encrypted partition to be mounted as /home and then shred the old unencrypted copies of our files.

There are also many other guides out there, including:

Spread the Word

Please do help with the campaign to get (at least) /home encrypted on all our Linux laptops by Christmas. Feel free to email this to your friends and user groups, if you have a website or blog then please link here, or even write a better version of your own!

Please also use the Digg entry, StumbleUpon or whatever cool social networking thing that you use.

Lastly, every campaign needs a sticker, so here it is:

Encrypt Home By Christmas

Feel free to use it. Also, if it helps, here is some pre-made link code that you can slap on your blog/web site:

::
<a href="http://commandline.org.uk/xmas"> <img src="http://commandline.org.uk/images/christmas.png" alt="Encrypt Home By Christmas" width="300" height="100" /></a>

What are you waiting for? Secure your /home!

Discuss this post - Leave a comment

1 Albert says...

Hi Zeth - encrypting home is a great idea, also for general unix system administration. Unfortunately the umask environment setting isn't very flexible, so if you have a multi-user environment, you need to keep it at least 027, but then your home files are world readable. By encrypting your home, other users can access the encrypted files, but they are encrypted and undecipherable. I do the same with my wiki software.

Posted at 6:37 p.m. on December 14, 2007


2 Albert L says...

This is a great idea for a technologically ignorant thief, but more sophisticated attacks can by-pass the encryption, accessing the DRAM after the computer is powered down.

http://www.freedom-to-tinker.com/?p=1257

The research team includes J. Alex Halderman, Seth D. Schoen, Nadia Heninger, William Clarkson, William Paul, Joseph A. Calandrino, Ariel J. Feldman, Jacob Appelbaum, and Edward W. Felten. The full paper can be found at:

http://citp.princeton.edu/memory/

Their conclusions have been independently verified, as well. For the replies of Microsoft, Apple, and PGP, see

http://www.news.com/8301-13578_3-9876060-38.html

Against techno-savvy thieves, encryption is obviously a limited solution.

Posted at 11:04 a.m. on February 25, 2008


3 Zeth says...

Hi Albert,

Most Linux users walk around with unencrypted personal data on their laptops. This is just security through obscurity, and Linux is far less obscure than it once was.

Any identity thief with a Linux LiveCD or a Linux box can mount the laptop drive and get the data. This is a real attack that can be used by anyone who gains physical position of the drive.

My approach stops this level of technosavvy-ness. But of course, security is a process, a journey not a destination, and one would want many layers of security. Because there is a new more unlikely attack, should not stop one preventing this more likely and more common attack.

I myself shutdown and power-down my laptop when on the move, I do not suspend it. Unless the thief has a handy supply of liquid nitrogen, they have to get my laptop into their lab and boot the new OS within a few minutes of shutdown or the data in the RAM has faded.

Posted at 1:19 p.m. on February 25, 2008


4 nick says...

How about TrueCrypt?

http://codesnippets.joyent.com/posts/show/1554

Posted at 5:32 a.m. on July 26, 2008


What do you have to say?

Show Editing Help


PyCon UK

About

Hello, my name is Zeth, I'll be your host here.

Command Line Warriors is about taking control of your own technology, it looks at our experiences of computing; especially using GNU/Linux, the Python programming language, the command-line and issues such as techno-ethics, best practices and whatever is cool now. If you take control of your technology then you are a Warrior too!

This site is your site too which means that you can contribute and get involved. You can leave comments using the facility provided. For me, the comments and discussions are by far the best part of the site. So please do have your say!

Latest Discussions

Naib

August 27, 2008
And the greatest flaw with this "simple" talley? Women's eights final: 1 United States 6:05.34 Gold 2 Netherlands 6:07.22 Silver 3 Romania 6:07.25 Bronze Men's quadruple sculls final: 1 Poland ...
An Alternative Olympic Medal Table

james

August 27, 2008
Great discussion and a great "add-on" with the European countries! I still find medals per Capita very interesting because it indicates how many medals a country has won, from the ...
An Alternative Olympic Medal Table

Steve

August 27, 2008
Flawed logic. This comparison would only make sense if the EU could only send the same amount of competitors as a single country. Since it is treated as many small ...
An Alternative Olympic Medal Table

Zeth

August 27, 2008
Hi Benjamin, as far as I know, you can put any GSM SIM card into your OpenMoko, so you have the freedom to choose the best deal for you from ...
OpenMoko vs iPhone - Free your phone or Fight your phone?

Benjamin Melançon

August 25, 2008
Network question. I know more about computers than cell phones. Can anyone tell me or point me to a resource about what purchase options for network access are. For instance ...
OpenMoko vs iPhone - Free your phone or Fight your phone?

Mark (Cycom on freenode)

August 23, 2008
Two separate ideas here: First: Is not the competition between KDE and GNOME a good thing? It drives both to improve in a way that Mac and Windows and Linux ...
Is GUADEC just GDEC?

Zeth

August 21, 2008
Thanks for your comments guys, the newspapers need to sit a while on the naughty step until they are willing to play nicely. John Reese, thanks for visiting, it is ...
Newspapers please link to your sources

John

August 20, 2008
Zeth, The link to this file (for view wireless history) doesn't bring up a dialogue. Could you fix this?
Five Tips for Easter

John Reese

August 20, 2008
They're *carts*, not "trolleys"! ;)
Newspapers please link to your sources

akahn

August 20, 2008
Control-L usually selects the whole address, so only Control-L Control-C would be needed.
Newspapers please link to your sources

Sean

August 20, 2008
That was good. I'm crackin' up.
Newspapers please link to your sources

Garrick

August 20, 2008
Here here!
Newspapers please link to your sources

Seth Kriticos

August 19, 2008
bkil: "GTK and Gecko-tied extensions could be ported to non-gecko browsers." *cough* Epiphany is running on gecko currently and integrates some extensions thereof, they are just planning to switch to ...
Will Epiphany be able to compete with Firefox's extensions?

Harshad Modi

August 18, 2008
Thanks helping me!!! but I have problem on banner.... I try to make my own sftp server using paramiko inherit paramiko.ServerInterface class. but I got this error: ERROR:paramiko.transport:SSHException: Error reading ...
SFTP in Python: Paramiko