You’ve recently spent some time on deleting files. I understand that just
hitting Shift+Delete doesn’t rid the hard disk of the file, but I’ve long
wondered about some other things: Suppose I have an Excel or Word file that
contains personal info (say a list of passwords or other sensitive
information) and I decide that’s not such a good idea. If I delete all of the
information, then save the file, is that information gone forever? Likewise,
suppose this file is called “password.xls,” and I create a new (even
blank) spreadsheet, save it as the same file (password.xls), and click
‘Yes’ to “Replace existing file?” Have I successfully hidden those passwords
(or whatever) forever? Are they off my disk now? Any chance that life could
be this simple?
Let me put it this way: when it comes to computers, life is rarely
simple.
This situation is no exception.
The short answer to your question is of course not – the data might still
be recoverable.
The longer answer is all about why.
]]>
<
Leo, what if you saved a new file to an external storage media, such as a flash drive. You make some changes to the file, and then save the changes to the same file on the flash drive. Is there anyway these actions on the flash drive could have also caused a temporary copy of the file to be saved somewhere on the PC (hard disk, etc.), which in turn now makes possible the recovery of the data from the PC? (Yikes!) Thanks…
17-Mar-2012
to ‘Yeppers’
Considering Windows is ALWAYS using some portion of the hard drive as ‘memory’, the answer is a definate “maybe” – regardless of where it actually stores the working version of the file.
Many advanced document formats like MS Office support versions within the each file (not to mention OS versions of each file). So changes may be remembered between saves.
Very good example, Leo. I do have a bit of an exception to your sample, though.
At least with MS Office products, the temporary file is created upon opening the original. That way, all changes are made to the temp file. The original remains unchanged. Pressing the SAVE button causes the sequence you described: delete original, rename temp.
A difference would occur if the SAVE AS option were chosen. In this case, the temp file is named as indicated by the SAVE AS name and a NEW temp file is opened. In fact, the original file retains all of its characteristics including the created/last modified date. This sequence can continue ad nauseum.
Please correct me if I’m wrong.
–geek rant–
From an IT perspective, the “modify file” permissions of windows has always been one of frustration despite the fact that it’s logically necessary. When a user modifies a file and the original finally gets deleted, that’s an actual “DELETE” permission and when you try to set permissions on windows folders to not allow deletes, you inadvertantly set the permissions to not allow modifies either.
I get that the original file needs to be preserved and that’s more important than what I’m complaining about but you’d think the tech geeks at MS would have considered the security permissions during this process.
–/geek rant–
Leo…where you part of this original think tank?!?!
…just curious 😉
17-Mar-2012
“Pressing the SAVE button causes the sequence you described: delete ORIGINAL, rename TEMP.”
I suggest that the use of “delete original” here is misleading, although I agree that the action is so-called, mainly for simplicity.
Surely what really happens is:-
“Rename and Note that ORIGINAL (File) Disk Space is available for (Later) Over-Writing, if required at some Indeterminate Time in the future.”
Theoretically, there is a chance that the Contents of ORIGINAL and any other file are NEVER OVER-WRITTEN, depending upon how intensively the HDD and PC are used.
And that Indexing Information is stored in the
(Reserved) Disk INDEX part of the HDD etc, thus the Working Contents on the rest of the HDD, are effectively NOT ALTERED until a subsequent Over-Write occurs from the Saving of any File that needs the space, whether that later file has any conventional relationship to ORIGINAL or not.
The whole process is very much more complex than normally presented.
And those complexities also apply to Folders/Directories as well.
Another thing to take into consideration with programs like MS Office and many others, is that they also save a copy of your program every so and so number of minutes as a backup in case the program crashes. So even if you only save the file once and use a secure wipe on it, there can be one or more backup copies of that file on your computer which were simply deleted in a non-secure manner.
I used to have a “password.xls” file but realised that it would be the first thing anyone getting access to my computer (or coming across the backup DVDs ‘filed’ in the shed at the bottom of the garden) would look at. So now the same file has a misleading name, is in .xlsx (slightly more secure) format and is password protected itself.
Leo, in the above section entitled, “The Steps to Update a File”, it sounds like if I save a file 10 times, I can end up having 10 copies of that file: 9 temporary copies and 1 current copy. If that is the case (or even if I really end up with only 1 temporary and 1 current copies), will a secure deletion software find ALL the temporary copies and the current copy of that file? If not, do you think a more effective approach is to just do a regular delete, followed by a free-space wipe? This will take a lot of, maybe too much, time, but it seems to produce a more secure of a deletion.
(This article was truly eye-opening! Count me as being part of the paranoid group, as I’m beginning to think that the only real secure deletion tool is a sledgehammer.)
Thanks…
17-Apr-2012