8 ms·
Overwriting Hard Drive Data: The Great Wiping Controversy (2008) [pdf]
- wyldfire 9y agoTL;DR dd if=/dev/zero of=/dev/sdX See also [1] for the non-scientific claim backed-by-bounty. > It is unlikely that an individual write will be a digital +1.00000 (1). Rather - there is a set range, a normative confidence interval that the bit will be in [15]. What this means is that there is generally a 95% likelihood that the +1 will exist in the range of (0.95, 1.05) there is then a 99% likelihood that it will exist in the range (0.90, 1.10) for instance. This leaves a negligible probability (1 bit in every 100,000 billion or so) that the actual potential will be less than 60% of the full +1 value. This error is the non-recoverable error rating for a drive using a single pass wipe It all comes down to -- what is your threat model? Dishonest craigslist scroungers or a well-armed state? The latter just may be able to recover things you'd be astounded of, but if it's easier for them to do it with Van Eck phreaking or a subpoena to the sites you mirror with, they'll just do that. Note that AFAICT this paper does not discuss NAND or phase-change memory or anything else. Today in 2017 the levels of indirection between you and your actual real NAND cell that you erased and programmed six months ago are significant. You might actually want to take a hammer to your SSD. [1] http://www.hostjury.com/blog/view/195/the-great-zero-challenge-remains-unaccepted http://www.hostjury.com/blog/view/195/the-great-zero-challen...
- rndmio 9y agoHard drives (magnetic) don't record binary ones and zeros in literal analogue representations, and especially with PRML as used in high capacity drives it's easy to see why recovering anything from even a single pass 0 overwrite is technically impossible.
- Neliquat 9y agoDigital is just a special case within analog.
- Simon_says 9y agoDo you have a reference for this? I'd enjoy reading further.
- Someone 9y ago"This leaves a negligible probability (1 bit in every 100,000 billion or so) that the actual potential will be less than 60% of the full +1 value. This error is the non-recoverable error rating for a drive using a single pass wipe" 100,000 billion bits is 100 terabit, or 12.5 terabyte. So, there will be, statistically, a single zero bit on a 12 terabyte disk. Worse, AFAIK, modern disks use error-correcting codes to get the insane bit densities we find normal nowadays. That means you likely will get a single bit failure in a written zero that then gets corrected back to a zero. There is a much larger risk, though: when physical sectors fail, modern disks will map spare logical sectors in their place. Specialized tools likely will be able to recover data from sectors mapped as 'bad'.
- montzark 9y agoJust wondering, why zeroes not /dev/urandom for example?
- cryptoz 9y agoBecause you'd be leaving behind traces of the overwrite, depending on the security of the random number generator. 0s leaves behind no patterns.
- tdurden 9y agoAren't all 0's a more obvious pattern indicating an overwrite?
- sliken 9y agoLinux /dev/random is pretty good. For anyone trying to reverse engineer the previous state of the disk it's much easier to substract out all zeros as opposed to a pseudo random sequence. Especially if the attacker doesn't have the pseudo random number generators full state. Also keep in mind that with SSDs that have significant smarts for compression, trim, deduplication, benchmark cheating, minimizing write amplification, and related. Writing a pseudorandom sequence is more likely to actually overwrite almost 100% of the disk. Sure bad sectors that are remapped won't be, but the rest should. Even better if you just use full disk encryption and throw away the key. Also the "secure erase" functionality is a good start, but if you aren't the trusting type it's best to wipe then overwrite.
- w8rbt 9y agoZeros are far more efficient and much faster to generate. Not sure why some have downvoted me. It's easy to verify. time dd if=/dev/zero of=file1.bin bs=1M count=600 600+0 records in 600+0 records out 629145600 bytes (629 MB) copied, 1.57948 s, 398 MB/s real 0m1.651s user 0m0.004s sys 0m0.688s time dd if=/dev/urandom of=file2.bin bs=1M count=600 600+0 records in 600+0 records out 629145600 bytes (629 MB) copied, 37.7828 s, 16.7 MB/s real 0m37.786s user 0m0.004s sys 0m37.784s
- 9y ago
- teddyh 9y agoIf you have data that need to be wiped, it’s already too late. Somebody could get to that hard drive before you wiped it, and then it’s all over; despite the overwhelming probability that your laptop (or server) will just be reinstalled and resold, or maybe stripped for parts, you could never be sure that the data is not being read, and so you would have to consider the data as potentially leaked, and change all your passwords regardless. The solution is to use full-disk encryption with the passphrase not present anywhere on that hardware. In that case, if someone gets to the hardware but powers it off when they do it, you can be sure that the data is safe.
- AstralStorm 9y agoAfter wiping memory and CPU caches. Otherwise you might get to wait hours to be sure.
- DenisM 9y agoWhen I need to erase data from an d drive I drive a nail through the drive a few times. Glass plates shatter really well. The data is still recoverable I'm sure, but the amount of resources it takes would be prohibitive to pretty much anyone unless the fate of the world hangs in the balance. For new drives I started using full-disk encryption. And the hammer.
- deleted 9y ago[deleted]
- daine 9y agoTL;DR The authors egregiously diminish legitimate attack vectors that require only the recovery of a priori known data. The authors dismiss the security value of wiping a hard disk, based on their thesis that weakly-deleted data cannot be recovered without a priori knowledge of that data's content. They argue the requirement of a priori knowledge of the data to recover negates the security risk of said recovery; this--they argue--reduces the threat model to more of an academic exercise. What the authors totally neglect, however, is the security risk of confirmation: the risk that an attacker might confirm that the target hard disk did, indeed, store certain data, where the content of that data is known a priori. Example: Say I have obtained a trove of private incriminating documents associated with some anonymous person, X. I suspect, but don't know, that X is my target, Bob. I would like to prove that Bob is X, and X is Bob, so that I can definitively pin X's crimes on Bob. Say X uses some electronic signature to authenticate his original work as his own. If Bob is X, I should expect Bob's hard disks contain a statistically aberrant abundance of copies of X's signature. Thus, to pin X's crimes on Bob, if Bob is indeed X, it is sufficient to recover data from Bob's hard disk--data of which I have complete knowledge a priori--namely, X's digital signature. While I take no issue with the facts, I find the author's conclusions reckless. It seems in their haste to "bust the myth," they extend their result beyond its valid range of application. What could have been a useful clarification on the low risk of _unknown_ data recovery has become a wild and dangerous generalization, 'debunking' best practices.