Transparent Data Encryption (TDE)

Encryption applied by a database engine to its own files at rest, invisible to applications. It protects copied files and media, not data read through an authorised database session.

Transparent Data Encryption (TDE) is the name several database products, including Microsoft SQL Server and Oracle Database, give to encryption the database engine applies to its own data files at rest. Applications see no change: the engine encrypts data as it writes to disk and decrypts it as it reads. Keys are commonly arranged in a hierarchy, with a database encryption key protected by a master key that can be held in a hardware security module or an external key store.

TDE is one of three placements commonly compared. Storage encryption beneath the database, such as a self-encrypting drive, protects media that leaves the organisation’s control. TDE protects the database’s files against being read outside the database, for example a copied data file. Encryption in the application, before data reaches the database, can keep plaintext away from the database administrator. Like storage encryption, TDE does not stop anyone reading through an authorised session, so a privileged administrator or a successful SQL injection still sees plaintext. Whether logs and backups are covered depends on the product, and needs verifying.

Exam relevance: a scenario about protecting data at rest against a stolen or copied database file is likely to point to TDE, while one about keeping data from the database administrator tends to point to encryption in the application.