data remanence

term

securityprivacy

Kept in this browser · My desk

The data that remain recoverable on a storage medium, or in memory, after they have been deleted, formatted over or switched off; the problem media sanitization exists to solve.

Deleting a file removes a pointer, and formatting a disk rewrites little of it: Simson Garfinkel and Abhi Shelat found in 2003 that the format command of the day overwrote about 0.1% of a disk, and that only 12 of 129 second-hand drives they imaged had been wiped. Flash keeps old copies its controller has not yet cleaned up, and even DRAM keeps its contents for seconds after power is cut. NIST's Guidelines for Media Sanitization (SP 800-88 Rev. 2, September 2025) answer with three methods: clear, purge and destroy.

What it is. Data remanence is the residue a medium keeps after its data were deleted, formatted over or switched off. NIST's (National Institute of Standards and Technology) Guidelines for Media Sanitization, Special Publication (SP) 800-88 Rev. 2 of September 2025, define media sanitization as the actions that make recorded data unrecoverable by both logical and state-of-the-art laboratory techniques, and they assume the laboratory kind is available to a party, such as a nation-state, that wants high-value data badly enough.

Why deletion leaves data. Deleting a file removes the file system's pointer to it; the blocks stay as they were until something writes over them. Simson Garfinkel and Abhi Shelat bought 158 second-hand drives between 2000 and 2002, many of them in eBay auctions: of the 129 they could image, only 12 had been properly sanitized, 83 still had mountable File Allocation Table (FAT) file systems, and the format command of the day overwrote about 0.1% of a disk. One drive, apparently from an automated teller machine (ATM) in Illinois, held 2,868 account numbers in a log.

Magnetic media. Peter Gutmann's 35-pass overwrite of 1996 answered recovery with tools such as magnetic force microscopy, and each group of passes targeted one recording code then in use; his later epilogue says people treated it as a voodoo incantation, that a drive using one encoding only ever needed the passes for that encoding, and that for modern drives a few passes of random data are the best one can do. NIST notes that drives were once overwritten up to 39 times, for example following DoD 5220.22-M of the United States Department of Defense, and that the department removed overwriting specifications from its National Industrial Security Program Operating Manual (NISPOM) in 2006; the manual is now Part 117 of Title 32 of the Code of Federal Regulations. Rev. 2 states that clearing does not need multiple passes. Degaussing works only when the degausser's field is matched to the medium's coercivity, many degaussers lack the force for modern high-coercivity disks, and it can leave a drive unusable, with its servo tracks damaged, while failing to sanitize the data; NIST does not count it as a destroy technique.

Flash. Because solid-state drives (SSDs) remap writes and keep spare flash, Wei, Grupp, Spada and Swanson found in 2011 that overwriting the whole drive twice usually but not always erased it, that single-file erasure failed, and that built-in sanitize commands worked when implemented correctly. Their drives held 6 to 25% more flash than they advertised, and 1,000 small files left up to 16 stale copies of some of them; one drive reported a successful erase while every file stayed readable and the file system still mounted. NIST says that on SSDs with over-provisioning multi-pass overwriting achieves very little, that degaussing must not be used on flash (a degausser run on an SSD completes successfully and sanitizes nothing), and that cryptographic erase sanitizes rapidly.

Memory. Halderman and colleagues showed in 2008 that dynamic random-access memory (DRAM) keeps its contents for seconds after power is cut, even at room temperature and out of the motherboard. Cooled with compressed-air duster to about minus 50 degrees Celsius, fewer than 1% of bits decayed in ten minutes; in liquid nitrogen, about minus 196, 0.17% in an hour. That is enough to recover disk encryption keys from a running or sleeping laptop: the cold boot attack, demonstrated against BitLocker, TrueCrypt and FileVault.

The three methods. Clear applies logical techniques, overwriting or a factory reset, to all user-addressable locations through the user's own interface, against simple non-invasive recovery. Purge makes recovery infeasible with state-of-the-art laboratory techniques while leaving the device potentially reusable: overwrite, block erase and cryptographic erase through the dedicated sanitize commands that bypass the ordinary read and write path, or degaussing for magnetic media. Destroy makes recovery infeasible and the device unusable: disintegrate, incinerate, melt, pulverize or shred. NIST warns that bending, cutting, drilling or shooting a drive may leave parts readable in a laboratory, and that as density rises pulverizing and shredding suit only the lowest data categories. For cloud storage, where the owner never touches the physical media, cryptographic erase may be the only purge available. Each sanitization should end in a certificate of sanitization recording the media, the technique and how it was verified.

Cryptographic erase. If everything was written encrypted, sanitizing the key, zeroizing it as ISO/IEC 19790 (International Organization for Standardization and International Electrotechnical Commission) describes, sanitizes the data far faster than any other technique. It is only as good as the encryption and the key handling; NIST requires United States federal agencies to rely on modules validated under the current Federal Information Processing Standard (FIPS) 140 for a self-encrypting drive.

The commands. IEEE 2883-2022, the Institute of Electrical and Electronics Engineers' Standard for Sanitizing Storage, approved on 16 June 2022 and published on 17 August 2022, specifies technology-specific methods, and NIST refers readers to it. On AT Attachment (ATA) disks, hdparm can send SECURITY ERASE UNIT, normal or enhanced, but only to a drive first locked with a user or master password. On NVM Express (NVMe) drives, the Format command's Secure Erase Settings choose a user-data erase or a cryptographic erase, and the Sanitize command offers block erase, overwrite (an overwrite pass count of 0 means 16 passes) and crypto erase. The NVMe specification makes a sanitize operation reach every location able to hold user data, caches and deallocated areas included, and makes it impossible to abort: it carries on after a controller reset and across power cycles.

In Brazil. The Lei Geral de Proteção de Dados (LGPD), Law 13.709 of 2018, defines elimination as deleting data stored in a database regardless of the procedure used (art. 5, XIV) and requires personal data to be eliminated after processing ends, within the technical limits of the activity (art. 16); it allows keeping them to meet a legal or regulatory obligation, for study by a research body with anonymization where possible, for transfer to a third party within the law, or for the controller's exclusive use once anonymized. The method is left open. The draft of the Autoridade Nacional de Proteção de Dados (ANPD) security guide for small processing agents, in its 2021 technical note, suggests overwriting all data on any medium before discarding it, physical destruction where that is impossible, as with optical discs, and a contract with a record of destruction when a third party disposes of media. On flash, NIST's warning about overwriting applies.

Neighbours. Full-disk encryption makes cryptographic erase possible; the file deletion myth is this problem's everyday form; forensics recovers what remains.

Also known as: remanence, remanência de dados, residual data, dados residuais, media sanitization, sanitização de mídia, cryptographic erase, apagamento criptográfico, cold boot attack

Sources

← Back to D Back to the glossary