Slashdot Mirror


Why 'rm -R star' Isn't Enough

zdburke writes: "Short but interesting article in the New York Times (free reg req'd) about how difficult it is to cover your digital tracks because electronic documents are so well distributed -- on your lap top, on your workstation, on the server... Yes there are tools to thoroughly delete files on your computer, rather than just unlinking them when they're put in the trash, but it's the distributed nature of content these days that poses a special problem to the Ollie North's of the world."

149 of 396 comments (clear)

  1. Not a problem... by Sabalon · · Score: 5, Funny

    On my harddrive space challenged machine, usually the reason I delete something is to make room for something else. So, chances are if they want "super-secret-MS-secrets.txt", the sectors have already been overwritten by "bspears-nude.jpg"

    :)

    1. Re:Not a problem... by tkrabec · · Score: 2, Informative

      Depending on the level of "security" you are looking for overwriting a file is not good enough. With proper analysis files can be recovered when they have been over written several times. This is expensive and time consuming, but it can be done.

      -- Tim

      --
      TKrabec Pahh
    2. Re:Not a problem... by Anonymous Coward · · Score: 3, Interesting

      agreed. did you know, if you start with a blank disk, there is nothing there. If you write it to 10101010101... and then to 11111111..., you can tell which one used to have a one under it and which one had a zero. In fact, it's been postulated that if you had a very high-resolution scan of the media (not even anywhere near atomic level is necessary), you could piece together every read and write that had ever occured on it, together with the order, and possibly also (roughly) the timing. (Since the extent to which an area is magnetic fades over time.

      The answer, of course, remains not "several passes from dev/random" but rather, several swipes past a BFM.

    3. Re:Not a problem... by markh1967 · · Score: 3, Interesting

      If you're gonna destroy old media with sensitive data on it, make sure you thouroughly pulverize it

      I second this advise. I used to work for a defence contractor back in the 80's and had the job of ensuring disk security on damaged drives. This consisted of taking a chisel to the disk platters and removing all trace of oxide from them and then sending the oxide off to be incinerated on-site and the blank aluminium platters off-site for recycling. This was taken very seriously and techniques for extracting data from disks can only have improved enormously in the intervening 20 years.

      --
      Input error. Replace user and press any key to continue.
    4. Re:Not a problem... by Alsee · · Score: 4, Informative

      a large number of passes from /dev/random would in fact solve the problem.

      Nope. The longer data is on the disk the "wider" it gets. A large number of /dev/random writes will thoroughly scramble a "narrow" stripe. You would have to wait a long time between each pass - each wait would have to be about as long as the original data was on the disk. Even then you have to worry about the write head drifting off center and leaving traces of your data off to one side. Even a BFM (big magnet) leaves traces of the data.

      This is why the Govt requires that any disk that ever contained classified data must be INCINERATED.

      -

      --
      - - You can't take something off the Internet! That's like trying to take pee out of a swimming pool.
    5. Re:Not a problem... by Alsee · · Score: 2

      What about CD/RW? How much of a trace is left when that is zeroed out?

      No clue, but no one except a Government Agency is likely to try reading wiped data on ANY kind of storage. If you're up against a Government Agency, the basic assumption is that incineration is about the only option.

      -

      --
      - - You can't take something off the Internet! That's like trying to take pee out of a swimming pool.
  2. Mirrors by alsta · · Score: 4, Insightful

    If you're afraid that mirrors will copy your files, why don't you just overwrite the file with the same name, just some bogus data. That file will be mirrored again since it has a new date.

    Sometimes when a problem gets high tech, it's time for a low-tech approach.

    --
    Wealth is the product of man's capacity to think. -Ayn Rand
    1. Re:Mirrors by Fjord · · Score: 3, Informative

      That is a terrible example. Snopes has a good article explaining the problems with using pencils (the inhalation and electrical problems, as well as fire hazards in a pure oxygen environment made wood pencils problematic). It also explains that NASA never paid for the R&D, both Americans and Russians used graphite pencils in the beginning and both Americans and Russians switched to Fisher Space Pens. Also it gives the cost of 400 pens NASA initially bought: $2.95 each (granted that was in 1967 dollars).

      --
      -no broken link
    2. Re:Mirrors by SuiteSisterMary · · Score: 4, Interesting

      That's why you make it stated policy to delete ANYTHING AND EVERYTHING with 'youcannotseemeehahahahaha'. Then, it's not incriminating, it's standard practice. This is why companies have 'document retention' policies; if you don't, but you've destroyed documents that a court wants, you're in trouble. If you DO, and you've destroyed documents the court wants, too bad, you're following the published policies of your company. The corallary to that is, I believe, that you need to follow your policy religiously, or it's not a viable defense.

      --
      Vintage computer games and RPG books available. Email me if you're interested.
    3. Re:Mirrors by _DMan_ · · Score: 2, Informative

      why don't you just overwrite the file with the same name, just some bogus data

      This method does not ensure that any of your data is actually overwritten because the operating system is free to decide where on the disk it locates a file (or portions of it). Even though the filesystems references to that file name are destroyed by this method, the user has no guarantees that the data in the original file is overwritten. This is especially true in the case of remotely mounted filesystems which may not even implement the type of filesystem they appear to (e.g. Samba on Linux looks like it implements a MS filesystem).

      This is the major shortcoming in most of the "secure delete" tools I have looked at.

  3. addition by PHanT0 · · Score: 2, Informative

    I always like to add the "f" right after that "-R"...

    That good enough for ya? :>

    1. Re:addition by transient · · Score: 2, Informative

      I always like to add the "f" right after that "-R"...

      The only thing -f does is delete files without asking. That's good for getting rid of large numbers of files, but it won't overwrite any of the data.

      If you're using a BSD box (MacOS X included), you can use -P. On Linux you can use srm.

      --

      irb(main):001:0>
  4. Undeleting files on *nix by Sobrique · · Score: 5, Informative

    It's quite possible to recover files, because, much like PCs nothing actually gets 'deleted'. The inode is marked as 'available for reuse' and removed from the directory entry, but doesn't actually remove anything.
    Looking for an undelete? Take a look at the coroners toolkit. There's even instructions on how to recover files from a unix partition (any unix). It's one of those ones which you'd _really_ need to recover the data because it's hard work and a pain, but it is possible.
    I don't recall seeing and 'write with zeros' program for Unix. I guess there must be some out there, since at a guess it's fairly trivial. (would dding /dev/zero over a file just prior to erasing it work?)
    Of course, there's always disk analysis with an electron microscope, which I've always heard was possible but it's not one I've ever had substantiated.

    1. Re:Undeleting files on *nix by Sobrique · · Score: 4, Informative

      And for those who noticed, I can't type URLs, so here it is again :) http://www.porcupine.org/forensics/tct.html

    2. Re:Undeleting files on *nix by jelly69 · · Score: 2, Informative

      Please check your link. Should be coroners toolkit [www.porcupine.org]

      --
      |This space for rent|
    3. Re:Undeleting files on *nix by Anonymous Coward · · Score: 5, Informative

      I take it you haven't met shred

      NAME
      shred - delete a file securely, first overwriting it to
      hide its contents

      SYNOPSIS
      shred [OPTIONS] FILE [...]

    4. Re:Undeleting files on *nix by AnalogBoy · · Score: 2, Informative

      For Everyone's benefit, the link is The Coroner's Toolkit

    5. Re:Undeleting files on *nix by metlin · · Score: 3, Informative

      Why go that far? Even good old Norton Midnight Commander can do an undelete of the files on Linux.

      It had troubles with the 2.0.x series, where only the first few blocks could be recovered, but as of 2.1.x & upwards, it works like a charm on ext2.

      I'm sure there would be other utilities capable of this for other platforms. There was also this old program for Solaris (whose name I've forgotten) that'd do just what you'd said to restore deleted files.

    6. Re:Undeleting files on *nix by image · · Score: 4, Informative

      Try using BestCrypt from Jetico -- it works on Un*x and Windows. This is a great tool for creating a mountable encryted filesystem (just about every algorithm under the sun is supported, including 3DES and Blowfish).

      Also included (which is why this reply is relevant) is the bcwipe utility, which does Department of Defense recommended (5200.28-STD) deletion.

      It isn't "free-as-in-speech" but it does have a "free-as-in-beer" evaluation copy.

      Check out:

      http://freshmeat.net/projects/bestcrypt/

      and

      http://www.jetico.com/linux.html

    7. Re:Undeleting files on *nix by dunstan · · Score: 4, Funny

      This is the basis of my favourite party trick - booting a Linux system without a kernel. As LILO works pointing to a disc location (rather than a filetable entry), you can boot a system from a kernel which has been deleted as follows:

      1) Put /boot into its own disc partition (to stop normal filesystem activity reclaiming the disc blocks)
      2) Use lilo etc., to set the machine to boot off a kernel image
      3) rm the kernel file
      4) reboot the machine

      Because nothing in /boot has reclaimed the disc blocks, LILO will still be able to start loading at the the same data location, and will still find disc blocks which constitute a valid kernel. Voila, you've deleted your kernel, but still booted it.

      Obviously, Don't Try this out unless you know what you're doing - and even then try it with a spare kernel, not your only one.

      Dunstan

      --
      The last scintilla of doubt just rode out of town
    8. Re:Undeleting files on *nix by szomb · · Score: 2, Informative

      I don't recall seeing and 'write with zeros' program for Unix.

      RM(1) FreeBSD General Commands Manual RM(1)
      ...
      -P Overwrite regular files before deleting them. Files are
      overwritten three times, first with the byte pattern 0xff,
      then 0x00, and then 0xff again, before they are deleted.

      Hope this helps

      --
      Just because a few of us can read write and do a little math, doesn't mean we deserve to conquer the universe
  5. Wrong approach by Rostoff · · Score: 3, Interesting

    Don't try to cover your tracks, delete every little bit of info about you, that's waaay too much time and effort. Want you want to do is put sooo much crap out there, no one can tell the real info from the synthetic.
    Also, it's the internet. Make up shit. The only thing you really can't lie about is online purchases with a credit card (well...), anything else is open territory for your imagination!

    1. Re:Wrong approach by gnovos · · Score: 2

      If you fill your hard drive with crap, the incriminating stuff can still be found.

      What you are missing here is volume. If you really, really, REALLY fill your hard drive with crap, then you'll be safe. If you have one cleartext email detailing the route of your drug shipment and 485,966,282 emails detailing similar but fake shipments, then you will be far safer than if you had one single encrypted message.

      Encryption can be broken by brute force, and can be done by machine. Sifting through million of pieces of similar but different information trying to weed out the disinformation from the real information MUST be done by hand.

      Of course, the best idea would be to do both....

      --
      "Your superior intellect is no match for our puny weapons!"
  6. It's you that controls distribution... by Calle+Ballz · · Score: 5, Funny

    Say you have important information on your hard drive. You only want one other person to see that information so you put that information on a floppy disk then give it to that person. No one else can see this information. You then take a pencil and stab the magnetic film of the floppy about 30 - 40 times. You then take lighter fluid and douse the entire floppy and light it. Stomp on the ashes for extra measure. Since the data has been on your computer. You must first take your hard drive out. Expose it to a giant magnet, then shoot it with a 12 guage (twice). Take all the IC's out of your computer and smash them with a sledgehammer, then run over them with your truck. Burn those with lighter fluid too. Since your monitor most likely displayed that sensitive information, you must take it to a helicopter and drop it. Have the helicopter land on the debris for safe measure.

    Ensure that the other person gives your data to no one. Do a thorough background check on him and his closest 50 living relatives. After he is done processing the information; shoot him.

    No need to worry about any information getting anywhere.

    1. Re:It's you that controls distribution... by BlueWonder · · Score: 2, Insightful

      Remember the car that parked in front of your house while you copied the data to the floppy disk?

      In the car, someone intercepted the electromagnetic waves coming from your computer and reconstructed the data from them. He then made a million copies of the data and distributed them to hidden places all over the world.

    2. Re:It's you that controls distribution... by DavidBrown · · Score: 2

      Didn't I read this in Enron's employee policy manual?

      --
      144l. ph34r my 133t l3g4l 5k1lz!
    3. Re:It's you that controls distribution... by Nightpaw · · Score: 2

      Lighter fluid? Haven't you ever heard of thermite?

    4. Re:It's you that controls distribution... by Fjord · · Score: 2

      After he is done processing the information; shoot him

      I'm afriad that isn't enough. Analysis of the glia and neuron patterns will also reveal the information. You should also cut his head off and burn it with lighter fluid.

      --
      -no broken link
  7. Gotta get one of them thar modern computers by Sabalon · · Score: 4, Funny

    That is because modern computers organize information by using file-system directories that point to physical areas on a disk drive where the data resides. "Deleting" the information usually only breaks the link between the directory and the data so that the original storage space can be reused in the future.

    Gee...what a stride. Too bad we didn't have technology like this in the 80's. A company like Norton could have made a killing making tools to relink the file table with these sectors, almost as if they were UNDELETEing the file.

    I just love expressions like "modern computers" used in this way, when the reporter meant to say "Well...this is new to me, must be new to the computer too." Of course, we all know that it is the computer that has this behaviour - not the OS sitting on top of it :)

    IIRC, DOS used to just replace the first character name of a file with a ? in the FAT when you deleted it, so to undelete it, you just supplied a letter to "rename" the file as.

    1. Re:Gotta get one of them thar modern computers by stripes · · Score: 2
      IIRC, DOS used to just replace the first character name of a file with a ? in the FAT when you deleted it, so to undelete it, you just supplied a letter to "rename" the file as.

      Er, it also marked the blocks free in the FAT. Putting the first char back lets you read the file, but it won't prevent random blocks from getting overwritten with other data!

    2. Re:Gotta get one of them thar modern computers by Sabalon · · Score: 2

      Thanks for the correction - I knew something didn't sound right - yeah...I have 10M of file on this 20M disk and it says it's full :)

      I do remember the "don't even breath until I run undelete" kinda panics. Sadly, not even undelete will save you when you accidentally open a file for w instead of a or r mode :(

    3. Re:Gotta get one of them thar modern computers by stripes · · Score: 2
      I do remember the "don't even breath until I run undelete" kinda panics. Sadly, not even undelete will save you when you accidentally open a file for w instead of a or r mode :(

      Yeah, but FFS-snapshots will (if you make them frequently enough). I expect Linux will get a similar thing sooner or later...

      Hmmm, that reminds me, another delete problem is snapshots on things like the NetApp NFS toaster, and the BSD FFS-snapshot stuff. Not only do you have to wait for the snapshot to go away before a delete happens, you can't overwrite the file in any easy way since the modifyed blocks are saved off.

      The other peoblem with snapshots is if you notice a bad permision and fix it people can still look in the snapshots for quite some time and find the stuff! That could be a real problem for Plan 9 style systems that do one snapshot a day and keep them forever...

    4. Re:Gotta get one of them thar modern computers by stripes · · Score: 2
      Linux's LVM has had snapshotting for about two years now. AFAIK that's longer than -CURRENT has had the capability

      Good, I barely knew LVM existed :-) FYI, while current has not had snapshots for more then about a yearish Bostic has had it for a very long time, maybe four years, but no support for forcing I/O (or at least writes) to wait until a checkpoint was made, or to allow one to drain. The difference between research systems and useful for life systems.

      Not that that was really helpful to anyone other then Bostic :-)

  8. Does anyone really have a problem with this? by Uttles · · Score: 3, Interesting

    I personally don't keep anything around on my computer that has any incriminating information. If I did, I'd be damn sure that it's not in a shared space that gets copied onto any server or anything like that. I think any computer savy person already knows that you just don't keep digital records of things you don't want people to find out, and you definitely don't keep them anywhere there's a remote possibility the data could be duplicated. This will probably only jump up and bite the illiterate "business major" types, and I really don't have a problem with that.

    --

    ~ now you know
    1. Re:Does anyone really have a problem with this? by stripes · · Score: 3, Interesting
      I think any computer savy person already knows that you just don't keep digital records of things you don't want people to find out, and you definitely don't keep them anywhere there's a remote possibility the data could be duplicated.

      Criminal masterminds are pretty few and far between. Mostly criminals are kinda dim. Plus if people have been caught cheating on their wives/husbands (not illegal as far as I know, but not a stunningly good idea) by looking at their supermarket club records (catching them buying wine or condoms are the wrong shopping market, that were not used with their spouse)...well, I can imagine you could look at their palm desktop app and find a record for their hot date!

    2. Re:Does anyone really have a problem with this? by peripatetic_bum · · Score: 4, Informative

      Actually, the idea that just because you have nothing to hide means that you shouldnt have the ability to hide something is an interesting fallacy.

      Foucalt was a 60's "post-modern" French philospher who studied how systems of control are used to keep a Power in place. One of his most interesting insights was the more you can observe something the more the you can label it, quantify it, and more important the easier it becomes to define a Norm. Once you have a defined a norm, you know have the means to control the subject you were initally just merely observing.

      I think this is a case of being able to keep something from observation, ie keep it away from ouside powers

      anyway, thanks

      --

      Sigs are dangerous coy things

    3. Re:Does anyone really have a problem with this? by SuiteSisterMary · · Score: 2

      Can you suggest any good Foucalt books? Preferably starting with a 'primer' or 'introduction' sorta thingy?

      --
      Vintage computer games and RPG books available. Email me if you're interested.
    4. Re:Does anyone really have a problem with this? by NMerriam · · Score: 2

      I was just trying to point out that anyone with a basic knowlege of computers knows not to have any private information sitting out on servers

      From my experience, even intermediate computer users are still pretty unclear on the notion of where exactly their data resides. The folks at my office, for example, are perfectly productive computer users with all the tools they need to get their jobs done and download MP3s and such, but at least half of them don't realize their personal directories are really space on a server (so that they get backed up every night), even though I've explained it several times.

      Heck, there are plenty of professional web development people I've run across who aren't real clear on the file location thing, they just know that they check in and check out files and something happens...

      --
      Recursive: Adj. See Recursive.
    5. Re:Does anyone really have a problem with this? by Ayende+Rahien · · Score: 2

      It's actually rare for a smart person to get caught.

      The smart guys know enough to cover their tracks and not to publish their evil plans on the internet.
      It's the stupid ones that get caught, pay a visit to any prison and you'll see what is by far the dominating population.

      --

      --
      Two witches watched two watches.
      Which witch watched which watch?
    6. Re:Does anyone really have a problem with this? by stripes · · Score: 2
      It's actually rare for a smart person to get caught.

      I'm sure the uncought people tend to be smarter, but I'm not sure there is enough uncought criminals to assert that it's rare for the smart people to not get cought.

      At least if you stick to real crimes, not victomless ones.

  9. PGP by iGawyn · · Score: 5, Informative

    If you are concerned enough about your data to want to permanently delete it, or at least keep your tracks covered, you'll use PGP and either wipe your freespace multiple times to completely obscure data, and/or keep your important files encrypted.

    Although encryption is, in theory, breakable, the resources to do so don't exist (unless the NSA has some quantum computers squirreled away somewhere), your files will be safe.

    In short, if you want to keep files private, use PGP, and use it wisely. If you don't make more of an attempt, other than "well, if I tell Windows to delete it, it's gone", to keep files hidden/gone for good, you deserve to have your data recovered.

    Gawyn

    1. Re:PGP by arkanes · · Score: 2

      Seems to me that if an encrypted file is secure, an encrypted file unlinked and then over-written repeatedly with random data and nulls is MORE secure.

    2. Re:PGP by markmoss · · Score: 2

      Problem is, in most cases there was an unencrypted file before the encrypted file was created. I don't see how you could write an encryption program that didn't store the plaintext first. So you "deleted" the temporary plaintext file -- but all that means is that it marked the filename as deleted in the directory and the space as available for re-use. Until the space actually is re-used, it takes just a few minutes to find the "deleted" file with the proper utilities.

      Worse, you may well have multiple copies of the plaintext on your drive, because every time you open that encrypted file, a decrypted temporary file must be created. (And if you never open it, why are you keeping it?)

      The solution of course is to use a program that physically overwrites the data. Do that once, and you are safe as far as someone sniffing with Norton Utilities is concerned. The data could still be recovered by electron microscope or something, but how many of us really have secrets worth (1) physically removing the drive, (2) taking it apart, and (3) paying some lab 5 or 6 figures for the electron-microscope work?

    3. Re:PGP by sunking2 · · Score: 3, Insightful

      You are safe until they start taking a hammer to your toes and fingers. Or cut off and stuff your own ear in your mouth. Or put a gun to your mothers head. While you may be somewhat protected from the government using such tactics, what about if what you had on your computer in someway incriminated the mob, or monsanto, or someone else (ie, you're a reporter or something).

      While its probably a silly movie, its kind of like in the soon to be released Nicholas Cage movie Windtalkers. For those not familiar, in WW2 the US used Navajo Indians to communicate because the Japaneese would never be able to figure out hte language. Nicholas Cage is a marine with orders to protect one of them. He also has orders to kill him rather than be captured. Your encryption is only as safe as your key and through drugs or violence i'm pretty certain just about any key can be extracted from someone.

    4. Re:PGP by arkanes · · Score: 2

      Well, theres a potential problem with swap space. but that aside (and I'm not sure if it's surmountable), the way to encrypt a large file(to big to store in ram) would be to overwrite the plaintext file as it's encrypted. This would make the process very slow (encrypt byte, zero out existing byte, write encrypted byte, repeat), but should work as well as anything does.

  10. That's why I own by hrieke · · Score: 3, Interesting

    A big 'old electromagnet.
    Degauss the disk and it's gone for good.
    Accually, does anyone else remember the movie Blue Thunder?
    The video tape jackets had electromagnets build into them, and thus could delete any tape that the bad guys wanted.[1]

    I wonder when IBM or someone will build a HD with a self delete 'fail safe' system. When the drive powers down without a password, wipe.

    [1] There is some ironny here somewhere folks. Just can't think of a witty remark.

    --
    III.IIVIVIXIIVIVIIIVVIIIIXVIIIXIIIIIIIIVIIIIVVIIIV IIVIIIIIIVIII...
    1. Re:That's why I own by QuasiRob · · Score: 2, Funny

      The irony is in the magnety

      --
      If you try to fail and succeed, which have you done?
    2. Re:That's why I own by stripes · · Score: 4, Funny
      I wonder when IBM or someone will build a HD with a self delete 'fail safe' system. When the drive powers down without a password, wipe.

      They have, the 75GXP.

    3. Re:That's why I own by Wansu · · Score: 3, Informative

      A big 'old electromagnet.
      Degauss the disk and it's gone for good


      Could you describe this big 'old electromagnet?

      I've tried this with speaker magnets and bulk tape erasers like Radio Shack sells and they didn't erase floppies, zip disks or hard drives. In fact, it didn't seem to do squat to them. If you have a electromagnet that will, I'd like to know how it's made.

      --
      Wansu, th' chinese sailor
    4. Re:That's why I own by hrieke · · Score: 2

      Easy enough. Took a large spool of copper wire and spun my own elector magnet.
      Radio Shack does sell some nice ones as well, as does Black Box.
      The big downside to this method is that when you wipe the disk in this fashion, it is usuless. The tracks that the heads follow are wiped as well.

      --
      III.IIVIVIXIIVIVIIIVVIIIIXVIIIXIIIIIIIIVIIIIVVIIIV IIVIIIIIIVIII...
  11. Electron Microscope by GigsVT · · Score: 3, Interesting

    It is possible to take a disk apart and use an electron microscope to read information from the individual magnetic spots on the surface of a disk that may have been intentionally erased, Mr. Patzakis said.

    I monitor the forensics list on securityfocus, and there was discussion that this might be mostly a myth.

    --
    I've had enough abrasive sigs. Kittens are cute and fuzzy.
    1. Re:Electron Microscope by Calle+Ballz · · Score: 3, Informative

      for the most part, you don't even need to take the hard drive apart to do this. I have seen and even once had the oppurtunity to use a forensic computer that had the ability to scan through the hard drive, and determine just about anything that had been deleted, wiped, or over written. It has the hard drive read the magnetic echo left on each sector. The machine is mostly used as evidence against kiddie porn fuckers to prosecute them. I didn't really believe it until I see it... so anything I don't want seen... I shoot it with my 12 guage (repeatedly). Seriously.

    2. Re:Electron Microscope by SuiteSisterMary · · Score: 2

      Yup. This is why you do things like melt the bugger down to slag, subject it to an acid bath, blah blah blah.

      --
      Vintage computer games and RPG books available. Email me if you're interested.
    3. Re:Electron Microscope by WNight · · Score: 4, Interesting

      Well, it appears to be somewhat true.

      First, it's difficult. It involves removing the platters from the drive and mounting them in a machine designed to read from that platter density.

      Then, the machine can read from 0 to N generations of older data. This is dependent on the quality of the medium (I guess, better drives are less secure in this fashion) and the repeatability of the data used for overwrites.

      If you overwrite something with all zeros (or ones), it's almost guaranteed to still be there later because all you did was weaken (strengthen) the signal, the variation between two signals with the same current value represents the original value.

      This is why the idea is many secure overwrites. Perhaps all zeros once or twice, but interspersed with "secure" random noise. As soon as they lose track of layer N, they can't get N+1.

      However, the task usually doesn't depend on getting the contents of the whole disk back, usually they can still read the meta data and know what to concentrate on (and if they can't, they know where the meta data sits, so they concentrate on that) and then they go after certain files likely to be the most useful.

      Most common "secure delete" utils use low-grade PRNGs and non-random seeds. If you can figure out the output of these and then deduce the seed, you can figure out the data used for any portion of the overwrite and from that, have a pretty good chance of recovering the data.

      Now, this is what I've heard, from people in the field, so don't take it as gospel. The one thing they all agreed upon though is that this level of analysis is hideously expensive. Not $500 / hour like "normal" data recovery, more like $500k up front and then $5k / hour... It involves cryptanalysis to crack the "random" overwrites and a host of other professionals. It also wouldn't be used to bust a kiddy pornographer (is that a kid who makes porn, or ...) or the logs of a mob boss. It'd be used in espionage type issues, where there's more than money on the line.

      It's almost always destructive analysis too; they destroy the media getting the data and they don't get 100% so they can't put it on a new drive and put it back in the computer. If this happens you're gonna know it, at best they'd substitute a different drive to make it look like yours crashed. (Maybe that's why so many potential spies were sold the IBM 75GXP series drives - plausible crashes... :)

  12. On the opposite side on the coin by Nailer · · Score: 5, Informative

    Yes there are tools to thoroughly delete files on your computer, rather than just unlinking them when they're put in the trash, but it's the distributed nature of content these days that poses a special problem to the Ollie North's of the world.

    Well, I don't think any OS has ever been short of undeletion tools - in unix, one can grep the inodes on a disk for a particular known string of a file and recover it fron a known template. Tools like gpart (a partition guesser) also easily recover those vital 512 bytes of your hard disk.

    Where Unix has been lacking, behind most other systems, is the opposite - a good, reliable, trashcan. It might be interesting to note that there's now a reliable trashcan for Linux, BSD and other glibc systems th simply preloads and wraps unlink, `move and a couple of other system calls.

    Since glibc is a part of the Linux Standard base, it works along with every LSB standard app. Even better, it doesn't matter whether you delete the file from KDE, GNOME, shittyunixtoolkitforhellcirca1980something or a terminal.

    Anyway, check out Libtrash. And if you're a GNOME or KDE hacker, I'll give you a big hug if you use this as the default trashcan or your next release. :D

    1. Re:On the opposite side on the coin by markmoss · · Score: 2

      Well, I don't think any OS has ever been short of undeletion tools DOS 3.3 and earlier? Undelete was actually ridiculously simple -- all del did was to change the first letter of the filename in the directory to an illegal character ("?") and mark the space as free -- so eventually there were third party commercial and even shareware utilities, but Microsoft didn't release an undelete utility with the OS until at least v. 4.0.

      (This wasn't the only obvious and useful utility that was missing although it would only take someone who knew their way around the DOS source a few hours to write it. I have to figure that MS programmers either didn't use DOS much, or else didn't release the tools they used themselves when working in it.)

  13. electron microscopes, etc. by Alien54 · · Score: 2
    As in the article:
    It is possible to take a disk apart and use an electron microscope to read information from the individual magnetic spots on the surface of a disk that may have been intentionally erased, Mr. Patzakis said. Originally a tool of the intelligence world, this technique -- which is costly -- has been used successfully in big legal cases.
    So simply enough, legal cases can force the use of that kind of technique.

    I can recall the nervousness of some folks dropping off their computer at a repair shop, because the machine had failed before they had a chance to destroy their pron collection and they had slightly exotic tastes. Things like that are always usefule to a legal team.

    --
    "It is a greater offense to steal men's labor, than their clothes"
    1. Re:electron microscopes, etc. by epsalon · · Score: 2

      If I ever send in my PC for repair, I always take the HDs out. I keep way too much private info on my PC (passwords, keys, personal data, etc.) that I would never just grant a stranger (no matter how trustworthy) any access to my data.

  14. Link for non-registered users by El+Linuxero · · Score: 2, Informative
    --
    --El Linuxero
  15. Syncronize with a file encrypted version by taliver · · Score: 2, Interesting

    Syncronize all of your files with a version encrypted with a randomly generated key. Not instant, but they all become effectively "erased". (Unless your using some type of versioning system)

    --

    I demand a million helicopters and a DOLLAR!

  16. Easy by Anonymous Coward · · Score: 2, Funny

    cat /dev/urandom > /dev/hda1

    repeat until satisfied

    1. Re:Easy by sstammer · · Score: 2

      Or just make repeated copies of a large file that isn't private. This is even simple under Windoze - just create a DOS batch file to make the multiple copies.

    2. Re:Easy by laserjet · · Score: 2

      I think it would be easier under unix. you could write a much better script that would do more. DOS batch files are pieces of shit compared to a decent scripting language.

      --
      Moon Macrosystems. Sun's biggest competitor.
  17. rm -RP * on *BSD systems by redelm · · Score: 4, Informative

    Of course `rm -R *` isn't enough -- it just unlinks files, but doesn't delete datablocks. To delete datablocks, try the -P option which overwrites the file data before unlinking. Unfortunately, this option is not available on GNU `rm` which is used on most Linux systems.

    1. Re:rm -RP * on *BSD systems by smnolde · · Score: 2

      This interesting to learn. Good thing I run FreeBSD.

  18. of course its not enough by cr@ckwhore · · Score: 2, Funny

    Of course 'rm -R *' isn't enough...

    ... you need '-f'!

    Yeah, thats better.

    --
    Skiers and Riders -- http://www.snowjournal.com
  19. Nitpicking by jawtheshark · · Score: 2, Informative
    You shoudn't call it "Norton Midnight Commander". There is a "Norton Commander" (old DOS proggy) and there is " GNU Midnight Commander"" which you could call the Linux clone.

    Norton has nothing to do with Midnight Commander.

    --
    Ahhh...the great dumpster continuum. Many a free computer will be found there. -- sowth (748135)
  20. Answer was in earlier /. story by sacremon · · Score: 2, Funny

    Exploding chips. Just store the information on EEPROMs made from this material. You want to erase it? Just have it explode!

    --
    If you can't beat them, embrace and extend them.
  21. PGP wipe does a very poor job. (See this link) by SomethingOrOther · · Score: 5, Interesting

    PGP is a brillient tool for encryption (esp. e-mail) and PGP disk or Scramdisk are great for secure archiving on windoze machines. However the PGP wipe isn't very good. This link explains why and gives good alterantives for windoze users.

    Linux users already have encrypted filesystems and secure file wipeing as standard in all(?) common distro's. (I know that SuSE even lets you overwite the wiped files with zeros to hide its very existance)

    --
    Anyone quoted by a reporter knows how little they understand
    Don't believe what you read is the truth.
  22. Use shred Instead by exor · · Score: 2, Informative

    shred -f *.*
    It kill DATA DEAD

    1. Re:Use shred Instead by whovian · · Score: 5, Informative

      The man page for shred says

      CAUTION: Note that shred relies on a very important assumption: that the filesystem
      overwrites data in place. This is the traditional way to do things, but many mod
      ern filesystem designs do not satisfy this assumption. The following are examples
      of filesystems on which shred is not effective:

      * log-structured or journaled filesystems, such as those supplied with

      AIX and Solaris (and JFS, ReiserFS, XFS, etc.)

      Using shred on ext3 does not seem to be a good idea. I use srm instead. srm overwrites the data 30+ different times using bit patterns and random patterns. The high number of overwrites is supposed not only to allow for slight deviations in alignment betweeen the drive heads and track on the platter, but also meets some very high (you might say "federal") standards, short of (or in some cases, followed by) incinerating the disk.

      --
      To-do List: Receive telemarketing call during a tornado warning. Check.
    2. Re:Use shred Instead by Tim+C · · Score: 3, Informative
      Unless you use a journaling filesystem. From the man page:


      CAUTION: Note that shred relies on a very important
      assumption: that the filesystem overwrites data in place.
      This is the traditional way to do things, but many modern
      filesystem designs do not satisfy this assumption. The
      following are examples of filesystems on which shred is
      not effective:

      * log-structured or journaled filesystems, such as those
      supplied with AIX and Solaris (and JFS, ReiserFS, XFS, etc.)


      There are a few other caveats, but that's the important one for me, given that I upgraded my machine at the weekend and only yesterday reinstalled Mandrake 8.1 with reiserfs for both my / and /home partitions...

      Cheers,

      Tim
    3. Re:Use shred Instead by brer_rabbit · · Score: 2

      and if you really want to delete all files, drop the old MSDOS pattern of *.*. Just use *. The *.* pattern requires a dot to be in the filename.

  23. GNU shred by suso · · Score: 3, Informative

    There is a program called shred that comes with most distributions nowadays that overwrites the files with different patterns before unlinking them. There was something about this on Slashdot a while ago. This program seems to use a simular algorithm.

  24. I was hired to recover files once by 4444444 · · Score: 5, Funny

    I was hired to recover files from a hard drive by a woman who was getting a divorce. Her husband had been cheeting on her. The moron had norton systemworks installed on his system and never defraged his drive. I was able to recover over a years worth of incriminating emails with nortons undelete. Boy was that easy money

    --

    http://Lenny.com
    4 great justice!
    1. Re:I was hired to recover files once by McChump · · Score: 2, Interesting

      This stuff is usuable in court generally not as direct evidence, but as impeachment evidence. Impeachment evidence isn't subject to the same strictures of authentication and proof since it's only used to confront a witness who may not be telling the whole truth, and cannot be used to directly establish that what the evidence shows *is* true.

      Did that make sense, or was I babbling too much?

      --
      I'd be a Libertarian, if they weren't all a bunch of tax-dodging professional whiners. - Berke Breathed
  25. Easy Solution... by telstar · · Score: 5, Funny

    If you have problems destroying documents, you could always ask Arthur Anderson or Enron.

    1. Re:Easy Solution... by Zeinfeld · · Score: 2
      What people don't realize is that it is common practice to destroy everything associated with an audit except for the final workpapers. That is unless, of course, they have been already under subpoena.

      That particular practice is likely to undergo revision in the near future as the Enron scandal progresses. Andersson is in deep doo-doo after sending out a memo to shred all files related to Enron.

      The problem in the Enron case is that prosecutors may decide that the memo was sent out in anticipation of a subpoena. That would be obstruction of justice.

      I suspect that the response from Congress will be to require all company auditors to archive all information related to an audit for at least 7 years (the normal span for tax issues).

      In the short term it is very likely that most of the files will actually be recovered. I am surprised that so few people missed out on the significance of the original article. The point is that you can delete the files in one place and still have copies cached in email and on backup tapes. That is how Ollie North got caught.

      The best method of ensuring that material is deleted is to use a cryptographic file system which uses a per-file session key. Using that mechanism a file is irretrievably deleted once the per-file session key is overwritten.

      If the cryptographic file system is properly configured it will be set to automatically overwrite the relevant disk blocks as part of the delete process. Preferably a multiple overwrite is used (all zeros, all ones, 1010, 0101) to make sure that the data cannot be read using an electron microscope, looking at the edges to the track boundary.

      --
      Looking for an Information Security student project suggestion?
      Try http://dotcrimeManifesto.com/
    2. Re:Easy Solution... by RazzleFrog · · Score: 2

      It will never happen. The type of stuff they are destroying are superceded workpapers, review notes from managers, etc. If Congress says that can't destroy them then they would be stockpiling so much crap as to make the storage costs twice the costs of the audit itself (especially in New York where storage is at a premium). By law, all they are required to keep are the minimum workpapers required by Generally Accepted Auditing Standards (GAAS). Those workpapers, theoretically, are there to completly support the findings of the audit. No other documents should be necessary.

      As for, destroying things in anticipation of a subpoena is so ridiculous that I had people laughing here. What's the purpose of a subpoena if you are supposed to comply before it is even issued? That's like saying I better pull over now because I am speeding even before the cop puts on his lights and sirens.

      I think you will see the media hang AA but the courts will find no wrongdoing. This is stuff that has been going on for much longer than you or I have been alive.

    3. Re:Easy Solution... by Zeinfeld · · Score: 2
      It will never happen. The type of stuff they are destroying are superceded workpapers, review notes from managers, etc. If Congress says that can't destroy them then they would be stockpiling so much crap as to make the storage costs twice the costs of the audit itself

      These are electronic documents. The audit process creates far less paper than a drug application and document management systems already exist for that. The entire Enron audit would fit on a single hard drive even if you store every version of every document without compression.

      As for, destroying things in anticipation of a subpoena is so ridiculous that I had people laughing here. What's the purpose of a subpoena if you are supposed to comply before it is even issued?

      The subpoena requires you to deliver the documents. Destruction of evidence is a criminal act in itself if done for the purpose of obstructing a likely investigation.

      --
      Looking for an Information Security student project suggestion?
      Try http://dotcrimeManifesto.com/
    4. Re:Easy Solution... by RazzleFrog · · Score: 2

      Actually, in the Enron case it was physical documents that were being shredded. And have you ever worked on a large audit? We are talking thousands of pages of workpapers. Add to that the fact that every workpaper goes through at least 3 versions (senior review, manager review, and final). And are you suggesting that they scan in hand written review notes? That seems a bit tedious.

      And I agree that the subpoena requires you to deliver the documents but until that subpoena exists I don't have to deliver anything and I don't have to hold onto anything.

    5. Re:Easy Solution... by RazzleFrog · · Score: 2

      I just re-read the facts to make sure I had the info correct. They didn't destroy any crucial workpapers (which as I said are the minimum amount required by GAAS to support the conclusions of the audit). They did destroy notes and what we used to call CYA (Cover Your Ass) files. Most of that stuff is destroyed immediately after an audit anyway and the letter reminding people of that came long before any case was being developed. Theoretically, AA could say that they never thought that a case would come from it.

      Now I don't believe they will get away scott-free because they are the deep pockets and somebody has to pay but I don't think that any laws will change because of this. I just think that firms will reinforce with their auditors the need to destroy everything immediately after the audit.

      By the way, they did confiscate all of the laptops used on the audit but if AA is smart they use a good shredder and nothing incriminating will be found.

      By the way, did I tell you that I am a former BIG 6 (now 5) CPA?

    6. Re:Easy Solution... by Zeinfeld · · Score: 2
      By the way, did I tell you that I am a former BIG 6 (now 5) CPA?

      No, I gathered that from the unspeakable air of smug self satisfaction.

      My business is computer security and I have been an adviser to several American Bar Association working groups in the area. The question of document archiving, recovery etc. is something I am very familiar with. In particular the situation in which a document shredding policy may be legal or illegal.

      The position the lawyers have consistently advanced is that companies should have a written document retention and destruction policy and stick to it. Otherwise they are at risk of being accused of destroying evidence in precisely this situation.

      If a document is destroyed in accordance with a specific policy then it is rarely going to be considered destruction of evidence. Situations in which $86 billion companies fold overnight after accounting irregularities are discovered are the type of rare occurrence that is likely to result in an exception. If it emerges that the person who ordered the destruction had knowledge of or reason to expect an SEC or other investigation the amount of doo-doo they are in is very great.

      By the way, they did confiscate all of the laptops used on the audit but if AA is smart they use a good shredder and nothing incriminating will be found.

      I find it fascinating that you assume that AA were involved in crookery and that the best thing to do was destroy the evidence.

      In fact if we look at US Political scandals the most common thing someone is convicted of is destroying evidence or lying to an investigator. Nixon, Ollie North, Meese, even Clinton.

      What is amazing is that they don't seem to learn. If Bush gets into hot water over the Enron affair it is unlikely because he took $550,000 in campaign bribes and pushed through energy policies at the behest of Enron's management, for example allowing them to manipulate prices in the California electricity market. Instead Bush will have problems because the administration tried to use executive privillege to cover up the Enron/Cheney discussions, Bush tried to claim that Enron supported Richardson against him in the Texas governors race (Enron gave money to both candidates, Bush recieved far more), and Fliecher has difficulty keeping the number of contacts between Enron and the Administration straght (3 or 14?). It is unlikely in the extreeme that Bush would have any knowledge of or participation in the events that caused the collapse of Enron, but should the press smell a cover up they will treat him in the same way they treated Clinton.

      The US polity loves nothing better than the investigation of a coverup. Whether or not you think the charges have merit depends on whether you are a Dem or a Repub. But it is hard for anyone to claim that an 86 billion dollar company can collapse within 3 weeks and there is nobody at fault.

      What AA has suddenly discovered is that they can be held accountable to the public for the audit work they do as Chartered PUBLIC Accountants. They will be the focus of the investigation until such time as the GWB pol numbers descend from the stratosphere.

      --
      Looking for an Information Security student project suggestion?
      Try http://dotcrimeManifesto.com/
  26. Some old BugTRAQ posts on this subject by Effugas · · Score: 4, Interesting

    Bit busy -- finishing up The Book(TM) -- but I wrote a bit about this subject some time ago. Head over to: http://www.doxpara.com/read.php/security/secure_de letion.html

    There's a Part 2, and some other stuff over there too. yeah, the site needs to be updated desperately. Wait till feb.

    There's one piece of information that's very new and very, very cool: Apparently, some company has been going around the WTC crash site, picking out hard drives from crushed servers, and (though I can't imagine this) actually recovering data from the drives through all the crush damage and dust. I mean, yes, the concept that a non-portable, super expensive, very labor intensive read head would be able to recover significantly more data redundancy than some mass produced mag-head is unsurprising, but...damn.

    --Dan

  27. US Government Outlaws File Deletion by t_allardyce · · Score: 4, Funny

    The US government today announced plans to impose restrictions on so called 'File Deletion' utilities, and possibly even outlaw them altogether, in the name of national security. "These file deletion programs can be used by terrorists to cover their tracks, and remove evidence." claimed a government security expert. "criminals such as Osama Bin Laden, can cover up any electronic evidence, and make prosecution impossible." However, civil liberties groups claim that the ban would infringe their first amendment rights. Other experts claim that anyone can create a file deletion program with even basic programming knowledge. We interviewed one expert who explained how: "One simple way to make sure your data is wiped clean, is remove the hard drive from your computer, and place it in a furnace for 15-20 minutes." the interview was cut short, when government agents stormed the building and arrested the expert for "discussing circumnavigation devices for data deletion".

    --
    This comment does not represent the views or opinions of the user.
    1. Re:US Government Outlaws File Deletion by Tackhead · · Score: 2
      > However, civil liberties groups claim that the ban would infringe their first amendment rights. Other experts claim that anyone can create a file deletion program with even basic programming knowledge.
      >
      >We interviewed one expert who explained how: "One simple way to make sure your data is wiped clean, is remove the hard drive from your computer, and place it in a furnace for 15-20 minutes." the interview was cut short, when government agents stormed the building and arrested the expert for "discussing circumnavigation devices for data deletion".

      All charges were dropped and Hilary Rosen was released later that afternoon.

      A spokesperson for Ms. Rosen was later quoted as saying "We are pleased the government clearly recognizes that the First Amendment guarantees our legitimate corporate interest in constructing new and innovative digital rights management schemes."

  28. Undelete on various operating systems by yerricde · · Score: 3, Interesting

    I ask this since there are unerase utils in windows, could they be using a vfs? If they are, wouldn't they have to stay resident forever monitoring all content?

    DOS 6.x had an undelete.exe TSR that patched the DOS call to remove a file. It had two modes: Delete Tracker (remember deleted directory entries) and the stronger Delete Sentry (similar to the Mac's trash can and to the forthcoming Windows 9x's recycle bin). When using the Delete Tracker or non-TSR mode, it would look at the directory entry of the deleted file (from the directory in non-TSR or from a database in Delete Tracker) and then follow the FAT chain to retrieve as much of the file as it could. Delete Sentry simply moved files into a folder C:\SENTRY, no matter what program deleted them, ignoring *.tmp and a few other file types.

    Mac OS 7 or later and Windows 4 or later, on the other hand, have two separate delete calls (for discussion, call them unlink() and ShellDelete()). The unlink() call actually deletes a file and should be used on tmp files, in uninstallers, etc. ShellDelete(), on the other hand, moves a file to a folder called vol:Trash (on Mac) or vol:\Recycled (on Windows); the shell (Finder or Explorer) provides a command Empty Trash... to do what is essentially an rm -rf on the Trash folder.

    In UNIX systems and their clones, merely make a shell command alias that maps a command to move the file to the ~/.trash folder.

    --
    Will I retire or break 10K?
  29. shred by nzhavok · · Score: 2, Interesting

    so what about shred then? From the man page:

    Delete a file securely, first overwriting it to hide its contents.

    By default it overwrites it 25 times, IIRC DoD standard is 7 times so it should be enough.

    --

    He who defends everything, defends nothing. -- Fredrick The Great
  30. Use GnuPG by yerricde · · Score: 3, Informative

    Presumably PGP runs on unix?

    PGP 6.5.8, the last freeware version

    GnuPG 1.0.6, the GNU Privacy Guard, is a free implementation of the OpenPGP spec.

    --
    Will I retire or break 10K?
  31. FreeBSD has rm -P by seanadams.com · · Score: 5, Informative

    On some systems, rm has an option to nuke the contents of the file before unlinking it:

    man rm
    <snip>
    -P Overwrite regular files before deleting them. Files are overwritten
    three times, first with the byte pattern 0xff, then 0x00, and then 0xff
    again, before they are deleted.
    </snip>

    You can just put "alias rm rm -P" in your login script to make this the default.

    1. Re:FreeBSD has rm -P by toast0 · · Score: 2

      what happens if you use rm -P on a file that has more than one link into the tree (created with ln, or the like).... will the file get obliterated, or will rm give an error, or silently unlink the one copy?

      Don't some filesystems have options to 'secure delete' files that are completely unlinked? I think that would be a better solution.

    2. Re:FreeBSD has rm -P by AtrN · · Score: 2

      It obliterates the file (just read the source).
      Doesn't check st_nlink even though its got a statbuf at hand. Hmmm, bug, feature or another switch?

  32. Time required to erase a 20 GB drive by yerricde · · Score: 3, Informative

    Considering most systems come with 15-60gig drives now, it would take a long time to actually write over all the sectors used for that file in its entire lifetime.

    No longer than a couple defrags. Simply open thousands of multimegabyte files, and then in each file, write a layer of 0's, a layer of 1's, and a couple layers of random data, and you're pretty safe. Five passes on a 20 GB partition shouldn't take more than a few hours depending on the transfer rate from computer to drive.

    --
    Will I retire or break 10K?
    1. Re:Time required to erase a 20 GB drive by f00zbll · · Score: 2

      man I have to wait a couple hours? too lazy do even that. I'll keep it in my head instead. they'll have to hack my head to get my secrets. once I'm a vegetable, who cares if they have the information :)

  33. Killbots by Jobe_br · · Score: 2

    In a book I read a while back (by Tom Clancy and Steve Pieczenik) in a series called 'Net Force' a super-geek (described as a brilliant genius) apparently had a bad childhood that caused him to want to wipe out any informational link to his family that might exist. The book is set in a time where the Internet is far more expansive than it is now, where all information is stored online and all communications take place online and search engines are all powerful. In this setting, the author introduces what he terms a 'killbot' - a small application or scriptlet whose purpose is to literally 'kill' information.

    The way it is described, these 'killbots' are illegal (big surprise). They apparently work by hacking into information sources turned up by search engines and removing the relevant information from the source's databases. While all very fictional, I wonder how far we are from something of this nature. Information may want to be free, but if someone wants to remove information by any means necessary, this may not be far off.

    Just a thought.

  34. Hence, GNU shred from fileutils,standard on GNU OS by fsmunoz · · Score: 5, Informative
    Of course `rm -R *` isn't enough -- it just unlinks files, but doesn't delete datablocks. To delete datablocks, try the -P option which overwrites the file data before unlinking. Unfortunately, this option is not available on GNU `rm` which is used on most Linux systems.
    It would be trivial to add that to GNU rm, but it's futile since there is another gnu tool for this purpose called GNU shred.
    From the GNU shred info node:
    shred overwrites devices or files, to help prevent even very expensive hardware from recovering the data.

    Ordinarily when you remove a file (*note rm invocation::), the data is not actually destroyed. Only the index listing where the file is stored is destroyed, and the storage is made available for reuse. There are undelete utilities that will attempt to reconstruct the index and can bring the file back if the parts were not reused.


    GNU shred is very featerful, as costumary in GNU utils, and has many flags to modify the behaviour.

    BSD ppl are always praising the 'Unix Way' of small utilities that do a very defined job and nothing more, and hate the extended features that GNU utils provide; in this case it's BSD rm that is doing something that could be done by another tool by adding a flag! Horror!

    Seriously, GNU shred is a good tool, and it can receive some interesting flags that a simple rm -P doesn't support.

    cheers,
    fsmunoz
  35. Russian Pencils by dmaxwell · · Score: 2

    Those pencils put Graphite dust into the microgravity environment. The dust was free to float into the electronics and other systems. Once we perfected the zero-G pens, the Russians used them as well. The Russian Pencil is a poor example of low tech smarts over high tech stupidity.

    1. Re:Russian Pencils by JabberWokky · · Score: 2
      I'll also kick in on this urban legend - the zero-G pens were developed by a private company without any government funds, request or input. When the company announced they had developed them, NASA bought them at the same rate that anybody else can buy them for.

      And yes, the graphite dust did nasty things to electronics.

      --
      Evan

      --
      "$30 for the One True Ring. $10 each additional ring!" -- JRR "Bob" Tolkien
    2. Re:Russian Pencils by Jason+Earl · · Score: 2

      Did anyone think to use crayons?

  36. Re:All you need to do is... by gimple · · Score: 3, Informative

    Apparently, this isn't 100% effective:

    Contrary to conventional wisdom, "volatile" semiconductor memory does not entirely lose its contents when power is removed. Both static (SRAM) and dynamic (DRAM) memory retains some information on the data stored in it while power was still applied. SRAM is particularly susceptible to this problem, as storing the same data in it over a long period of time has the effect of altering the preferred power-up state to the state which was stored when power was removed. Older SRAM chips could often "remember" the previously held state for several days. In fact, it is possible to manufacture SRAM's which always have a certain state on power-up, but which can be overwritten later on - a kind of "writeable ROM".

    This is from Peter Gutmann's paper Secure Deletion of Data from Magnetic and Solid-State Memory

  37. Re:PGP attacks by CharlieG · · Score: 3, Interesting
    You said
    Although encryption is, in theory, breakable, the resources to do so don't exist

    While the resources probably don't exist to directly attack PGP, this makes certain assumptions
    • That PGP has no leaks
    • That there have been no mathematical breakthroughs in factoring

    Even if those are true, there are other attacks possible - Most people don't use a sufficient passphrase, so that becomes the easiest attack.
    After that, you have to worry about things like "Magic Lantern" and black bag jobs
    How paranoid do you want to get?
    --
    -- 73 de KG2V For the Children - RKBA! "You are what you do when it counts" - the Masso
  38. Other Technological Solutions by signifying+nothing · · Score: 2, Interesting

    These guys have a cunning method to make sure their data can't be read:

    "sensitive data is stored on hard disks which are hard-wired to physically self-destruct when tampered with"

    If you're lucky it might take out the investigating officer too...

  39. Largely Irrelevant by dh003i · · Score: 5, Informative

    For most of us here, the gov'ts electron-microscope method of determining old data is irrelevant. How many of you here think that it'll be employed against you? That said, I suppose for those of us who engage in a big-time trading of files via P2P networks, & DeCSS, etc, there's always the possibility of criminal prosecutions. So, let me go over the 3 types of "data deletion", and say where each should be used:

    1. Typical deletion. Files are unlinked with their directories, so your OS does not "see" them and has more space available to write with. If the information is not sensitive, or you don't fear intrusion, this is the fastest, and also best, method of deletion. It simply changes the first character of a file name do something that your OS doesn't recognize -- a very fast process. The Advantage: data is recoverable via a data-recovery utility. The Disadvantage: the data has not been securely eliminated.

    2. Simple once-sweep wipe-over deletion. Either random 1s and 0s, or wholly 1s, or wholly 0s, are written over an entire file. Use this for data that is sensitive, or where you fear cyber-intrusion by hackers. The Advantage: data is securely eliminated, beyond the reach of anyone who hacks into your computer. The Disadvantage: data is irrecoverable to you, should you realize you made a mistake, and this process is slower.

    3. A multi-sweep wipe. Same as above, but many sweeps are performed, enough to make typical electron-microscopy methods of data-recovery inviable. This method effectively makes data irrecoverable by any means. Electron microscopes can detect "old zeros" by ghost-patterns, a slight trace. But if data has been written over many times, the older data is impossible to recover even by those methods. The Advantage: this method securely removes the data, beyond the reach of any technological means. The Disadvantage: this method is very slow, and again, data is irrecoverable should you learn you made a mistake.

    It should be noted that whenever you want to securely delete data, not only do you need to wipe the file, but you also need to wipe your swap files and your temporary files.

    So, let me summarize when each of the methods of "data-removal" should be used, starting with the strongest method (a multi-sweep wipe), and ending with the weakest method (the renaming of the first filename character to something unrecognizable):

    1. A multi-sweep wipe. Use this when you have data on your computer that could be used against you in a lawsuit or prosecution. For example, certain kinds of pornography, copyrighted files, warez, and other various information that's been deemed "illegal" by the Information Police in the MPAA, RIAA, MS, and the US Gov't.

    2. A single-sweep wipe. Use this for information that is sensitive, but that you need not fear should the government get ahold of. For exmaple, financial files, files containing credit-card information, etc -- anything you'd want to protect from online-hackers using data-recovery programs. The government, though draconian, has not been known to steal people's credit cards using electron-microscopy. Similarly, hackers have not the resources to use electron-microscopy to acquire your credit cards -- nor would it be worth it. However, if your a high-tech company selling your computer equipment to another company, a multi-sweep delete of your files may be necessary to protect your information from competing companies, who may have bought your machinery through another company as a front.

    3. A deletion that dissociates the file from the directory (renames the 1st character). Use this for non-sensitive data. For example, stories you've written, calendars, lists, ideas, old programs, pictures, etc etc.

    Hope this has been helpful -- and please, remember, if you want to securely remove sensitive data either by a single-sweep wipe (to protect it from hackers) or a multi-sweep wipe (to protect it from the government), please remember to also securely remove swap files and temporary files as well!

  40. It's a real commercial problem by Tim+Ward · · Score: 2, Interesting

    Many contracts say that at some point after the contract ends you have to delete whatever copies you've got of the confidential documents, source code, whatever.

    It's not that hard to delete copies from your hard disk, shred the hard copies, and remember to "really delete" it all from your source code control system.

    But who, in the real world, goes through their backup tapes, CDs, whatever, trying to erase individual files? or even parts of files? whilst not destroying other data - it just can't be done.

  41. Try using "obliterate" by gmcraff · · Score: 3, Informative

    FreeBSD users have the program obliterate in the sysutils part of the ports collection. It takes pains to overwrite the data in order to make sure the file, even if re-linked, is unusable.

    If I understand correctly, it open the file for writing multiple times first. First it writes 0s, then 1s, then alternate beginning 0s and 1s, then 1s and 0s, then patterns of 1s and 0s of all descriptions, then several passes from /dev/rand.

    The upshot is that even if you find the inode and relink to the data, it's been overwritten so many times than you really can't possibly recover it even using forensic methods.

  42. Doh! by d0minique · · Score: 5, Funny
    Her husband had been cheeting on her.

    Was it the orange stains on his hands and the faint odor of cheese that gave him away?

  43. Re:Q: wiping on ReiserFS by radja · · Score: 2

    > Does anyone which (software) tool does the best job of wiping on a ReiserFS partition?

    a bucket of 98% sulfuric acid.
    or maybe an acetylene torch.

    //rdj

    --

    No one can understand the truth until he drinks of coffee's frothy goodness.
    --Sheikh Abd-Al-Kadir, 1587
  44. Deleting the actual file is not enough... by (H)elix1 · · Score: 2

    I wish I could find the link the Feds use as guidelines for grabbing systems from suspects... Its a good read.

    Anyhow, blasting the actual file is not enough. When you go to clean stuff off, make sure that chunk of hard drive (virtual ram) is flushed out as well - both *nix and windows. RAM drives go a long way here, if you were lucky enough to pick up a stack of 512M sticks when they were cheap.

  45. Re:PGP attacks by PhilHibbs · · Score: 2
    After that, you have to worry about things like "Magic Lantern" and black bag jobs
    "Magic Lantern" style keyloggers may be avoidably by opening notepad along side PGP, and switching across and typing in some gibberish or other words, sometimes using a word that contains a letter that is in the password. For instance, if the password contains 'ge', then switch to notepad, type in 'be', then switch back to the password input and type 'g', then switch to notepad, type 'on', then switch back and type the 'e'. Looks like "begone", or "beg one". Try to get the timing right, in case it logs timing as well. Or you could pretend to be typing in some inocuous sentence, occasionally switching across to the password input and typing a letter of the password, then switch back, press backspace, and carry on as if you had just corrected a mis-type. Throw a few in that you don't correct, and a few other corrected typos as well. Dilligent analysis of these 'corrections' may reveal the password if it is a couple of words, though. I suppose this is a form of steg.
  46. When you're done with a big job, always wipe. by Webmoth · · Score: 3, Insightful

    I find the following command useful:

    # dd if=/dev/random of=/dev/hda

    This is assuming, of course, that if your root partition is on /dev/hda, you don't mind reinstalling everything. It's sort of an OS suicide command.

    Using random data as opposed to zeroes is more secure because writing zeroes may leave a readable residual magnetic signature on the media whereas random data tends to obscure the mag sig.

    --
    Give me my freedom, and I'll take care of my own security, thank you.
  47. this ought to fix you up by alec314159 · · Score: 2, Insightful

    dd if=/dev/random of=/home
    Use whatever is appropriate instead of /home

    You can also overwrite files with zeros (such as the ones that come from /dev/zero or /dev/null), but the problem is that after such procedure, by physically examining the disk, one can often reconstruct the pre-existing data WITH A CERTAIN DEGREE OF ACCURACY.

    hth

  48. dd if=/dev/zero of=/dev/hda by Zemran · · Score: 2, Interesting

    Having recently left a job teaching police and customs officers how to get in to other people (read criminals) computers I zeroed my pc before I left. My ex-employers are still trying to work out whether or not I was being malicous. The next user will probably want to stuff some version of M$ on it anyway so I claim I was being considerate.

    --
    I love stacking my barbecues in the shed at the end of summer - you can't beat a bit of grill on grill action.
  49. Real Importance by virg_mattes · · Score: 3, Insightful

    > Then again, I don't have anything that important anyways.

    Don't be so certain of that. Open up your wallet, and you'll see much of importance. No credit cards? That's not the most important thing you have. Take a close look at your driver's license, or any ID you have. That's of great value to many people, and whether or not you trust it to a computer most state governments will. Leaving something as simple as your name in a computer proves that a person by your name exists, which can be used for profit or to complete an agenda.

    Virg

  50. On the other hand, The POSITIVE of this.. by 3seas · · Score: 2

    It's a great way of establishing prior art or what will become prior art, in protecting something from such constraining IP grabs.

    There is a growing list of people opposing Intellectual Property constraints like copyrights and patents.
    Petition Against Software Patents (I'm signer 1552... look who the signer 1551 is!). Maybe you'd like to sign too?

    For more fun on the value of distributed information and how it can be used to protect, see comment #4:
    Issues Related to the Identification of Prior Art During the Examination of a Patent Application
    or
    for an html versions of comment #4

    YES! Usenet is a useful tool because it distributes along with an unbiased date time stamp.

  51. The Solution by virg_mattes · · Score: 3, Funny

    This recovery is a breeze. Just follow these easy steps.

    1.) Take the HD out of your machine, take it to your clean room, and crack it open.
    2.) Pull the platters, one by one, run them under your magnetometer, and use the programming in your magnetometer to develop a magnetic wave map of your drive. Store this image in your workstation.
    3.) Run the analyser over the waveform to get a datamap of the drive. Be sure to save the layers as separate images.
    4.) Pan back through the resulting images, and find the one that corresponds to the drive topology at the time you want (the time when the file/data still existed in readable format).
    5.) Create a disk image file from that waveform.
    6.) Mount the resulting image, and copy your file to a more secure location.

    See? Quick and easy.

    Virg

  52. Cryptographic virtual memory by Nonesuch · · Score: 2
    The OpenBSD folks have a solution for this.

    People have been using 'CFS' to encrypt their home directories, etc for years, recently they added the ability to encrypt swap, with a moderate performance hit.

    For the truly paranoid, a friend of mine is involved in a project developing hardware solutions for encryption between the CPU and RAM.

  53. Just get nasty... by gordguide · · Score: 2

    Good wipe programs exist, and of course you use them. Physical destruction is one option (as many have mentioned). But there are a lot of tools everybody has to really screw with recovery; you can use them in conjunction with regular "wipe" programs.

    You can create scripts that duplicate files repeatedly; use this after a wipe, and don't be afraid to run it whenever you feel like, or unattended.

    Reformat the drive with a different filesystem, and wipe it again with a compatible program.
    Again, go ahead and do this with as many OS-readable formats you have available. For the truly paraniod, install a different OS and play.

    Wipe, defrag, and wipe again.

    Use different programs/commands; individual methods may have strengths and weaknesses but when combined, the strengths are compounded.

    A lot of forensic recovery relies on "bits" of files that can be recombined or simply offer clues or evidence of "hanky panky". The whole file isn't necessary; a few lines here and there can go a long way. Keep that in mind.

    It may well be true that some forensic recovery is more myth than fact, but the truly paranoid thrive on myth.

  54. So basically.... by Restil · · Score: 2

    If you're going to be doing something illegal, you need to pay attention what you are doing with your evidence. Don't leave the drugs on the living room coffee table. Don't deposit your proceeds into your bank account. Don't drive a Ferrari if you're unemployed. Don't inform your cohorts that their phones are tapped by calling them.

    And when you're mailing out your weekly email newsletter to your loyal junkies, try to avoid mentioning anything incriminating, because SOMEONE might be less than vigilant in erasing those messages on a timely and thourough basis.

    Just remember a quote from Miranda. "Anything you say can be used against you". Its only a matter of someone's ability to retrieve what you said that can put you in a compriming position in the future. If you obey the law and act ethically, you shouldn't have problems, but people can misread what you wrote years before and while on a witchhunt will twist what you said to mean something else. If that information simply isn't available, becuase you never provided the means to MAKE it available, liability is significantly reduced.

    If you're going to email something to someone, consider how that email could be used to hurt you in the future. While I'm sure that every software company in the world has dreams of avarice of overthrowing the competition. And the internal harmless banter of corporate takeovers probably takes place. If one of those companies turns out to be the next Microsoft, and those internal emails are still available, years after the fact, they could be used as evidence, even if at the time it had nothing to do with company policy.

    So.... be careful what you say. Someone might be listening.

    -Restil

    --
    Play with my webcams and lights here
  55. Re:How about shred? by Sobrique · · Score: 2, Insightful

    find $dir -exec shred -fuzv {} \;

  56. My Exercises in Paranoia by Deagol · · Score: 3, Interesting
    (For context, I run Linux 100% of the time on my machines.)

    Continually write cruft to hard drive: Run a batch script that continually loops through: 1) dd from /dev/zero to a dummy file on partition; 2) delete when drive fills; 3) dd from dev/urandom to same file; delete file. As the drive will have many writes to it, it would make things very tough to recover. This never had much performance impact on the machine.

    I wish I could find a utility that cleans out inode information, much like the dos/win utils that scrub deleted filenames from the FAT.

    Edit documents and browse web from a virtual machine on an encrypted device:

    I use the loopback patches (/pub/linux/kernel/people/hvr at your local kernel mirror) to run an encrypted device. I then use VMWare (though bochs, plex86, or User Mode Linux should work) to run Linux and Windows for browsing and email writing. Note that VMWare has a nice "undoable" disk feature, in which you can "commit" or "discard" changes to the virtual disk. So I have a pristine Win95 VM, which I log into to do my stuff, and then I discard the changes, thereby removing cached macterial, cookies, etc.

    Note that this doesn't thwart traffic analysis or "rubber hose" tactics. In fact, once the loopback devices are mounted, you can perform standard file/data recovery techniques on them.

    Use file encryption for email and sensitive files. I use GnuPG for this.

  57. Re:Erasing file content, not just the directory en by Todd+Knarr · · Score: 2

    That helps avoiding recovery from the disk itself, but it doesn't do anything about the most effective recovery source: the backups. When I was doing VAX operator work, if your file was on the computer more than 24 hours it was guaranteed to be on the backup tapes for at least 2 weeks. If you left it in existence through Friday night, it'd take 3 months to roll off of backups. Unless of course it happened to be on the one full backup every month we pulled for archiving, in which case it might be anywhere from a year to 5 years until it got destroyed.

    Conundrum: the whole point of backups is to make recovering deleted data easier, which directly conflicts with the need to make deleted data unrecoverable.

  58. World's greatest source of sensitive data... by gordguide · · Score: 2

    Buy used.

    I have bought a few old, "surplus" computers from the local University Surplus Assets dept.

    Not once, had even a cursory attempt at cleaning the drive been made.

  59. Like Vince Foster, eh? NYT = communist rag. by Erris · · Score: 2
    You forgot that you need to forge a suicide note in your own unique prose about, "not being able to live in the spotlight", and posting gaurds around his office while all incriminating evidence is removed. Get with the program.

    I'm stunned that both you and the New York Times are so behind the times. Freaking Oliver North? give me a break, that was fifteen years ago. The techonology of covering your ass was dramatically improved durring the innovative Clinton years. Such an ommision can not be due to ignorance, it must be politically motivated. Hmmmm.

    Well, for any of you out there who might not be in the know, never write things you don't want other people to know. Never ever ever use M$ for confidential information, and alway encrypt your email. This works just as well for private correspondence and corporate work that you might not want to share with your competitors, as it does for politicians who want to murder their best friends.

    --
    DMCA, Hollings, Palladium. What might have sounded like paranoia is now common sense.
  60. Why no discussion of file slack space? by Goldenhawk · · Score: 5, Insightful

    I'm surprised I've seen no discussion here of the very basic problem of file slack space - that unallocated space at the end of the last sector of every data file, except those that exactly fill a disk sector. Most of the methods described here for easy ways to wipe empty hard drive space do not overwrite all the file slack space. You need a program that does that explicitly. Otherwise every sector with the tail end of a file contains easily recoverable data, although disassociated from any filename. Given that the slack space on a hard drive averages out to $sectorsize*$numfiles/2 (on average, 1/2 of a sector, times the number of files), the average 40Gb hard drive with 10,000 files might have 50Mb or more of recoverable data, even if the "empty" space were completely and unrecoverably wiped.

    I learned about this while preparing to publish a program commercially, and discovered that (at least at the time) files I copied to the distribution media master sometimes contained sensitive data, such as the source code, from my own hard drive. Basically, DOS wasn't very picky about copying a few extra bytes along with the actual file length, as long as the extra bytes didn't go past the end of the destination sector. The answer? I used a slack wiping program on the master disk before sending it for duplication.

    --
    --Brandon / Split Infinity Music

    1. Re:Why no discussion of file slack space? by Broccolist · · Score: 2
      The reason no one's discussed it is that the only popular filesystem with slack space is FAT, the one supported by DOS and its pustulant spawn (win9x/ME). AFAIK, on unices and NT-based windowses, there is no such thing.

      &ltrant&gt
      FAT is slow, error-prone and wasteful. When I browsed the linux kernel sources for using FAT filesystems, I found several vitriolic comments about the wisdom of its technical decisions. The earlier it dies, the better.
      &lt/rant&gt

  61. Don't just delete by einhverfr · · Score: 3, Informative

    dd if=/dev/zero of=/dev/hda works for me ;)

    Repeate 4 or 5 times, and good luch recovering anything...

    --

    LedgerSMB: Open source Accounting/ERP
  62. You have to press 'y' too many times by debrain · · Score: 4, Funny

    'rm -Rf star' is much preferrable, or '/bin/yes | rm -R star'. Otherwise you would be there all day pressing 'y'. You could always do it the Homer Simspon water bird way...

    (I know ... offtopic and frivilous...)

  63. one liner: erasing all deleted files by markj02 · · Score: 2
    If you want to erase your deleted files, just fill up the disk (as root) with "cat /dev/zero > junkfile; rm junkfile". This will necessarily reuse all the empty data space on your file system. It works on pretty much ever OS and file system type. There may still be a little bit of data in the file system journal if you use a journaling file system, but it's probably good enough in those cases.

    If you want to check whether a particular piece of information is still there, just "grep" for it: "set history=0; fgrep mysecret /dev/hda".

  64. Actually by einhverfr · · Score: 2

    Better is to do as follows:

    dd if=/dev/random of=/dev/hda

    Repeat 6 or 7 times ;) ALL YOUR DATA WILL BE UNRECOVERABLE!!!

    --

    LedgerSMB: Open source Accounting/ERP
  65. Re:Like Vince Foster, eh? NYT = communist rag. by RollingThunder · · Score: 2

    Rather than politically motivated, how about Oliver North got caught shredding, and the Clintons didn't.

    Not that they didn't get caugh covering something up. I'm talking about the very simple to understand act of taking paper and tearing it to bits, something Joe Average can identify with viscerally.

    Talking about how somebody only overwrote a file once with all ones, making it possible to reread the data with scientific equipment just doesn't have the same simple "how things have changed" since then, does it?

  66. and failing that . . . by hawk · · Score: 2
    I needed to clear some room, and did a "rm -rf stuff otherstuff *~", with the *~ to get rid of backupfiles. Oops. Never mix * and -r when rm'ing . . . one little extra space, and I clobbered ~.


    to make matters worse,this was on my old laptop, and I couldn't find the floppy with the backup of the only important file--a 2/3 written journal article!


    fortunately I use lyx, which is a text format. I piped dd through strings to a (huge) file on the dos partition, and got back most of my paper (but had to search through multiple contending versions. A better Idea would have been to use tr or sed to strip out everything outside the 32-127 range (plus /n, etc.), and then gone to work with that, as I did lose all my equations and a bit of formatting . . .


    hawk, wiser now

  67. Re:Hence, GNU shred from fileutils,standard on GNU by swillden · · Score: 2

    It would be trivial to add that to GNU rm, but it's futile since there is another gnu tool for this purpose called GNU shred.

    Hmmm, cool. It looks to me that shred needs some more features, though. It should be made option-compatible with rm so that the security-conscious could just use:

    alias rm='shred'

    --
    Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
  68. That makes perfect sense. by Erris · · Score: 2
    it's only used to confront a witness who may not be telling the whole truth, and cannot be used to directly establish that what the evidence shows *is* true.

    That's good, as the information might just as well have been edited, or even created. A +4 funny post talked about what "easy money" this was. That's not exactly the kind of morals most people want in an independent third party witness, but the kind you can expect from one that's paid. Think about being confronted with all of your email, selectively edited, and not having access to the documents yourself! This kind of evidence will never be as good as hard copy that everyone can look at and study soberly, and even that is not enough on it's own. There are two parties in any dispute, both parties need to be impeeched to get at the truth.

    --
    DMCA, Hollings, Palladium. What might have sounded like paranoia is now common sense.
  69. not system 1 by hawk · · Score: 2
    It would be later than that. I don't think system 1 supported double-sidede drives--you used the single-sided 400k drives of the mac and mac512.


    hawk

    1. Re:not system 1 by hawk · · Score: 2
      Was there even a system 2? I remember macwrite jumping from 1 to 3. I vaguely want to recall a system 2 that did nothing notably different other than print bidirectionally.


      I believe you could boot from floppy with a regular finder even through system 6. There were hacked-up system 7 boot floppies, but for the regular system, I think you need 6 or lower (and the multifinder appeared with system 5 . . .)


      hawk

  70. Re:Like Vince Foster, eh? NYT = communist rag. by Erris · · Score: 3, Funny
    Oliver North got caught shredding, and the Clintons didn't

    That's because they knew how. Murder was part of it.

    --
    DMCA, Hollings, Palladium. What might have sounded like paranoia is now common sense.
  71. The obligatory rubberhose mention. by StormySky · · Score: 2, Informative

    Worrying about wiping isn't as big of a deal if you make the data indecipherable in the first place. :-) Check out rubberhose for more information: Basically an encrypted file system that's free and gives deniability. Who cares about file echoes when they're all chaos?

    --
    We can face anything... except for bunnies.
  72. small nitpick by Surak · · Score: 2

    This only works on ext2 file systems. For those of using ReiserFS or Ext3, this doesn't work.

  73. Re:Gary Glitter by Afrosheen · · Score: 2

    Gary Glitter is the guy who made the famous rock n' roll song titled, strangely enough, Rock N Roll Part II. It's played in sports stadiums all the freakin' time...the goofy song that shouts 'hey!' in the middle. A little light reading here http://ourworld.compuserve.com/homepages/vanderlin den/GG5900.htm

  74. it costs "them" money by Splork · · Score: 2

    digital tracking is all about cost. if you think "they" are after you with unlimited resources then you should not be using digital devices.

    too late for you now, they monitor /.

  75. Further Information by Phil+Gregory · · Score: 2

    Looking just at the aspects of data deletion on the hard disk (i.e. ignoring the problems arising when data is transmitted to other computers), the problems of irretrievably deleting data have long been known. Most filesystems' delete commands are, of course, trivially insecure, since, at most, they make a note that the disk sectors containing the file are no longer allocated. Even overwriting the data multiple times may not be sufficient. I believe Peter Gutmann's 1996 Usenix paper, Secure Deletion of Data from Magnetic and Solid-State Memory, is still one of the (if not the) authoritative references on the subject. Briefly, when a bit is altered on a disk, the previous bits leave their imprints on the new bit, and it is possible to look back through the layers of deletion for data. Furthermore, it is possible to do this (to a limited degree, but even so...) with relatively inexpensive equipment.

    Gutmann then goes on to derive a set of patterns that are optimal for rendering deleted data irretrievable. GNU shred (part of the GNU fileutils) uses these patterns and is the recommended tool for secure deletion in a Unix environment.

    Note, however, that shred has some limitations in that it assumes that, when writing data to a file, it is overwriting the old data. The info node notes that this is not the case for some filesystems, including some journaling filesystems. Also, modern hard drives may remap drive sectors on the fly if those sectors begin to fail, leaving the possibility for data to remain in the swapped-out sectors. The safest method is, as usual, complete destruction of the drive.


    --Phil (Me? Paranoid? Why do you ask?)
    --
    355/113 -- Not the famous irrational number PI, but an incredible simulation!
  76. Re:Recover victims? by Effugas · · Score: 2

    Touche.

    *moment of silence*

  77. am i wrong? by ImaLamer · · Score: 2

    isn't it better to:

    #shred important.txt
    #rm important.txt

    I was under the impression that even overwriting files doesn't destroy the data and the only way to destroy the data was to fill it with some slick hex code.

    I use two products for windows, and on my *nix box there is nothing [too] private.

  78. rename the 1st character? by epsalon · · Score: 2

    My filesystem actually removes the file entry from the directory, and clears the relevant inodes. Also, even FAT-based filesystems clear the FAT cluster chain, which can complicate recovery if the file was fragmented.

  79. screw off, fanboy by Erris · · Score: 2
    Great. The Clintons are murderers and everyone who is not a Republican is a Communist. Iran-Contra never happened, nor did anything involving the words "Bush" or "Enron". Your world sure is interesting...

    Don't project you blindness on me. Read my posts and you will see that I'm a friend of truth and freedom, not any political party. I will and have beat on Bush, and Ashcroft for all the bonhead things they do, but I'm not going to forget that the tools they are abusing were all forged by Democrats whoring to Hollywood and big publishers. Where would John Ascroft be without Jannet Reno's great Carnivore and Magic Lantern work. The DMCA layed the groundwork for computer slavery by establishing that you do not own the contents of your computer, demanding databases without warrent is the logical extension. Last but not least, it would be much more difficult for all of this to be shoved down our throats if it were not for the greedhead Clinton erra media consolidation that has left the airwaves as property of GE, Westinghouse and Disney.

    That stupid article from the NYT is just part of the Democrat's little smear campaign. You know, like the convicted fellon author who made so much noise about fictional drug abuse. Trying to link Iran-Contra with the current Enron scandal is as pathetic as it is innefective and dishonest. No one really gave a shit about giving arms to the contras and it happened 15 years ago. You might as well say that Bush is dishonest because Richard Nixon lied to Congress. Don't you think it's a little funny that the historical perspective did not include, White Water where the President was accused of using his influence to bankrupt others for his own personal enrichment? Don't you think it's a little strange that all of the people besides the man who made money are dead or in jail? We shall see if Bush enriched himself at the public expense, but pissant articles like that don't do much to sway me.

    --
    DMCA, Hollings, Palladium. What might have sounded like paranoia is now common sense.
  80. Re:Use thermite by Ratface · · Score: 2

    Old fashioned metal pencil sharpeners have a high magnesium content. They're not as easy to get going as (say) magnesium ribbon, but when they start they burn fantastically!

    --

    A little planning goes a long way...
  81. Bush/Enron? How about Clinton/Enron? by SEE · · Score: 2

    I'd like to merely point out that Enron was filing false profit reports and encouraging its employees to invest in Enron stock at the same time Bill Clinton was playing golf with Ken Lay, had Lay as an overnight guest at the White House, and while Lay advised the Clinton administration on energy issues. Enron's current chief counsel represented Clinton in Paula Jones' sexual harassment lawsuit. Robert Rubin, Clinton's Treasury secretary, called a Treasury Department official last fall on Enron's behalf. David Boies, who represents Enron's former chief financial officer, led Democratic presidential candidate Al Gore's court challenges in the Florida recount. And Neil Eggleston, who represents Enron's outside directors, was an associate counsel in the Clinton White House.

    No, I'm not saying the Clinton Administration covered up for Enron. I'm merely pointing out that, so far, all the attacks on Bush have been "guilt by association" -- and such attacks apply equally well to the previous administration, Al Gore, and Hillary Clinton.

  82. Re: This can be fixed by peccary · · Score: 2

    I don't know about each of the journaled fileysystems in question, but at least some of them do not journal user data, only metadata changes. In other words, they journal block allocation and deallocation (size changes), and other changes to the inode.

    If the filesystems aren't making the allocation optimization I mentioned, then shred is fine as is.

    That said, the best place to implement a secure remove operation is in the filesystem code itself, rather than trying to trick it from user code.

  83. Acid by adipocere · · Score: 2
    Once upon a time, on Slashdot, someone mentioned that they had heard of a particular acid that would great for wiping platters.

    Just washing your platters over with H2SO4 might be effective at deletion, but the gov't can claim that you were not only destroying evidence, but doing it in a manner that might be hazardous to human life. (Hence, no bombs, thermite is probably a no-no)

    The acid referenced was perfectly OK for human hands, but deadly to the oxide on the platters. Anybody know what acid that might be?

    Another suggestion might be to use a heavy encryption that thoroughly seems to randomize the data. Just changing a few bits in the encrypted file, would, when decrypted, yield only gibberish. This way, if the Feds are busting down your door, just a sprinkling of randomness through your encrypted files would render them useless.