Three ways to use AI on sensitive data
Data is routinely protected when it is stored and when it travels. At rest, data is encrypted on disks and within databases. In transit, data is encrypted while it travels through computer networks. In use, however, data has to be decrypted before it can be computed on, so it sits in the clear on the machine that processes it. It is readable by the cloud operator, a compromised hypervisor, or any attacker who gets in. For AI, this is the moment that matters most, because a model can only answer a prompt while processing it.
| State | Protected by | Status |
|---|---|---|
| At rest | AES-256 disk and database encryption | Standard |
| In transit | TLS for HTTPS, SSH for remote access | Standard |
| In use | On-premise, TEEs, or FHE | Not yet standard |
Today, organizations that want to use AI on sensitive data have only three options: on-premise, confidential and encrypted computing. On-premise computing keeps the data under control, but also keeps expensive hardware idle. Confidential computing still shows the data to the chip and the cloud it runs in. Encrypted computing is the only option that needs no trust. Until now, its price has been a large performance overhead.
| Option | How it protects data | Who can still read it | Trade-off |
|---|---|---|---|
| On-premise | Data never leaves the organization's building | The organization's own operators | Expensive hardware that sits idle, limited to open models |
| Confidential computing (TEEs) | Data is decrypted inside a protected area of the chip | The chip vendor, and the cloud operator who controls the hardware | Security rests on hardware that keeps being broken, trust required in cloud provider |
| Encrypted computing (FHE) | Data stays encrypted while it is processed | Only the key holder | Performance overhead |
1. On-premise computing
The most intuitive answer to the privacy question is to keep all sensitive data on-premise. There are different variants to this paradigm, such as edge computing or on-device AI, which we group under on-premise computing. For many tasks, on-premise computing can be a good answer, but it runs into three structural problems.
I. Model providers cannot protect their weights or their guardrails
To run on a device, a model's weights must be shipped to it, where they can be copied, extracted or reverse-engineered. Providers of the most capable models therefore keep them in the cloud, which limits on-premise computing to the models that are openly available. The same holds for models trained on sensitive data or used in security-critical settings: their weights can leak what they were trained on, so their owners cannot deploy them on-premise either.
The same holds for safety. Model providers train guardrails into their models so that they refuse harmful requests, and these trained-in guardrails are the most robust protection against misuse. Once the weights sit on someone else's hardware, however, a few minutes of fine-tuning or a direct edit of the weights can remove them. License checks or usage limits around the model can be stripped out the same way. With encrypted computing, the weights never leave the provider's datacenter, so the guardrails stay in place. The provider also keeps the usual controls of a cloud service: it can authenticate users, enforce rate limits and revoke access, all without seeing a single prompt.
II. On-premise hardware caps what models can do
The memory and processing power of on-premise hardware limit the size and capability of the models it can run. That hardware also varies widely from one device to the next, which makes it hard to build a reliable service that works on every device.
III. Idle hardware drives up cost
Illustrative simulation
On-premise, one GPU per user
12 GPUs 5% busy
Shared, encrypted
2 GPUs 32% busy
Mean wait for a free GPU: 3 s
Same 12 users: 12 GPUs at 5% busy, or 2 shared GPUs at 32% busy.
An on-premise deployment serves a single customer, and for most of the day its hardware goes unused. Even while someone is using an assistant, the GPU sits idle as they type a prompt, read the answer or wait for an agent's tool calls to return (Figure 2). It also stands still at night and over the weekend, so a dedicated on-premise GPU remains idle for most of the week.
Shared encrypted compute works differently. Requests from many users queue up, so the same hardware can run around the clock.
Serving many users from shared hardware also brings the familiar advantages of the cloud. A central service is easier to run, because updates, monitoring and security patches happen in one place instead of at every customer site. It scales faster too, since capacity can be added in the datacenter without shipping new hardware to each customer.
Datacenters typically use energy more efficiently than scattered on-premise devices, thanks to higher utilization as well as dedicated power and cooling. Because the service is not tied to one device, users can continue the same conversations on their laptop, phone or any other device.
For these reasons, we expect encrypted computing to reach a lower total cost of ownership than on-premise computing. It already keeps the data owner in full control while large models, model protection and collaboration across parties stay in the datacenter. Today, it still costs more per token, and our roadmap below shows how we close this remaining gap.
2. Confidential computing
Confidential computing using Trusted Execution Environments (TEEs) is widely perceived as the answer for confidential AI in the cloud. Yet a TEE still has to decrypt sensitive data inside a protected region of the processor. Inside that region, the data is processed in the clear and is vulnerable to whoever controls the hardware it runs on.
This security model of TEEs has failed repeatedly in practice. Foreshadow , Plundervolt , SGAxe and ÆPIC Leak each extracted secrets from Intel SGX, and none of them needed physical access. Battering RAM, from KU Leuven and the University of Birmingham, used physical access and a memory interposer that costs less than $50 to read plaintext from SGX enclaves and falsified AMD SEV-SNP attestation on fully patched systems . Intel and AMD treat such physical attacks as outside their threat models , , yet the cloud operator is the party these designs are meant to guard against, and anyone with datacenter access could mount them.
The same weaknesses have now reached confidential AI. TEE.fail extended these DDR4 bus-interposition attacks to DDR5 servers for under $1,000 . The attestation keys it extracted can be used to compromise NVIDIA's GPU Confidential Computing, resulting in AI workloads running without the TEE protections customers are promised. Mior and Skyfall showed that a malicious host can attack SEV-SNP guests, and confidential GPU deployments inherit that exposure because they are anchored in a CPU confidential VM .
The software stack adds to the risk. A TEE trusts every layer that touches plaintext, from the chip vendor's firmware and attestation keys to the drivers and libraries of the AI serving stack. Hence, a single vulnerable or compromised dependency can expose the data inside the enclave. In November 2026, an attacker exploited a remote code execution bug in SGLang, an open-source inference engine, to run code on one of NEAR AI's inference servers . That server ran inside NEAR AI's confidential environment, and the attacker could have observed the confidential-mode requests it was processing.
Shared hardware leaks through side channels as well. In October 2026, OpenAI reported that AI agents in separate virtual machines on shared hardware, with no network and no shared files, built a covert channel by timing the processor cache, the same cache-timing primitive that Foreshadow and SGAxe used to exfiltrate data . Any hardware that holds plaintext can leak it through side channels, and AI agents can now build the tools that exploit them.
3. Encrypted computing
Encrypted computing uses cryptography to run operations directly on ciphertext without decrypting it to reveal the underlying data. The server only ever holds ciphertexts, and its computation does not depend on the data inside, so side-channels reveal nothing about the data. A compromised host, hypervisor, BIOS or inference engine therefore exposes only ciphertexts, not the data. No one but the key holder sees that data in plaintext, on any hardware and in any cloud. For years, encrypted computing was far too slow for a model the size of an LLM. The rest of this paper shows how that changed.
References 13
- [3] J. Van Bulck et al., "Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution," USENIX Security, 2018. foreshadowattack.eu
- [4] K. Murdock et al., "Plundervolt: Software-based Fault Injection Attacks against Intel SGX," IEEE S&P, 2020. plundervolt.com
- [5] S. van Schaik, A. Kwong, D. Genkin, Y. Yarom, "SGAxe: How SGX Fails in Practice," technical report, 2020. sgaxe.com
- [6] P. Borrello et al., "ÆPIC Leak: Architecturally Leaking Uninitialized Data from the Microarchitecture," USENIX Security, 2022. aepicleak.com
- [7] J. De Meulemeester, D. Oswald, I. Verbauwhede, J. Van Bulck, "Battering RAM: Low-Cost Interposer Attacks on Confidential Computing via Dynamic Memory Aliasing," IEEE S&P, 2026. batteringram.eu
- [8] Intel, "More Information on Encrypted Memory Frameworks for Intel Confidential Computing," 2025. intel.com/content/www/us/en/developer/articles/news/more-information-encrypted-memory-frameworks.html
- [9] AMD, "Compromising Trusted Execution Environments through DDR5 Memory Bus Interposition," AMD-SB-3040, 2025. amd.com/en/resources/product-security/bulletin/amd-sb-3040.html
- [10] J. Chuang et al., "TEE.fail: Breaking Trusted Execution Environments via DDR5 Memory Bus Interposition," 2025. tee.fail
- [11] C. Wech, P. Giersfeld, B. Schlüter, S. Shinde, "Mior: Breaking AMD SEV-SNP with Device-as-Memory," ACM CCS, 2026. xca-attacks.github.io/mior
- [12] B. Schlüter et al., "SKYFALL: Microarchitectural Data Sampling on AMD," IEEE S&P, 2027 (to appear). skyfall-attack.github.io
- [13] NVIDIA, "Confidential Virtual Machines," NVIDIA Confidential Computing documentation, v1.0.0. docs.nvidia.com/confidential-computing/virtual-machines
- [14] NEAR AI, "Security Incident Report," 9 November 2026. near.ai/blog/security-incident-report-sglang-vulnerability
- [15] OpenAI, "Securing our frontier model training environment," 23 October 2026. openai.com/index/securing-our-frontier-model-training-environment