Encryption, Key Management, and Threat Detection
Transparent Data Encryption (TDE)
Transparent Data Encryption (TDE) protects data at rest by encrypting database files, log files, and backups without requiring any changes to application code. When data is written to disk, TDE encrypts it using the Advanced Encryption Standard (AES) algorithm, and decrypts it when read into memory. By default, Azure enables TDE on newly created databases, securing the database encryption key with a built-in server certificate. Organizations seeking more control can replace this certificate with their own keys stored in Azure Key Vault to manage key rotation and lifecycles.
Key Management with Azure Key Vault
Azure Key Vault acts as a secure, centralized repository for managing and protecting cryptographic keys. When implementing a Bring Your Own Key (BYOK) model, ownership of the key lifecycle remains with the organization rather than the cloud provider. This architecture creates a strict separation of duties, ensuring that security officers who manage the keys do not have direct access to administrative database tasks. The database engine authenticates to the key vault to fetch the key wrapper, ensuring that the actual keys are protected behind defined security boundaries.
Always Encrypted
Always Encrypted provides column-level protection to ensure sensitive data is protected while in transit and in use. This mechanism performs client-side processing, where a specialized client driver encrypts sensitive columns before the data ever leaves the client application. Because the database engine never sees the plaintext data or the encryption keys, unauthorized administrators cannot read the sensitive fields. These keys are stored externally in secure locations such as Azure Key Vault or the Windows Certificate Store, which keeps the cryptographic boundaries secure.
Dynamic Data Masking
Dynamic Data Masking limits the exposure of sensitive data to unauthorized users by obscuring it in query results on the fly. The service automatically discovers potentially sensitive data fields, such as credit card numbers or email addresses, and applies masks according to pre-defined rules. This masking occurs inline, meaning the actual data on disk remains fully intact and encrypted, but non-privileged database users only see masked results. This capability minimizes the need to modify application code while protecting sensitive information from exposure in user interfaces.
Vulnerability Assessment and Threat Detection
Azure Defender for SQL is a unified security package that continuously monitors database systems to defend against security risks. Within this service, vulnerability assessments scan the database for security holes and provide step-by-step instructions to fix misconfigurations. Simultaneously, the threat detection system watches live operations to spot anomalous activities, such as SQL injection attacks or unusual database access patterns. This continuous monitoring workflow ensures that potential breaches are identified and mitigated before they can compromise the database environment.