Mac fail: SSD security
Summary: Apple consumes 50% of the world's NAND flash - and their flagship OS can't securely delete SSD data. Isn't total control of the hardware and software supposed to improve integration?
SSDs, Mac OS X and data security don't mix. Not only does the standard file delete not delete files - which savvy readers already know, but even the Mac's "Secure Erase Trash" function leaves 2/3rds of a file recoverable.
"Fake Erase" perhaps?
The SSD problem Vendors have struggled to make flash SSDs look like disk drives even though the underlying media are very different. Hard drives associate a physical location with each logical block address (LBA). SSDs don't.
And that's the security problem.
Our secure file deletion tools assume that the data is stored in a set physical location. If the LBA is written to, the existing data at that LBA can be presumed to have been overwritten. (Bad block replacement is the big exception to that general rule.)
But on flash-based SSDs, the firmware that makes flash look like a disk - the flash translation layer (FTL) - is constantly changing the physical address of the data. When the OS issues an overwrite, the FTL overwrites only the most recent location the data - leaving older locations untouched.
The research This is a problem for all file systems, but according to a paper presented at FAST '11 last week, Mac OS 10.6 Secure Erase Trash command did an especially poor job.
The UC San Diego researchers, Michael Wei, Laura M. Grupp, Frederick E. Spada and Steven Swanson, ran 14 different file overwriting utilities 3 times on SSD and USB drives. They then disassembled the drives to electronically access the flash chips to see what data they could recover.
Here's the table of their results:
Oddly enough, Secure Erase Trash was much more effective on cheap USB drives than on SSDs - the reverse of most of the other overwriting techniques.
What about Windows? Windows does not offer a command equivalent to "Secure Empty Trash" so they aren't misleading users about their data security. Apple chooses to offer "Secure Empty Trash" in the Finder menu so they need to ensure it does what they say.
The Storage Bits take Apple consumes 50% of the world's NAND flash - and their flagship OS can't securely delete SSD data. Isn't total control of the hardware and software supposed to improve integration?
Who, exactly, is minding the store?
No doubt the Mac OS X file system team can hack the already much-hacked HFS+ to fix this problem. But how is it that no one on the engineering team caught this problem?
Surely some engineer - from Toshiba or Samsung, flash and flash controller vendors to Apple - or in the OS X group, raised the issue of security. If that didn't flag the problem, why didn't the OS team's regression testing find it?
HFS+ is long past due for retirement. It is time for Apple to get serious about how it's products handle customer data. As an SSD-based Mac owner I'm more than a little peeved at the company's cavalier attitude.
Note that Apple's other major OS - iOS - wasn't tested. But who can have a warm feeling about the iOS remote delete facility now?
Comments welcome, of course. I'll have more on the UCSD paper later this week, but if you can't wait here's a link to the pdf of Reliably Erasing Data From Flash-Based Solid State Drives. Update: I added the What about Windows? paragraph above in response to the 1st comment.
Kick off your day with ZDNet's daily email newsletter. It's the freshest tech news and opinion, served hot. Get it.

Talkback
Goodbye, Meester Bond
RE: Mac fail: SSD security
RE: Mac fail: SSD security
RE: Mac fail: SSD security
<a href="http://advanprotraining.co.uk/"><h1>Wordpress Training.</h1></a>
RE: Mac fail: SSD security
<a href="http://www.drstevenjwhitereviews.com/">Dr Steven J White Reviews</a>
<a href="http://www.drsharonpackerreviews.com/">Dr Sharon Packer Reviews</a>
<a href="http://www.drsydneycolemanreviews.com/">Dr Sydney Coleman Reviews</a>
RE: Mac fail: SSD security
This was a really great read. Please keep the insight, opinions, and info coming. Thanks! <H1><a href="http://www.my-baltimorechiropractor.com">Baltimore Chiropractor</a></H1>
RE: Mac fail: SSD security
What about xp or pro? dont you think they need some recommendation?
<a href="http://www.zygorguidesj.com">zygor guides</a>
RE: Mac fail: SSD security
Another great read. These articles and short informative pieces are always a delight to read and keep me coming back for more.
<strong><a href="http://www.my-lasvegaschiropractor.com">Las Vegas chiropractor</a></strong> <strong><a href="http://www.my-sanjosechiropractor.com">San Jose chiropractor</a></strong> <strong><a href="http://www.my-sacramentochiropractor.com">Sacramento chiropractor</a></strong> <strong><a href="http://www.my-sanfranciscochiropractor.com">San Francisco chiropractor</a></strong> <strong><a href="http://www.my-minneapolischiropractor.com">Minneapolis chiropractor</a></strong> <strong><a href="http://www.my-indianapolischiropractor.com">Indianapolis chiropractor</a></strong>
RE: Mac fail: SSD security
But SDelete was never tested on SSD this way
You can do multipass erase options using Disk Utility...
http://nvsl.ucsd.edu/sanitize/
OS X doesn't claim to perform a secure erase of SSDs
sdelete is not part of Windows.
If you want to test the effectiveness of sdelete feel free to do so. However any results would be indicative of that utility only. It would have no bearing on Windows.
His point is the Secure Delete option in OS X doesn't do what...
RE: Mac fail: SSD security
All current versions of Windows claim to perform a multipass secure erase of drive free space (i.e.- after you empty the trash) from the command line. The command is
CIPHER /W:C:\
(replace C:\ with any folder on the drive whose free space you want multi-wiped).
RE: Mac fail: SSD security
RE: Mac fail: SSD security
Valid point! Here at <strong><a ref="http://www.counsellinginperth.com.au/">couple counsellor</a></strong> we can't afford any leaks or errors!
Really? You Had to Chose This One?
Wow, the false urgency of the article, and the conspiratorial tone of the writer, makes it hard for me to take seriously. Sure, Mac OS X has offered a Secure Empty Trash option for quite some time giving it one more advantage over MS Windows.
But the fact that such a feature no longer works on todays SSDs simply makes Macs equivalent to Windows PCs. How is that a disadvantage? Granted, the authors' point is that the OS implies that such functionality is still available. But it hardly warrants the "Oh my God! They're lying to their customers!" conspiratorial tone. I would expect this of a Windows fanboy, not a seasoned tech journalist.
There are plenty of other areas to criticize Apple on. Really? This was the one you chose? This just sounds petty.
RE: Mac fail: SSD security
RE: Mac fail: SSD security
Part of what he's exposing is how HFS+'s filesystem driver does not handle SSDs correctly for secure deletion.