TweetFollow Us on Twitter

Macintosh Data Encryption

Volume Number: 25
Issue Number: 04
Column Tag: Encryption

Macintosh Data Encryption

Protecting data at rest through disk encryption

by Rich Trouton

Introduction

One of the hot new items in recent years, in both government and corporate IT, has been laptop encryption. In large part, this is a technical solution to a human problem: data theft, loss or exposure. People lose laptops, thieves steal laptops because they're valuable, the kids find information that they're not supposed to on Mom's or Dad's computer and tell all their friends about it, and so on. Does everyone need encryption? Maybe not. My own personal yardstick is "Is there anything on this machine where I would have a problem with it being posted on the web, or tacked up on a public bulletin board?" If your own answer is "No", you probably don't need to encrypt anything. If your answer is "Yes", then you probably should.

How best to protect your data?

There are two main encryption strategies that are in use today on the Mac. The first is file and folder encryption and the second is whole disk encryption (WDE). Both have their pluses and minuses, especially with regards to data recovery. After all, encryption boils down to "scrambling your data so that other people can't read it." Normally, you try to make sure that all your data is intact; encryption strives to deliberately scramble what is saved to the hard drive. The trick with encrypting your data is that you want to scramble it in such a way that authorized people can unscramble it while no one else can.

File and folder encryption works pretty much like it sounds. It allows you to encrypt and decrypt selected files or folders. Tools that use this method make you choose what you want to encrypt and don't encrypt anything that's not selected for encryption. By and large, this is the method of data protection that Apple has chosen to support, and Apple has provided some great tools with Mac OS X for file and folder encryption. Another third-party encryption tool available for Mac OS X that uses file and folder encryption is TrueCrypt, which is an open-source project that supports Windows Vista/XP, Mac OS X, and Linux.

Whole disk encryption is also fairly self-descriptive. It encrypts an entire hard drive and everything on it. In this model, everything on that hard disk is encrypted and the only way to have it not be encrypted is to move it off of that drive. Because of this, WDE is the preferred encryption method for most corporate and government environments. Using this encryption strategy has been problematic for the Mac until fairly recently. In fact, until May 2008, there wasn't a whole disk encryption software solution available for the Mac that supported an encrypted boot drive. There are now a couple of software packages that support Intel-based Macs, but PowerPC-based Macs still don't have a WDE software package that allows you to boot from the encrypted drive. On the whole disk encryption side, the two main software packages available for the Intel Macs are PGP's Whole Disk Encryption and Checkpoint's Full Disk Encryption.

Mac OS X's built-in encryption solutions

As mentioned earlier, Apple has chosen to support the file and folder encryption method with its encryption tools. The main tools are encrypted disk images and FileVault in Mac OS X 10.3.x and higher.

Encrypted disk images are just like any other disk image you can create with Disk Utility, with the exception that they are password protected and that password is used to encrypt the disk image with AES-128 128 bit encryption when the disk image is first created. You can use them like any other disk image file. It may be copied to, or created on, network volumes or removable media including Zip drives, USB flash media or FireWire hard drives. A particularly nifty feature of encrypted disk images is that when mounting the disk image from a remote server, is that all disk image-related communication between the computer mounting the disk image and the server is protected with the same 128 bit encryption used to create the disk image.

FileVault takes the same encrypted disk image technology that Apple created for encrypted disk images and uses it to protect one particular folder: your account's home folder. How FileVault does this is by creating an encrypted disk image that's able to grow or shrink with the amount of data stored in your home folder, mounting that encrypted disk image when you log in and then un-mounting it when you log out. The user's home is encrypted using the same AES encryption that is available for encrypted disk images and the contents of the home folder are automatically encrypted and decrypted on the fly.

FileVault has some upsides and downsides. The biggest upsides are cost and ease of use. It's built-into Mac OS X (v 10.4 and higher), so you're getting it for the same price that you paid for OS X. Apple has also gone to a considerable amount of trouble to make sure that you hardly notice anything different about working from an account that's not encrypted from one that is encrypted. One other attractive feature of it is that, because only the home folder for a particular account is being encrypted, you're able to support the rest of the Mac like you always have without having to deal with the extra complications that encrypting the OS and your applications may bring.

