What data at rest means
Data is at rest when it is stored rather than actively crossing a network: on a phone, laptop, server disk, database, removable drive, object store, snapshot, backup, archive, log or message queue. Encryption at rest transforms the stored representation so that an unauthorised party cannot read it without the required key.
At rest versus in transit versus in use
| State | Typical protection | Primary threat reduced | Important limit |
|---|---|---|---|
| At rest | Device, volume, file, database, object or application-layer encryption. | Lost media, stolen disks, improper disposal, unauthorised storage access and some infrastructure compromise. | Data is exposed after a legitimate process unlocks or decrypts it. |
| In transit | TLS, SSH, IPsec, VPNs and authenticated application protocols. | Interception, modification and impersonation on a network path. | The endpoints still receive plaintext and may store it insecurely. |
| In use | Process isolation, access control, confidential computing and carefully bounded decryption. | Unauthorised access while computation is taking place. | Keys and plaintext may still exist in memory or trusted execution boundaries. |
Transport encryption and storage encryption therefore complement each other. TLS can protect a database backup while it is uploaded, but storage encryption protects the copy after it arrives. Conversely, an encrypted disk does not protect records sent over an unencrypted network.
Common implementation layers
| Layer | Examples | Best at | Boundary |
|---|---|---|---|
| Full-disk or volume | FileVault, BitLocker, dm-crypt/LUKS. | Lost devices, removed drives and decommissioning. | Usually transparent after boot or unlock; a running compromised host can read data. |
| File or directory | Apple Data Protection classes, Linux fscrypt, encrypted containers. | Different unlock policies or users on one filesystem. | Metadata coverage and online protection vary by implementation. |
| Database TDE | Database pages, data files, logs and sometimes backups. | Stolen database files and storage snapshots. | Authorised database queries normally return plaintext; exports may need separate protection. |
| Application or field | Selected columns, records, documents or payloads encrypted before storage. | Separating sensitive data from database and storage administrators. | Search, indexing, analytics, rotation and recovery become more complex. |
| Object and cloud storage | Provider-managed, customer-managed or client-side encryption. | Large-scale storage with policy and audit integration. | Who controls the root key and when the provider can decrypt depends on the chosen model. |
| Backup and archive | Encrypted backup sets, tapes, snapshots and offline archives. | Long-lived secondary copies and off-site media. | Recovery keys must remain available for the full retention period and be tested. |
Envelope encryption and key separation
Large datasets are commonly encrypted with a data-encryption key (DEK). The DEK is then wrapped by a key-encryption key (KEK) held in a key manager or HSM. This envelope model permits frequent data keys, smaller rewrapping operations and separation between storage and root-key custody. The wrapped key is not harmless: access to both ciphertext and a usable KEK path restores the data.
Controls that make storage encryption effective
- Classify and map the data. Include replicas, caches, temporary files, search indexes, logs, crash reports, exports, snapshots and test environments.
- Choose the layer from the threat model. Full-volume encryption is excellent for lost media; application-layer encryption can reduce trust in infrastructure administrators. Many systems need both.
- Use approved authenticated constructions. Select current platform or standards-based implementations. Do not design a custom cipher, mode, padding scheme or key format.
- Separate keys from ciphertext. Avoid hard-coded keys, source repositories, adjacent configuration files and unprotected environment variables. Restrict the decrypt operation as carefully as access to raw key material.
- Bind access to identity and context. Apply least privilege, service identity, device state, user presence or strong authentication as appropriate. Encryption does not replace authorization.
- Plan recovery before deployment. Escrow or back up only the keys that must be recoverable, protect recovery material separately, require strong approval, and prove that a restore works.
- Rotate and rewrap deliberately. Distinguish rotating a KEK, rewrapping DEKs and re-encrypting all data. Record key versions so old ciphertext remains decryptable during a controlled transition.
- Monitor key and decrypt use. Alert on unusual bulk decrypts, disabled protection, new recovery-key access, policy changes and failed integrity checks. Protect logs from the same administrators being monitored.
- Destroy all copies at end of life. Cryptographic erasure is effective only when every usable key copy, backup, escrow record and replica is included.
Platform examples
Apple
iPhone, iPad and Apple-silicon platforms use Data Protection, a hierarchy of per-file or per-extent keys tied to protection classes and rooted in device hardware. Mac system software also uses FileVault for volume protection. The Keychain protects passwords, tokens and small keys; Secure Enclave-backed access controls can require a passcode, Face ID, Touch ID or user presence. An app must still choose appropriate Data Protection and Keychain accessibility classes and avoid copying plaintext into less-protected files, logs or backups.
Windows
BitLocker provides full-volume encryption and commonly uses a TPM to release a volume key only when measured boot state and configured protectors are satisfied. Recovery passwords must be escrowed and access-controlled in a separate location such as Microsoft Entra ID or Active Directory. DPAPI protects user- or machine-scoped application secrets; DPAPI-NG can protect to authorised principals across machines. Application keys can use CNG key storage providers, including a TPM-backed Platform Crypto Provider.
Linux
dm-crypt with LUKS2 is the common block-device or volume layer. LUKS key slots allow multiple unlock methods around one volume key; header backup, recovery and slot-removal procedures are critical. systemd-cryptenroll can enrol passphrases, recovery keys, FIDO2, PKCS #11 or TPM 2.0 mechanisms for LUKS2. fscrypt provides per-directory filesystem encryption and can use different keys on one filesystem, but it does not hide all metadata and provides limited protection once keys are loaded. Linux kernel keyrings cache keys and tokens for kernel services; their permissions and lifetime are not a substitute for an enterprise key manager.
What storage encryption does not prove
- That an application enforces correct row, file or tenant authorization.
- That plaintext is absent from RAM, swap, logs, exports, crash dumps or endpoints.
- That recovery keys are controlled, monitored or still available.
- That every replica, backup and retired disk uses the same policy.
- That the cryptographic module or whole system is FIPS validated.
- That ransomware, destructive administrators or compromised applications cannot alter or delete data.
TrustScan boundary
TrustScan can explain transport and certificate evidence observed from a selected connection. It cannot determine a remote service's database, disk, backup or application-layer encryption from a TLS handshake. Claims about encryption at rest require architecture, configuration, key-custody and operational evidence from the system owner.