prashant.dhingra.website
Field Guide · Data & Privacy Engineering · Updated June 2026

Analytics on data you can't see

By Prashant Dhingra Governance, Quality & Privacy

Encrypted data analytics This guide discusses several privacy-enhancing technologies that help protect sensitive data from plaintext exposure. It examines eight different options, matches them to specific threats, and offers guidance on selecting and integrating them effectively.

PD By Prashant Dhingra ~26 min read 8 techniques cataloged Primary sources ↓
← reduced plaintext exposurestrict cryptographic opacity →
TEE
attested hardware
OPE/ORE
order revealed
Search.
bounded leakage
DP
output control
FE
f(x) only
MPC
split trust
PHE
narrow arith.
FHE
ciphertext math
Key takeaways
  • "Encrypted analytics" is not binary. Systems differ in their ability to protect against various threats (like cloud operators, collaborators, DBAs, output inference, side channels, collusion) as well as in their computational capacity.
  • The choice is threat-model-first, not feature-first choose the tool with the least amount of power that effectively reduces the specific threat you are worried about.
  • TEEs give the broadest functionality at near-native speed; MPC suits multi-party analytics; FHE removes the most server trust; searchable/OPE trade leakage for query speed; FE is narrow; DP guards the outputs.
  • The dominant 2026 production pattern is hybridization Confidential computing ensures secure execution, cryptographic sub-protocols protect sensitive operations, searchable encryption enables query capabilities, and differential privacy safeguards data release.
  • PETs are complementary safeguards, not compliance exemptions :: pseudonymised data is still personal data under GDPR.

01 :: ScopeDefinitions and scope

In a strict cryptographic sense, encrypted analytics includes homomorphic encryption, MPC, structured/searchable encryption, private set operations, and functional encryption. In industry practice, this category also encompasses trusted execution environments and confidential computing.

Encrypted data analytics

Architectural designs that support valuable analytics, search, collaboration, or machine learning on sensitive information while preventing access to data in plain text can utilize encrypted data computations, secret sharing, secure index queries, hardware with attestation, or differential privacy controls for output release.