The biggest downsides have to do with backups and with using network accounts where the password is managed from a server, instead of from your own Mac. In most cases, these accounts are being provided by an external directory service (like Apple's Open Directory or Microsoft's Active Directory).

With regards to backups, the problem is that FileVault, at its heart, uses a password-protected encrypted disk image. The backup software will not be able to unlock the disk image while you're logged out of your account and only backup the files you changed since the last backup operation, so it will try to copy the entire file. Worse yet, if you change the encrypted disk image while it's being backed up (for example, by logging in to the account) you can corrupt the backup, making it hard or impossible to restore your files if needed. That's one of the reasons why Time Machine on 10.5 only backs up a FileVault-encrypted home when the user logs out. The best solution I've found so far is to use Time Machine with an attached disk drive and log out of my account on a daily basis, but that may not be workable for everyone.

The problem with network accounts from an external directory service combined with FileVault is again that FileVault is using a password-protected disk image. The disk image only knows the password that's able to unlock it and doesn't check with any other sources, like the external directory service that actually manages your password. So it doesn't know that you forgot your password and had to call your company or school's help desk to get it reset, and it doesn't pick up the new password when IT resets your account's password on their end. All it knows is that the password that you put in to the login screen doesn't match the one that it needs to unlock the disk image. Fortunately, Apple has provided a way to reset the encrypted disk image's password via the FileVault Master Password, but this is a solution primarily built for dealing with OS X's own local accounts instead of network accounts. Leveraging the Master Password to help you recover network accounts that have FileVaulted local homes usually requires some work on the command line. The best solution here is both user education and IT training. The user education is training your users that they need to change their account's password from their FileVault-encrypted Mac. The IT training is in the various methods of recovering a FileVault-encrypted account's data and is for when your users forget their training, or just forget their password.

Third-party encryption solutions

There are a number of encryption solutions available from sources other than Apple. I'll only be covering the ones I'm most familiar with: TrueCrypt, PGP's Whole Disk Encryption and Checkpoint's Full Disk Encryption.

TrueCrypt on OS X offers both file and folder encryption and whole disk encryption for non-boot disks, but does not currently have all of the abilities that it does in its Windows version (which include whole disk encryption of boot disks, as well as offering the ability to create and run your PC from a hidden encrypted operating system). TrueCrypt is also free and offers the best cross-platform compatibility of the encryption systems I've looked at, as it supports Windows, Mac OS X and Linux. If you need to work cross-platform and keep your encryption solution the same, TrueCrypt is a pretty good solution.

From an enterprise IT standpoint, TrueCrypt has the disadvantage of not having a back door. If you don't have the password, you don't get in. Period.

You can download TrueCrypt from the TrueCrypt website at http://www.truecrypt.org/.

PGP's Whole Disk Encryption for Mac OS X offers file and folder encryption and whole disk encryption, though it only supports WDE for boot disks on Intel Macs. (On Power PC Macs, PGP still supports whole disk encryption, but you can't boot from any of the encrypted drives). PGP is very good at providing data scrambling and unscrambling without interfering with the user, which is pretty much what you want from an encryption product. You can even use your Mac normally while the initial encryption is running, as PGP is smart enough to know what disk sectors are already encrypted and which ones are not, allowing the system to work normally during the whole process. You will probably notice a very high loss of performance during the initial encryption process because the hard drive will be in really heavy usage (after all, PGP has to read and rewrite the entire disk surface).

From an enterprise IT standpoint, PGP has another advantage in that the company also provides server-based management tools to manage the encryption policies of your PGP-encrypted machines. Don't want your users to be able to turn off their encryption? PGP's management tools can provide that ability. Want to be able to show your auditors how many encrypted Macs you have, what's encrypted, and the last time they talked to the management server? PGP's management tools can provide that too. Your user forgot their password for unlocking PGP's encryption? PGP's management tools can provide a one-time password that acts as a recovery key which you can give to the user to unlock their encryption when they've forgotten their own PGP password, even if the user is off the network and frantically calling you just prior to that important presentation that they're giving 3000 miles away from the home office.

