I read an article that was forwarded to me several weeks ago about an insurance executive who left one company for another and was attempting to “hide his work from a rival company” by throwing his laptop into a pond. The original article can be found here: http://fpn.advisen.com/fpnHomepagep.shtml?resource_id=124171879598845892#top
Now you might not be an insurance executive who needs to hide your work from a rival, but there may be times where you need to securely remove your customer’s data from an old or de-commissioned system. For example:
- You are donating your old PC to charity;
- You upgrading your old system with a new hard drive; or
- You are throwing away an outdated PC.
Whatever the case, you need to help ensure that your customer’s data stays out of the hands of your competition and/or malicious computer hackers. In this article I’ll show you how to do this on a Windows-based system (and, no the answer is not throw your PC into a pond).
Note: If you are not familiar with running system commands, no problem. I still recommend that you read through this article just to understand what’s going on and forward this article to your IT specialist when you actually do need to securely delete data.
Why Simple File Deleting is Not Enough
Our company gets hired by financial institutions and other organizations to professionally break into (or “hack”) their computer systems and perform what’s called a “penetration test”. Our objective is to show the management of those companies different ways a malicious computer hacker might be able to gain access to their systems, critical data and more importantly how to fix it. One way to achieve this objective is what is called “dumpster diving” and that’s where we literally go outside a business’s premises and try to recover computer systems that may be thrown away in a dumpster or put out for recycling pick-up. Our hope is that we find a computer system where the previous owner simply deleted the files on that computer, assuming that it would sufficient to keep those files from being recovered. Trust me, it’s not.
This is the same on any computer system (Mac, PC, Linux or otherwise), but when you delete a file or a folder, the actual data is not really removed from the hard disk in the way you would think. Instead, the space on the disk where that file or folder resides is what’s called “de-allocated”. De-allocating a file or folder simply tells your system “hey we aren’t using this space anymore” but the old data there isn’t technically deleted. Until the system actually writes another file on the spot where the old data was, that old data even though it’s been marked as “deleted” or ”de-allocated” can be recovered by using what’s called low-level disk editing or data recovery software.
This is what corporate spies and other malicious computer hackers are counting on and one of the ways they are able to gain access to some of their competition’s sensitive data. How do you help prevent this from happening to you? Read on.
How to Properly Wipe Your Windows PC/Laptop: Using Microsoft Windows Cipher.exe
Starting with Windows XP and higher, all Microsoft Windows operating systems come with a handy utility called cipher.exe. This tool is typically used for managing file encryption features on Windows systems, but it comes with a very useful option and that is the ability to overwrite data that has been deleted so that it cannot be easily recovered. The way cipher.exe works is that it will write a series of zeros over any de-allocated file space, and then a series of ones and then finally a series of completely random data, which should be sufficient to prevent that de-allocated data from being recovered.
Let’s pretend you have a folder named “C:\MyData” on your old system that contains all your customer data. You’ve already transferred it to the new system, verified that the copy was successful and want to permanently remove it from the old system. Here’s what you do:
- On the old system delete the files in C:\MyData as you normally would.
- Close any running applications.
- Click Start, click Run and type cmd followed by pressing the Enter key.
- Type cipher.exe /w:c:\MyData and this press the Enter key. This will instruct the cipher.exe tool to begin overwriting the de-allocating space that maps to c:\MyData so that de-allocated data is no longer recoverable.
- (Optional) If you want to make sure all de-allocated space is overwritten on a drive, then you’ll want to change the command to cipher.exe /w:c:\ which will overwrite all the de-allocated space on c:\. Repeat this for any other drives you may want to wipe de-allocated space on.
- (Optional) For extra security, after you’re completely done with the old system and ready to get rid of it, you could also take your Windows installation disk and re-install Windows or any other operating system over the old operating system, making sure to remove old partitions and formatting all new partitions.

Note: The cipher.exe utility will take a long time to run. This is because it’s going through your entire disk, byte-by-byte, overwriting de-allocated space and doing it multiple times. My recommendation is to run cipher.exe and then go out to lunch or coffee and let it run while you’re gone. Given the choice between letting your customer’s data fall into the wrong hands and then having to explaining to them how/why/when you lost their data, or having to wait an hour or two, I’d say the wait is well worth it wouldn’t you?
Conclusion
Simply deleting files on a computer system will not sufficiently prevent those files, such as your customer’s data, from being recovered by corporate spies, malicious hackers or other nefarious users. On Windows systems, starting with XP and higher, the cipher.exe utility can be used to overwrite de-allocated file space and prevent any residual data on that de-allocated space from being recovered by low-level disk editors and recovery software.
Thanks, I hope you found this article useful.
–Kevin