Sub topic 7
Data Destruction and Secure Disposal
This chapter assumes you know how HDDs and SSDs differ, how a file system tracks files, and how to use a command line. It covers how to remove data from storage so it cannot be recovered, and how to choose a method for a given medium.
Why deleting is not destroying
When you delete a file or run a quick format, the operating system removes the pointers to the data. The data itself stays on the media until something overwrites it. Free tools can recover it. A drive that leaves your control with recoverable data is a data breach waiting to happen.
Data destruction is therefore a confidentiality control. It protects data at the end of its life, when a drive is retired, sold, donated, returned from a lease or sent for recycling.
Sanitization levels
NIST Special Publication 800-88 groups media sanitization into three levels. The A+ exam does not test the document by name, but the levels help you reason about scenarios.
| Level | Meaning | Example |
|---|---|---|
| Clear | Overwrite with logical techniques. Protects against simple recovery. | Overwrite the drive, or reset a phone to factory state |
| Purge | Make recovery infeasible even with lab techniques. | Degaussing, ATA Secure Erase, cryptographic erase |
| Destroy | Make the media physically unusable. | Shredding, pulverizing, incineration |
The more sensitive the data, the further down the table you go. Media that held regulated or highly confidential data usually warrants destruction.
Logical methods
Logical methods leave the device intact so it can be reused.
- Standard (quick) format. This rebuilds the file system structures and leaves the data in place. It is not a secure method.
- Full format. On modern Windows, a full format of a drive writes zeros across it. It is better than a quick format, but it is not a certified sanitization method.
- Overwriting (wiping). Software writes patterns of ones, zeros or random data over every sector, in one or more passes. This works well on magnetic hard drives.
- Drive wiping utilities. Tools such as DBAN and manufacturer utilities automate overwriting. Use a bootable tool when you need to wipe the drive that holds the operating system.
- ATA Secure Erase. The drive firmware erases the whole drive. It reaches areas that software overwriting cannot, such as remapped sectors.
- Cryptographic erase. If the drive was encrypted from the start, destroying the encryption key makes the data unreadable. This is fast and works well for SSDs and self-encrypting drives.
Here is a software wipe of a single file on Linux:
shred -v -n 3 -z secret.txt
rm secret.txtshred overwrites the file three times with random data (-n 3). It then writes a final pass of zeros (-z) to hide that shredding took place. -v prints progress. The rm afterward removes the now-meaningless directory entry.
Why SSDs need different handling
An HDD stores data on magnetic platters, and overwriting a sector replaces what was there. An SSD stores data in flash cells. Its controller decides where each write goes, and it keeps spare capacity (over-provisioning) that the operating system cannot address. Overwriting from the operating system can therefore leave old data in cells you never touched.
For SSDs, use one of these:
- The manufacturer's secure erase utility or the ATA Secure Erase command.
- Cryptographic erase on a drive that has been encrypted all along.
- Physical destruction, when the data is sensitive enough.
Degaussing does nothing to flash memory, because flash is not magnetic.
Physical methods
Physical destruction is irreversible. It is the right choice when the drive is broken and cannot be wiped, or when the data is too sensitive to risk.
- Degaussing. A powerful magnet field scrambles the magnetic domains on an HDD or tape. The drive is usually unusable afterward, because the servo tracks are also erased. It does not work on SSDs or optical media.
- Shredding. An industrial shredder cuts drives, SSDs, optical discs and paper into small pieces. The smaller the particle size, the safer the result. Paper should be cross-cut rather than strip-cut.
- Drilling or hammering. Drilling through the platters of an HDD is a low-cost option. It leaves some of the platter surface intact, so it suits moderate sensitivity only.
- Crushing and pulverizing. A press or grinder deforms or grinds the media into fragments.
- Incineration. Burning destroys media completely. It must be done in an approved facility because of toxic fumes.
Choosing a method by medium
| Medium | Suitable methods | Methods to avoid |
|---|---|---|
| HDD | Overwrite, degauss, shred | Quick format |
| SSD | Secure erase, cryptographic erase, shred | Degaussing, file-level overwrite |
| Optical disc | Shred (disc shredder) | Degaussing |
| Magnetic tape | Degauss, shred | None; both work |
| Paper | Cross-cut shredding, incineration | Strip-cut for sensitive pages |
| Phone or tablet | Factory reset on an encrypted device, remote wipe | Reset on an unencrypted device when data is highly sensitive |
Disposal, documentation and third parties
Destroying data is not complete until you can prove it.
- Certificate of destruction. A recycling or destruction vendor issues a document that lists the media, serial numbers, date and method. Keep it for audits.
- Chain of custody. Record who handled the media from the moment it left service until its destruction. Locked bins and sealed containers prevent theft along the way.
- On-site or off-site. On-site destruction lets you watch the process. Off-site destruction is cheaper but relies on the vendor's controls and transport.
- Retention rules. Do not destroy data that a legal hold or regulation requires you to keep. Destruction follows the organization's retention policy.
- Recycling versus repurposing. A drive moved to another employee should be wiped to a defined standard. A drive leaving the company should be wiped or destroyed according to its data classification.
- Environmental rules. Electronics contain hazardous materials, so dispose of them through a certified e-waste recycler, not the general trash.
Common errors
- Treating a quick format or file deletion as sanitization.
- Degaussing an SSD and assuming the data is gone.
- Overwriting individual files on an SSD or copy-on-write file system.
- Skipping documentation, which leaves no proof if an auditor asks.
- Leaving paper in an open recycling bin. Dumpster diving, covered in the social engineering chapter, targets exactly this.
Exercise
A company is retiring a working SSD from a laptop and plans to give the laptop to a charity. The drive held customer records. Name one suitable method, and explain why degaussing would not be suitable.
Show answer
Use ATA Secure Erase or the manufacturer's secure erase utility, or cryptographic erase if the drive was encrypted all along. Either one sanitizes the whole drive, including cells the operating system cannot address, and the laptop stays usable for the charity. Degaussing works by disrupting magnetic fields, and an SSD stores data in flash cells that are not magnetic. The data would remain.
Exercise
Why is shred -n 3 -z secret.txt unreliable on an ext4 volume with data journaling, even on an HDD?
Show answer
The journal can hold earlier copies of the file's contents in other locations on the disk. shred overwrites only the file's own blocks, so the copies in the journal survive. Sanitize the whole device or use full-disk encryption instead.