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

Whitethorn Games combines two completely...
If you have ever gone fishing then you know that it is a lesson in patience, sitting around waiting for a bite that may never come. Well, that's because you have been doing it wrong, since as Whitehorn Games now demonstrates in new release Skate... | Read more »
Call of Duty Warzone is a Waiting Simula...
It's always fun when a splashy multiplayer game comes to mobile because they are few and far between, so I was excited to see the notification about Call of Duty: Warzone Mobile (finally) launching last week and wanted to try it out. As someone who... | Read more »
Albion Online introduces some massive ne...
Sandbox Interactive has announced an upcoming update to its flagship MMORPG Albion Online, containing massive updates to its existing guild Vs guild systems. Someone clearly rewatched the Helms Deep battle in Lord of the Rings and spent the next... | Read more »
Chucklefish announces launch date of the...
Chucklefish, the indie London-based team we probably all know from developing Terraria or their stint publishing Stardew Valley, has revealed the mobile release date for roguelike deck-builder Wildfrost. Developed by Gaziter and Deadpan Games, the... | Read more »
Netmarble opens pre-registration for act...
It has been close to three years since Netmarble announced they would be adapting the smash series Solo Leveling into a video game, and at last, they have announced the opening of pre-orders for Solo Leveling: Arise. [Read more] | Read more »
PUBG Mobile celebrates sixth anniversary...
For the past six years, PUBG Mobile has been one of the most popular shooters you can play in the palm of your hand, and Krafton is celebrating this milestone and many years of ups by teaming up with hit music man JVKE to create a special song for... | Read more »
ASTRA: Knights of Veda refuse to pump th...
In perhaps the most recent example of being incredibly eager, ASTRA: Knights of Veda has dropped its second collaboration with South Korean boyband Seventeen, named so as it consists of exactly thirteen members and a video collaboration with Lee... | Read more »
Collect all your cats and caterpillars a...
If you are growing tired of trying to build a town with your phone by using it as a tiny, ineffectual shover then fear no longer, as Independent Arts Software has announced the upcoming release of Construction Simulator 4, from the critically... | Read more »
Backbone complete its lineup of 2nd Gene...
With all the ports of big AAA games that have been coming to mobile, it is becoming more convenient than ever to own a good controller, and to help with this Backbone has announced the completion of their 2nd generation product lineup with their... | Read more »
Zenless Zone Zero opens entries for its...
miHoYo, aka HoYoverse, has become such a big name in mobile gaming that it's hard to believe that arguably their flagship title, Genshin Impact, is only three and a half years old. Now, they continue the road to the next title in their world, with... | Read more »

Price Scanner via MacPrices.net

B&H has Apple’s 13-inch M2 MacBook Airs o...
B&H Photo has 13″ MacBook Airs with M2 CPUs and 256GB of storage in stock and on sale for up to $150 off Apple’s new MSRP, starting at only $849. Free 1-2 day delivery is available to most US... Read more
M2 Mac minis on sale for $100-$200 off MSRP,...
B&H Photo has Apple’s M2-powered Mac minis back in stock and on sale today for $100-$200 off MSRP. Free 1-2 day shipping is available for most US addresses: – Mac mini M2/256GB SSD: $499, save $... Read more
Mac Studios with M2 Max and M2 Ultra CPUs on...
B&H Photo has standard-configuration Mac Studios with Apple’s M2 Max & Ultra CPUs in stock today and on Easter sale for $200 off MSRP. Their prices are the lowest available for these models... Read more
Deal Alert! B&H Photo has Apple’s 14-inch...
B&H Photo has new Gray and Black 14″ M3, M3 Pro, and M3 Max MacBook Pros on sale for $200-$300 off MSRP, starting at only $1399. B&H offers free 1-2 day delivery to most US addresses: – 14″ 8... Read more
Department Of Justice Sets Sights On Apple In...
NEWS – The ball has finally dropped on the big Apple. The ball (metaphorically speaking) — an antitrust lawsuit filed in the U.S. on March 21 by the Department of Justice (DOJ) — came down following... Read more
New 13-inch M3 MacBook Air on sale for $999,...
Amazon has Apple’s new 13″ M3 MacBook Air on sale for $100 off MSRP for the first time, now just $999 shipped. Shipping is free: – 13″ MacBook Air (8GB RAM/256GB SSD/Space Gray): $999 $100 off MSRP... Read more
Amazon has Apple’s 9th-generation WiFi iPads...
Amazon has Apple’s 9th generation 10.2″ WiFi iPads on sale for $80-$100 off MSRP, starting only $249. Their prices are the lowest available for new iPads anywhere: – 10″ 64GB WiFi iPad (Space Gray or... Read more
Discounted 14-inch M3 MacBook Pros with 16GB...
Apple retailer Expercom has 14″ MacBook Pros with M3 CPUs and 16GB of standard memory discounted by up to $120 off Apple’s MSRP: – 14″ M3 MacBook Pro (16GB RAM/256GB SSD): $1691.06 $108 off MSRP – 14... Read more
Clearance 15-inch M2 MacBook Airs on sale for...
B&H Photo has Apple’s 15″ MacBook Airs with M2 CPUs (8GB RAM/256GB SSD) in stock today and on clearance sale for $999 in all four colors. Free 1-2 delivery is available to most US addresses.... Read more
Clearance 13-inch M1 MacBook Airs drop to onl...
B&H has Apple’s base 13″ M1 MacBook Air (Space Gray, Silver, & Gold) in stock and on clearance sale today for $300 off MSRP, only $699. Free 1-2 day shipping is available to most addresses in... Read more

Jobs Board

Medical Assistant - Surgical Oncology- *Apple...
Medical Assistant - Surgical Oncology- Apple Hill Location: WellSpan Medical Group, York, PA Schedule: Full Time Sign-On Bonus Eligible Remote/Hybrid Regular Apply Read more
Omnichannel Associate - *Apple* Blossom Mal...
Omnichannel Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Cashier - *Apple* Blossom Mall - JCPenney (...
Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Mall Read more
Operations Associate - *Apple* Blossom Mall...
Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Business Analyst | *Apple* Pay - Banco Popu...
Business Analyst | Apple PayApply now " Apply now + Apply Now + Start applying with LinkedIn Start + Please wait Date:Mar 19, 2024 Location: San Juan-Cupey, PR Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.