A useful distinction is between strict cryptographic opacity and reduced plaintext exposureFully Homomorphic Encryption (FHE), Multi-Party Computation (MPC), Private Information Retrieval/Private Set Intersection (PIR/PSI), and various functional-encryption schemes prioritize achieving the former objective, whereas Trusted Execution Environments (TE inside A secure virtual machine enclave, established to isolate the operator, hypervisor, and platform from the trust boundary, is crucial. Merely encrypting data while it is stationary or moving is inadequate for meeting the necessary standards. The analytical engine still processes plain text within its standard memory.

NIST's Privacy-Enhancing Cryptography project offers a strong foundation: MPC enables untrusted parties to collaborate with confidential inputs, FHE performs computations on encrypted data, PIR retrieves items without revealing the query, structured encryption allows for private queries on encrypted data structures, and functional encryption is among the related tools. The realm of 'analytics' is wide-ranging, encompassing aggregation, ML inference and training (when feasible), SQL-like filtering and specified joins, encrypted data search, and cross-party linkage such as private join and compute.

02 :: Threats & LawThreat models and regulatory constraints

The first question is who is the adversarySeveral possible threats include a cloud provider who is trustworthy but overly curious, a dishonest operator or hypervisor, collaborating input parties in an MPC process, a database administrator with access to storage and logs, a side-channel attacker observing memory and microarchitectural effects, and an analyst trying to carry out membership or reconstruction attacks. Different Privacy Enhancing Technologies target specific aspects of these threats.

  • Cryptographic techniques The difficulty of lattice or number theory problems and the level of intentional leakage permitted by the scheme determine the outcome.
  • MPC The corruption model and collusion threshold determine the variations between passive and malicious behavior, the proportion of honesty versus dishonesty, and the approach to aborting.
  • TEEs Implement a more targeted operational framework: limit access to essential data to verified workloads, eliminating vulnerabilities such as hardware/firmware flaws, side channels, and risks associated with vendor supply chains.

Regulation is nuanced. Under GDPR, pseudonymisation is still processing of personal dataArticle 25 requires data protection to be built in by design and default, with Article 32 highlighting pseudonymisation and encryption as important safeguards. The ICO's PET guidance underlines the importance of PETs in improving data security and reducing risk. not a silver bulletFurthermore, U.S. sector-specific regulations highlight the importance of legal, equitable, and clear processing, along with mandating individual Data Protection Impact Assessments (DPIAs). Notably, HIPAA incorporates NIST controls, the FTC stresses the significance of comprehending data flows and preventing misleading privacy statements, and the GLBA Safeguards Rule centers on a risk-based strategy.

The recurring lesson

Using encrypted analytics can help lower risks, streamline processing, boost breach resilience, and promote cross-organizational sharing. Nonetheless, it might not completely excuse obligations concerning purpose limitation, transparency, data-subject rights, retention, or transfers, especially when a controller can decrypt outputs or link results to specific individuals.

03 :: CatalogThe technique catalog

Eight families, each specializing in a distinct occupation. The colored spine of every card matches the spectrum strip at the top of the page.

01Partial HE (PHE)
additive homomorphism · low functionality
ComputesCounts, sums, weighted sums, and private billing are often included in larger protocols to guarantee secure aggregation.
CaveatDo not use arbitrary comparisons, joins, or general SQL statements unless they are paired with other fundamental operations.
python-paillier · LightPHE
02Fully HE (FHE)
ciphertext computation · strongest server-trust reduction
ComputesCollaboration is facilitated in multiparty variants through enhancements in aggregation, vector operations, similarity searching, low-depth arithmetic, and selected machine learning inference.
CaveatProgress is being hindered by the bootstrapping bottleneck, with SQL joins and training still in the research/prototype phase
OpenFHE, SEAL, HElib, Lattigo, TFHE-rs, and Concrete ML are
03Secure MPC
distributed trust · multi-party
ComputesAggregations, histograms, PSI, private joins, overlap-and-sum, federated analytics, and partitioned
CaveatRestricted by network and round constraints, challenging to oversee, security compromised by collusion among numerous parties.
MP-SPDZ · MPyC · MOTION · EMP · ABY3 · SecretFlow
04TEE / Confidential computing
attested hardware · broadest functionality
ComputesSQL, joins, arbitrary code, conventional databases, ML training/inference :: often near-native speed (DuckDB-SGX2: <2× on TPC-H SF30).
CaveatIncreased TCB size due to vulnerabilities in side channels such as SGX.Fail and SEV-SNP 'Fab
SGX, Nitro Enclaves, SEV-SNP, TDX, Confidential Space, and Gramine are
05Searchable encryption
encrypted indexes · queryable
ComputesEquality search, keyword/document retrieval, selected range/prefix/suffix queries over protected indexes.
CaveatAttackers can exploit exposed information like search/access patterns, frequency, result size, and structure for leakage-abuse attacks.
MongoDB Queryable Encryption, OpenSSE, CipherSweet, Cosmian Findex, and CipherStash are
06OPE / ORE
order-revealing · range-native
ComputesEfficient indexing with sorting, range filtering, thresholding, and ORDER BY functionality for quick and seamless data retrieval.
CaveatDesign exposes the order, enabling inference attacks to extract substantial plaintext using auxiliary data.
CipherStash ore.rs · Block-ORE constructions
07Functional encryption
keys bound to functions · f(x) only
Computesinto the complexities of calculus.
CaveatBasic functionality, minimal tooling, reliant on strong key authority :: demonstrating promise yet not fully developed for enterprise applications.
Fentec libraries · research prototypes
08DP + encrypted execution
output control · pairs with any PET
ComputesDoes not utilize a calculation method, but restricts the amount of information that can be revealed about an individual in the published statistics or model. Effective in conjunction with secure aggregation.
CaveatPrivacy accounting, bounding contributions, assumptions on sampling, and loss of utility are all complex aspects.
OpenDP, Google's secure aggregation, AWS Clean Rooms DP, and Prio/DAP all maintain data privacy.

04 :: TradeoffsComparative tradeoffs

A qualitative synthesisSecurity level is not a fixed standard, but a gauge of confidence independent from the operating environment. when the stated assumptions hold.

TechniqueSecurity levelSupported analyticsPerformanceBest fitPrimary caveat
Partial HEHigh for narrow arithmeticCounts, sums, weighted sums, aggregationHigh (no bootstrapping)Simple outsourced arithmeticFunctionality too narrow for rich queries
Full HEVery high trust reductionAggregation, vector ops, similarity, ML inferenceLow–medium; often slowestSingle-owner outsourced computeCiphertext blow-up, slow bootstrapping, limited SQL/training
MPCVery high within collusion thresholdsAggregation, joins, PSI/PJC, partitioned MLMedium; network/round-boundCross-org collaboration, no trusted hardwareOperational complexity & collusion assumptions
TEE / confidential computingHigh if HW/firmware/attestation holdBroadest: SQL, joins, arbitrary code, MLHigh; often closest to nativeLift-and-shift confidential analyticsSide channels, larger TCB, HW vulnerabilities
Searchable encryptionMedium–high, leakage-proneEquality, keyword, some range/prefix/suffixHighQueryable encrypted databasesSearch/access/frequency leakage
OPE / ORELow–medium (order leaks)Sorting, range filters, thresholdingVery highFast range search when leakage acceptableInference attacks recover plaintext structure
Functional encryptionHigh for supported functionsInner products, selected linear/quadraticMedium for narrow tasksFine-grained delegated analyticsNarrow functionality, low ecosystem maturity
DP + encrypted executionHigh vs output inferenceAggregates, telemetry, federated learningHigh for DP stepSafe result release after protected computeUtility/privacy tradeoff & budget accounting
HybridPotentially strongest overallBroadest practical coverageMedium–high if well partitionedReal-world enterprise deploymentsCompositional proofs & operating complexity

← swipe the table to see all columns →

05 :: HybridHybrid architectures

Hybrids have become the norm in production by aligning the correct method with the task at hand. SecretFlow combines MPC, HE, and TEE in one framework; Duality's AWS project includes Nitro Enclaves along with previous FHE, federated learning, and DP techniques; Decentriq merges Azure confidential computing with diverse privacy technologies like DP. The partitioned stack looks like this:

Searchable
narrow lookup
TEE
general SQL / serving
MPC
cross-party joins
FHE/PHE
sensitive arithmetic
DP
anything released

The value is undeniable: it frequently outperforms any single primitive in accomplishing the shared objectives of security, functionality, and cost. The downside is equally apparent. security proofs become compositional rather than monolithicWith the addition of each layer, the operational complexity grows substantially as new assumptions, observability needs, and potential failure scenarios are introduced.

06 :: DeploymentsDeployments and vendor landscape

Confidential computing and clean-room deployments are currently the most mature production technologies, with encrypted analytics leading the way in functionality and practicality. TEE-centric and hybrid architectures.

Confidential computing & clean rooms

Google Confidential Space (and Google Ads confidential matching), Azure Confidential Computing with Decentriq clean rooms, and AWS Nitro Enclaves with Duality (including cross-border cancer research).

Pure cryptography (FHE/MPC)

IBM HElayers (an Intesa Sanpaolo digital-transaction deployment), Duality for healthcare/finance/government, Zama (TFHE-rs, Concrete, Concrete ML), and Inpher for MPC/HE/federated learning.

Queryable encrypted databases

MongoDB Queryable Encryption :: the most prominent mainstream example :: plus CipherSweet, OpenSSE, Cosmian Findex, and CipherStash for application-level searchable encryption.

Private aggregation & telemetry

Prio and descendants: Mozilla's Prio-based DAP in Firefox and Divvi Up (Prio3), plus Google federated learning with secure aggregation and AWS Clean Rooms Differential Privacy.

When it comes to cryptography, the market is genuine but extremely choosy. MongoDB Queryable Encryption is a standout example of a queryable database, offering support for equality and range queries in current use, with prefix/suffix/substring queries still in public preview in version 8.2 (expected to be generally available in 2026). MongoDB also emphasizes the concrete costs linked to queryability, such as increased storage needs, effects on query speed, and limited visibility due to log redaction in encrypted collections.

07 :: Signals2026 signals

Recently updated

What's moving right now

  • Confidential computing went to the GPU. NVIDIA's Confidential Computing on Hopper and Blackwell GPUs allows for secure private AI inference and training using encrypted VRAM, verifiable with a CPU TEE. This represents a major step forward in the potential of this powerful technology.
  • TEE risk kept evolving. The SGX.Fail incident in 2024 and the 'Fabricked' SEV-SNP incident in 2026 underscore the importance of reevaluating TEE security in response to advances in hardware, attestation, and patching guidance.
  • FHE commercialized and accelerated. In 2025, Zama became a unicorn by pioneering FHE technology with a focus on achieving 500-1,000 TPS through GPU technology. The FHE Benchmarking Suite has become a standard for assessing latency, throughput, memory usage, storage expansion, communication, and accuracy loss.
  • Queryable encryption broadened. The MongoDB QE team launched production range queries and moved prefix/suffix/substring to public preview in version 8.2, with plans to reach general availability by 2026 and close the gap between 'encrypted at rest' and 'queryable in use.'
  • Private telemetry scaled. The deployment of Prio/DAP (Firefox, Divvi Up) shows that encrypted analytics extends beyond databases and model serving to encompass secure measurement on a broad scale within populations.

08 :: ChooseSelection criteria & deployment checklist

The primary consideration for decision-making is not the vendor or the algorithm, but rather the. trust boundary you are trying to move. The second is workload shape. A concise decision rule: Select the most appropriate tool that can efficiently neutralize the threat you are worried about.Rather than assigning all tasks to a single primitive, consider combining two or more primitives for efficiency.

  • Depend on hardware roots and make use of the wide range of software, rather than relying on the cloud operator. TEEs.
  • Multiple organizations, no single operator may see data → MPC / PJC.
  • One owner outsourcing computation, server fully untrusted → FHE / PHE.
  • Mostly equality/range retrieval in a database → searchable / queryable encryption.
  • Sensitive outputs, not just inputs → add differential privacy.

Stage-gate deployment checklist

StageWhat to doPass condition
Problem framingClassify data, outputs, parties, and exact operatorsYou know if it's aggregation, search, join, inference, or training
Threat modelWrite down adversaries, collusion assumptions, unacceptable leakagesNamed threat model approved by security/legal
Technique shortlistMap workload to 2–3 candidate architectures≥1 cryptographic and ≥1 operationally efficient option considered
Key & identity designDefine key custody, attestation flow, or share-holder governanceKeys/shares are never ad hoc
PrototypeBenchmark on representative data at realistic security levelsMeets p95 latency, throughput, and cost guardrails
Leakage reviewDocument observable metadata, patterns, or outputsExplicit acceptance or rejection of the leakage profile
Release controlsIncorporate data protection, quotas, or query management if the results surpass the threshold.Output policy defined and testable
Red-team & complianceTest side channels, patching, logging, legal claimsFindings resolved before rollout

← swipe the table →

09 :: MetricsWhat to actually measure

The benchmarking program should be clearly defined and specific, with the FHE Benchmarking Suite as a strong model. latency, throughput, memory, storage expansion, communication complexity, and quality loss. Extend it per technique:

  • TEE-based SQL verification time, EPC/enclave paging operations, cache miss escalation, and significant overhead in real-world OLAP scenarios.
  • Searchable encryption index size, selectivity of query, token generation cost, and detailed leakage profile.
  • DP-based releases epsilon, delta, bounding contributions, rate of privacy-budget depletion, and utility loss.

A successful cross-technique suite should include at least five different workload families: aggregations on large tables, private join / PSI-plus-sum on skewed identifiers, search with equality and range conditions, SQL analytics on a subset similar to TPC-H with one or two joins, and machine learning with one traditional and one streamlined neural model. Each workload must be assessed using metrics like p50/p95 latency, throughput, ciphertext/share expansion, network bytes, RAM/VRAM usage, accuracy decline, deployment duration, and operator involvement. If a solution necessitates custom parameter modifications or specialized circuits beyond your team's capabilities, view this as a substantial expense, rather than a trivial issue.

10 :: LimitsOpen questions and limitations

Some parts of this region move quickly, posing a challenge for a stationary marker to give precise directions. General-purpose FHE for SQL and large-model training Though improvements have been implemented, the most dependable evidence continues to indicate a preference for selective inference and restricted analytics rather than utilizing encrypted datastores. Searchable-encryption leakage The debate over 'acceptable leakage' as a design flaw is ongoing, with quantification proving challenging and vendors and academia offering conflicting perspectives. TEE risk is not stable, as recent SGX and SEV-SNP results show. And functional encryption Production in this region does not have enough evidence compared to other industries, indicating that targeted pilot programs may be more successful than large-scale investments unless the function family is particularly well-suited.

11 :: FAQFrequently asked questions

What is encrypted data analytics? +
Privacy-enhancing technologies like homomorphic encryption, MPC, searchable/structured encryption, private set operations, functional encryption, and trusted execution environments enable secure computation with sensitive data, reducing plaintext exposure. Basic encryption methods at rest or in transit cannot offer this same level of protection, as plaintext is still processed in memory by the analytic engine.
Which PET should I choose for analytics? +
When choosing tools, prioritize threat modeling: TEEs for quick analytics with secure hardware; MPC for joint analysis between organizations without a trusted party; FHE for offsite data storage with an untrusted server; searchable/queryable encryption for precise search requirements; OPE/ORE for speedy range searches with minimal order exposure; functional encryption for delegated tasks; and DP for aggregate results outside the secure perimeter. Opt for the least powerful tool that effectively addresses the threat at hand.
Does encrypted analytics make data exempt from GDPR or HIPAA? +
Pseudonymisation falls under GDPR as a method of processing personal data, with PETs providing added protection but not a comprehensive solution. Article 25 requires data protection by design, while Article 32 suggests pseudonymisation and encryption as potential measures. HIPAA, the FTC, and the GLBA Safeguards Rule take a risk-based approach. Encrypted analytics can lower risks and aid in data sharing, although it does not remove obligations regarding purpose limitation, transparency, data-subject rights, or output governance.
Is FHE practical for analytics in 2026? +
Cutting-edge applications incorporate specific aggregation, vector operations, similarity search, low-depth arithmetic, and machine learning inference, as opposed to general OLAP. While widespread SQL, joins, and large-model training using fully homomorphic encryption are primarily experimental or in the early development phases. Overcoming bootstrapping remains a significant hurdle, with single-owner outsourced computation and hybrid pipelines utilizing FHE to safeguard only the most critical steps proving to be the most efficient utilization scenarios.
What's the risk with searchable and order-preserving encryption? +
Efficient searchable encryption prioritizes speed over leakage, taking into account permissible leakage such as search patterns, frequency, result size, and structure that can be vulnerable to leakage-abuse attacks. OPE/ORE reveal order explicitly, which could potentially lead to inference attacks when combined with auxiliary distribution data. Both methods are appropriate for equality, range, and search operations, but should only be employed when the leakage profile is well-defined, acknowledged, and controlled by access restrictions.
What is the most common production pattern? +
Hybridization includes incorporating a secure computing layer into the overall execution, using cryptographic sub-protocols (MPC/FHE) for sensitive processes, searchable encryption for limited query capabilities, and differential privacy for result release. Frameworks like SecretFlow, Duality on AWS Nitro Enclaves, Decentriq on Azure, MongoDB Queryable Encryption, AWS Clean Rooms DP, and Prio/DAP systems exemplify these principles.

12 :: SourcesPrimary sources

Based on industry standards, regulatory requirements, vendor documentation, peer-reviewed studies, and anticipated system advancements in 2024 and beyond.