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


What do you have to say?

Show Editing Help


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

Nui

July 18, 2008
Hmm, this would be more persuasive as an argument with some evidence. I am a happy admin of Windows and a novice user of Linux, so I have taken the ...
Give Linux a chance

Paddy3118

July 18, 2008
Hi, I too work with Electronic Design Automation tools, where Tcl is used extensively. I tend to only occasionally have to write in Tcl and so find the TclTutor utility: ...
Python and TCL

Cliff Wells

July 17, 2008
I personally cannot live without the Web Developer extension or Firebug. Unfortunately these are probably both among the more difficult to port extensions. Given how poorly Firefox functions on Linux ...
Will Epiphany be able to compete with Firefox's extensions?

making money on the internet

July 17, 2008
[url=http://www.divinecaroline.com/public/user/profile?user_id=83997]extra money 101waystoincome.com[/url]
A year after my 2007 predictions - the score card

Leatherjackets99

July 16, 2008
New Style in Leather Jackets For Man and Woman at http://www.Leatherjackets99.com They Offer Free Shipment Worldwide.
Email Syntax Check in Python

Åke Forslund

July 13, 2008
I'm pretty much a novice in both of these languages but I find them both easy to use and preform the tasks I give them. However I rarely use them ...
Python and TCL

Christopher Thoday

July 12, 2008
A single test is not sufficient to give you confidence that the algorithm is working. You should make 'number' an argument of 'main' so that you can test some boundary ...
Python and TCL

paul21

July 10, 2008
Shame on Mozilla. They should make developers specify the extension license before hosting it. They should show the license next to download button as well.
Are your Firefox extensions proprietary software?

Tris

July 8, 2008
Justin - You say they had not heard of Linux? That doesn't sound very professional to me!
Give Linux a chance

michael

July 8, 2008
what about Galeon? in Gnome i use Galeon mostly. it is fast and stable and has a nice portal with search masks for Debian, FSF, Freshmeat and so on. wtf ...
Will Epiphany be able to compete with Firefox's extensions?

vermin

July 7, 2008
> Eventually, after a bit of digging and Googling, I found their Toolbar-License... You simply found the license of the StumbleUpon Toolbar for Internet Explorer. This is another product, much ...
Are your Firefox extensions proprietary software?

Andrew West

July 6, 2008
Both the Python and the Tcl example could do with error checking. While at first this may not seem on topic with the post I think it better shows the ...
Python and TCL

Kurushiyama

June 30, 2008
XML is no replacement for SGML, it's a subset.
An Introduction to ReStructuredText