Data

How do you run a query against data the database can't read?

Azure SQL Blog Anna Hoffman
Data

A look back at the SIGMOD 2020 Always Encrypted paper: how Azure SQL evaluates queries over columns it cannot decrypt, what the deterministic and enclave designs still leak, and what changed since, including VBS enclaves without attestation.

Key points

  • Always Encrypted's threat model is a strong adversary with debugger access to the SQL Server process, not an outsider.
  • A 32-byte AES column encryption key protects the data; the column master key stays in Azure Key Vault or an HSM.
  • Drivers call sp_describe_parameter_encryption to encrypt parameters outbound and decrypt results inbound, so app code sees plaintext.
  • Deterministic encryption allows equality and B-tree indexes but leaks value frequency; randomized encryption hides it and blocks comparisons.
  • Secure enclaves decrypt and compare values inside protected memory, enabling BETWEEN, LIKE, and later JOIN, GROUP BY and ORDER BY.
  • TPC-C tests put Always Encrypted connections at 64% of plaintext throughput and enclave computation near 50%.
  • VBS enclaves now work in Azure SQL Database via preferredEnclaveType on any offering, but ship without attestation; SGX on DC-series still has it.

Real-world use

  • A health-records API on Azure SQL where the customer's threat model includes the cloud operator and four columns hold identifiers.
  • A financial reporting service that still needs BETWEEN range filters and LIKE searches on encrypted account data.
  • A multi-tenant SaaS where the DBA team must not be able to read tenant secrets despite having administrative access.
  • Migrating an on-premises workload to Azure SQL when application-side encryption or tokenization broke querying and indexes.

This summary was generated by the agent from the original post on Azure SQL Blog. The full text and all rights belong to its author and publisher. Go to original

Report this story

Is something wrong with the summary, or do you own this content? Your message comes straight to my inbox.

Type of message

Related stories

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message