The main downside to PGP is that Boot Camp does not currently work in combination with an PGP-encrypted boot drive. If you need to run Windows on your PGP-encrypted Mac, I suggest using software like Paralllels or VMWare.

You can download an evaluation copy of PGP from the PGP website at http://www.pgp.com/desktoptrial/index.htmldownloads/

Checkpoint's Full Disk Encryption for Mac OS X is similar to PGP's overall design when it comes to whole disk encryption for Macs, though Checkpoint's solution is for the Intel Macs only and does not support Power PC Macs. Like PGP, Checkpoint's encryption is pretty good at scrambling and unscrambling your data in a transparent fashion, and also allows the Mac to be used normally during the encryption process.

Where Checkpoint fell short in my testing has been in the area of enterprise IT management, with the biggest problem being the issue of recovery keys. Unlike PGP, which offers the option of having the recovery key be generated and managed by a management server, Checkpoint's recovery key is generated by the Checkpoint software on the Mac itself. The problem then is that the recovery key then needs to be copied off of the computer and stored somewhere else. The Checkpoint-generated recovery key also periodically updates (usually, this is triggered by the Mac changing its hostname or some other similar global variable) so you need to also make sure that the copy of the recovery key you have is the latest one or you may not be able to use the key to recover your encrypted data.

For more information about Checkpoint's Full Disk Encryption for Mac OS X, you can go to http://www.checkpoint.com/products/datasecurity/pc/index.html

Protect your encrypted data - Back up

Protecting your data with encryption is a great way to guard it, but does require you to remember yet another crucial password, and losing the key is like losing the combination to an unbreakable safe. What's the best way to protect your data against this? Backups, backups, backups. Make a regular backup of your encrypted data to somewhere you know is safe. As mentioned earlier, Time Machine can back up your FileVault-encrypted home folder when you log out and you can use other backup tools to back up your data once you've unlocked the encryption and logged in to your account. One consideration to keep in mind is that there's usually no point in encrypting the files on your Mac if you've got an un-encrypted copy of your files in a place where the backups can be compromised easily.

Conclusion

Encryption is an important method of protecting your data. As we've seen, most methods can be transparent to the user. Depending on your needs, the Macintosh platform offers several different styles of encryption. From the built-in, disk-imaged-based home-directory-only FileVault to several vendors offering driver-level full disk encryption, you can choose how bullet-proof you need the protection to be.


Rich Trouton is a Macintosh sysadmin with over ten years of experience, both in the enterprise space and in the small business space. He lives in Maryland and is currently providing Macintosh support for an unnamed government agency.

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Top Mobile Game Discounts
Every day, we pick out a curated list of the best mobile discounts on the App Store and post them here. This list won't be comprehensive, but it every game on it is recommended. Feel free to check out the coverage we did on them in the links... | Read more »
Price of Glory unleashes its 1.4 Alpha u...
As much as we all probably dislike Maths as a subject, we do have to hand it to geometry for giving us the good old Hexgrid, home of some of the best strategy games. One such example, Price of Glory, has dropped its 1.4 Alpha update, stocked full... | Read more »
The SLC 2025 kicks off this month to cro...
Ever since the Solo Leveling: Arise Championship 2025 was announced, I have been looking forward to it. The promotional clip they released a month or two back showed crowds going absolutely nuts for the previous competitions, so imagine the... | Read more »
Dive into some early Magicpunk fun as Cr...
Excellent news for fans of steampunk and magic; the Precursor Test for Magicpunk MMORPG Crystal of Atlan opens today. This rather fancy way of saying beta test will remain open until March 5th and is available for PC - boo - and Android devices -... | Read more »
Prepare to get your mind melted as Evang...
If you are a fan of sci-fi shooters and incredibly weird, mind-bending anime series, then you are in for a treat, as Goddess of Victory: Nikke is gearing up for its second collaboration with Evangelion. We were also treated to an upcoming... | Read more »
Square Enix gives with one hand and slap...
We have something of a mixed bag coming over from Square Enix HQ today. Two of their mobile games are revelling in life with new events keeping them alive, whilst another has been thrown onto the ever-growing discard pile Square is building. I... | Read more »
Let the world burn as you have some fest...
It is time to leave the world burning once again as you take a much-needed break from that whole “hero” lark and enjoy some celebrations in Genshin Impact. Version 5.4, Moonlight Amidst Dreams, will see you in Inazuma to attend the Mikawa Flower... | Read more »
Full Moon Over the Abyssal Sea lands on...
Aether Gazer has announced its latest major update, and it is one of the loveliest event names I have ever heard. Full Moon Over the Abyssal Sea is an amazing name, and it comes loaded with two side stories, a new S-grade Modifier, and some fancy... | Read more »
Open your own eatery for all the forest...
Very important question; when you read the title Zoo Restaurant, do you also immediately think of running a restaurant in which you cook Zoo animals as the course? I will just assume yes. Anyway, come June 23rd we will all be able to start up our... | Read more »
Crystal of Atlan opens registration for...
Nuverse was prominently featured in the last month for all the wrong reasons with the USA TikTok debacle, but now it is putting all that behind it and preparing for the Crystal of Atlan beta test. Taking place between February 18th and March 5th,... | Read more »

