On Thu, 31 Aug 2006, in the Usenet newsgroup alt.computer.security, in article
<44f6d948$0$5107$>, Geoff wrote:
>I have spent time on & off trying to understand the abilitie(s) of Defrag
>and file wiping.
There certainly is a lot of material available on the web - keyword search
of "secure delete" should turn up tons of material.
>My question is simple, ( well at least in typing it) Does or does not
>defragging eventually cleanse a hard-drive to the extent that nothing
>could be recovered?
Simple question - simple answer. No.
Longer answer. You make it "impossible" to recover data from a disk (other
than by physical destruction) by overwriting the sensitive stuff. A single
overwrite may be enough to prevent the "Significant Other" from finding
the secret file of what you are going to buy them as a birthday gift. But
if the "Significant Other" really works for a "Three Letter Agency" and
is curious enough - that won't be enough. For some _basic_concepts_ on
the problem, the Peter Gutmann paper from 1996 gives a good explanation
(
http://www.cs.auckland.ac.nz/~pgut00...ecure_del.html) even though
it's quite dated now. Overwriting the same physical area of the disk that
held the data a sufficient number of times will make it difficult to perhaps
impossible to recover what was written _to_that_spot_in_the_past_ (but note
the qualifiers).
"perhaps impossible" because this is a mechanical process of positioning
the head over the place where the data was. If you drive a car over the
same tracks that you drove before (think driving in the snow as an
illustration), the chances of you _exactly_ lining up is quite low. You
can try repeating the attempt - with a car trying to obliterate a track,
perhaps doing this ten times may finally eliminate all traces of the
original track because some time, you'll miss to the left, sometimes to
the right, and so on. But what happens if you continually miss to the
right?
"what was written _to_that_spot_in_the_past_" refers to the fact that
modern hard drives can detect when the media is failing at one particular
spot (called a "bad block") and make a "best effort" copy of the data that
_was_ at that spot some place else, then mark that section of the disk as
being unusable. This is transparent to the operating system (never mind
to the user), and things are fine until the disk runs out of spare blocks
(at which time, the operating system gets informed, and may mark subsequent
blocks as bad) but not having spares, this reduces the available size of
the disk. (Disk manufacturers allocate a tiny percentage of the disk as
spares - you don't have access to them until this or that block gets swapped
in/out. This gives a consistent disk size, but allows for minor bad spots
in the manufacturing process.) The problem occurs when some of that
sensitive data you want to eliminate had been occupying a block that was
later determined to be faulty - and silently copied elsewhere. Even though
the disk says it can't access the old stuff on that bad block - IT'S STILL
THERE, and it's possible using low level techniques of disk access to read
some or all of the data.
>I have heard that if a drive is defragged often enough not even military
>software can rebuild or identify anything the hard-drive may have had
>on it.
You are playing with random chance here - and maybe not even random. The
defragmentation process puts data on the disk in consecutive blocks,
starting from the rim edge, and working inwards. Let's say your secret data
was written to disk after you installed the operating system but before you
installed the applications. The data might be located a third of the way in
on the disk. Then you added applications, which get written further in on
the platter (think how you normally write on a piece of paper - starting
at the top, then writing the next line, then the next, and so on). Finally
you create additional data - maybe saving pictures, or Usenet articles, I
have no idea what you are doing. The data is still being written one line
after another. Oh, wait - get rid of that picture!!! That's the same as
erasing a few lines on that piece of paper. Now, do a defrag, and what
happens. The stuff at the bottom gets moved up (overwriting the place that
held the picture). Did this have any effect with the stuff stored out near
the rim of the disk (the top of the sheet of paper)? No, the defrag has no
effect. Now, a bit of a stretch - when you write data, you write to a
complete line. If it takes a line and a half to hold things, the extra
half line is untouched. This is sometimes called 'slack space'. Anything
that _had_ been written there before is untouched. See the problem?
>I personally have a program called "super-shredder"., but if I feed it
>anything larger than a 'meg' it seems to balk.......
Not familiar with the program - can't say one way or the other. This
sounds like a b0rken program, and you may want to try something else.
>should I even bother with this?
What's on the disk? How much effort do you think someone is going to
make to recover the data that is/was there? The (US) DoD standard for
this is DOD 5220.22-M for the re-use/disposal of media containing data
classified as Confidential or Secret (basically, wipe the entire disk
multiple times with ones, zeros, and random data). If the disk had data
that was classified as Top Secret (or higher), the required solution is
degaussing, followed by the total physical destruction (melting, or
dissolving). Now if you have government classified data - you should
be talking to them and doing EXACTLY what they require. Is this data
relating to your violation of federal/state/provincial laws? I'd strongly
recommend physical destruction. Local laws, love letters from some one
other than the "Significant Other"? Wipe the entire disk with one of
dozens of available programs, and reinstall. Are you getting ready to
sell/give-away the disk/computer? Wipe the disk - reinstalling is optional.
Worrying about mommy or the "Significant Other" finding something, but
their computer skill levels are not even as good as yours? A deletion,
followed by a defrag might be enough. One last thought - how much would
it cost to replace the drive? A day or two worth of labor? Destroy the
drive, and replace it with something bigger. Take the old disk apart (a
screwdriver - maybe a hammer and chisel) and take the platters out. They
could be a ceramic, or aluminum disk, coated with a thin magnetic material.
A hammer or some shears will prevent most people from ever getting data off
the platter - or if your fire/air-quality regulations permit, melt it to
slag using a gas torch. Problem solved - no?
Old guy