Price Scanner via MacPrices.net

AT&T is offering a 65% discount on the ne...
AT&T is offering the new iPhone 16e for up to 65% off their monthly finance fee with 36-months of service. No trade-in is required. Discount is applied via monthly bill credits over the 36 month... Read more
Use this code to get a free iPhone 13 at Visi...
For a limited time, use code SWEETDEAL to get a free 128GB iPhone 13 Visible, Verizon’s low-cost wireless cell service, Visible. Deal is valid when you purchase the Visible+ annual plan. Free... Read more
M4 Mac minis on sale for $50-$80 off MSRP at...
B&H Photo has M4 Mac minis in stock and on sale right now for $50 to $80 off Apple’s MSRP, each including free 1-2 day shipping to most US addresses: – M4 Mac mini (16GB/256GB): $549, $50 off... Read more
Buy an iPhone 16 at Boost Mobile and get one...
Boost Mobile, an MVNO using AT&T and T-Mobile’s networks, is offering one year of free Unlimited service with the purchase of any iPhone 16. Purchase the iPhone at standard MSRP, and then choose... Read more
Get an iPhone 15 for only $299 at Boost Mobil...
Boost Mobile, an MVNO using AT&T and T-Mobile’s networks, is offering the 128GB iPhone 15 for $299.99 including service with their Unlimited Premium plan (50GB of premium data, $60/month), or $20... Read more
Unreal Mobile is offering $100 off any new iP...
Unreal Mobile, an MVNO using AT&T and T-Mobile’s networks, is offering a $100 discount on any new iPhone with service. This includes new iPhone 16 models as well as iPhone 15, 14, 13, and SE... Read more
Apple drops prices on clearance iPhone 14 mod...
With today’s introduction of the new iPhone 16e, Apple has discontinued the iPhone 14, 14 Pro, and SE. In response, Apple has dropped prices on unlocked, Certified Refurbished, iPhone 14 models to a... Read more
B&H has 16-inch M4 Max MacBook Pros on sa...
B&H Photo is offering a $360-$410 discount on new 16-inch MacBook Pros with M4 Max CPUs right now. B&H offers free 1-2 day shipping to most US addresses: – 16″ M4 Max MacBook Pro (36GB/1TB/... Read more
Amazon is offering a $100 discount on the M4...
Amazon has the M4 Pro Mac mini discounted $100 off MSRP right now. Shipping is free. Their price is the lowest currently available for this popular mini: – Mac mini M4 Pro (24GB/512GB): $1299, $100... Read more
B&H continues to offer $150-$220 discount...
B&H Photo has 14-inch M4 MacBook Pros on sale for $150-$220 off MSRP. B&H offers free 1-2 day shipping to most US addresses: – 14″ M4 MacBook Pro (16GB/512GB): $1449, $150 off MSRP – 14″ M4... Read more

Jobs Board

All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.