Confidential Computing: How to Protect Data Used by Cloud LLMs
Learn how confidential computing protects sensitive data during cloud LLM inference using trusted execution environments, attestation, and secure design.
Your company wants to use a cloud-based large language model (LLM) to summarize contracts, search internal documents, or help employees answer customer questions. The model can do the work, but one question keeps coming up: what happens to confidential information while the AI is actually processing it?
Encrypting uploaded documents and using HTTPS are important. Neither, by itself, answers what happens inside the cloud computer after the information is decrypted for processing.
Confidential computing helps protect data while it is in use by running computations inside a hardware-based, attested trusted execution environment (TEE). Properly designed, it can reduce the ability of privileged infrastructure software and unauthorized operators to inspect sensitive workloads. It does not make an LLM automatically private, compliant, or immune to attacks.
This guide explains what the technology does, how it can fit into a cloud LLM application, and what to check before trusting a vendor’s privacy claims.
Why normal cloud encryption is not the whole story
Sensitive information passes through several states in a typical AI workflow. Each state needs protection, but the controls are different.
| Data state | What is happening? | Common protection | What the protection does not necessarily cover |
|---|---|---|---|
| At rest | Documents, logs, and model files are stored | Disk, object-storage, or database encryption | Data after an application decrypts it for processing |
| In transit | Prompts or results move between systems | TLS and authenticated connections | The contents once they reach a receiving application |
| In use | A CPU or GPU processes a prompt and model data | Confidential computing with suitable hardware and workload controls | Information deliberately exported by the authorized application |
Think of an encrypted file as a locked suitcase. Storage encryption protects the suitcase while it sits in a warehouse; TLS protects it during delivery. Traditional processing often requires opening it in a working room. Confidential computing aims to make that working room harder for unauthorized parties to enter or inspect.
The Confidential Computing Consortium’s definition (opens in a new tab) focuses on computation inside a hardware-based, attested TEE. That matters: calling something “encrypted AI” is not sufficient evidence that the model processes its inputs in a verified, isolated environment.
What is a trusted execution environment (TEE)?
A TEE is an execution environment designed to isolate code and data from parts of the surrounding computing infrastructure. Depending on the design, the protection boundary might be an enclave, a confidential virtual machine, or a confidential container backed by hardware security capabilities.
A conventional virtual machine separates tenants primarily through software and hardware virtualization. A confidential VM adds mechanisms intended to protect its memory and execution state from certain privileged components outside the guest. The actual security guarantees vary by CPU architecture, firmware, configuration, and provider.
Three concepts are worth learning:
- Isolation: the sensitive workload runs within a defined boundary that limits unauthorized access.
- Memory protection: hardware mechanisms help protect the data being processed, including against some attacks from privileged host software.
- Attestation: a verifier checks evidence about the hardware and loaded workload before the system is trusted with secrets.
The NIST glossary (opens in a new tab) describes confidential computing in terms of hardware-enabled isolation that reduces the risk of exposing protected data during memory processing. This is a narrower security claim than saying that no one can ever see the data.
How confidential LLM inference works
Inference is the process of using a trained model to produce an answer. For an LLM application, that might mean sending a document and a question to a model endpoint, then receiving a summary.
A confidential inference architecture can follow this sequence:
- Prepare the protected workload. Deploy the approved inference software and compatible model on hardware that supports the required TEE protections. For GPU inference, the CPU-to-GPU path and the GPU itself may need confidential computing support.
- Request attestation evidence. Obtain cryptographically verifiable evidence of the environment, its security mode, and relevant software measurements.
- Verify before disclosing secrets. Check the evidence against an approved policy. Depending on the architecture, the client or a key-management service performs this step.
- Establish a protected input path. Send encrypted input so it is decrypted only within the intended trusted boundary, rather than at an untrusted gateway.
- Run the model. Process prompts, retrieved document chunks, and model data under the protections supported by that deployment.
- Return and handle the result securely. Protect the response in transit, and apply retention, authorization, and logging rules outside the TEE as well.
The essential detail is the entire request path, not just the machine running the model. A confidential VM running a model does not help enough if an ordinary API gateway first reads and logs the plaintext prompt, or if sensitive retrieval results are exposed to an unprotected service.
For an example of why the hardware path matters, NVIDIA’s confidential computing documentation (opens in a new tab) describes GPU trust boundaries, attestation, and supported deployment models. GPU acceleration is common in LLM inference, so protecting only the CPU portion may leave gaps that a security architecture must address.
Remote attestation: verify, then release
Remote attestation is the mechanism that makes “trust this environment” more than a marketing promise.
An attestation flow may include signed claims about the platform, measurements of firmware or software, and a challenge value to help prevent replay. A verifier compares this evidence with an expected policy. A secret or decryption key is released only if those checks pass.
For example, imagine a business has encrypted a collection of private contracts. Its key service could be configured to release a decryption key only to an approved, attested inference workload. If the workload changes unexpectedly or its required security mode is disabled, that key-release request should fail.
This is an architectural example, not a claim that every confidential AI service performs all these checks by default. Google’s attestation documentation (opens in a new tab) and AWS’s Nitro Enclaves attestation and KMS documentation (opens in a new tab) show how verification can influence trust and key access.
Attestation also has limits. It cannot prove the application’s business logic is correct, the model’s answer is truthful, or every line of approved code is free of vulnerabilities.
A practical example: asking an LLM questions about private contracts
Suppose a fictional legal operations team has 5,000 contracts and wants employees to ask questions such as, “Which agreements require 60 days’ notice before renewal?”
A retrieval-augmented generation (RAG) system could search relevant passages, send them to an LLM, and produce an answer with references to the documents. But this architecture creates several places where sensitive content can be exposed: document ingestion, embedding generation, vector storage, retrieval, prompts, inference, output logs, and employee-facing results.
If this document assistant later grows into a system that can update records or take action, its security requirements expand beyond answering questions. Our guide to AI agents vs. AI chatbots explains why tool access and permissions matter when conversational AI becomes action-oriented.
A stronger design would begin with ordinary security measures: document access permissions, encryption at rest and in transit, data minimization, restricted logging, and policies that determine which employee can retrieve which contract.
The team could then place suitable parts of the processing pipeline inside a verified TEE. For example, a confidential inference deployment could receive the authorized document passages through a protected channel, decrypt them within the intended security boundary, and run the LLM on supported confidential CPU and GPU infrastructure.
Crucially, confidential inference does not automatically make the entire RAG pipeline confidential. If retrieval happens in an ordinary database service, the queries and document chunks visible to that service remain part of the threat model. If an employee can retrieve contracts they are not authorized to access, a TEE will not fix that authorization error.
A useful review is to map each stage to its actual trust boundary:
| RAG stage | Security question to verify |
|---|---|
| Document ingestion and embeddings | Where are raw contracts decrypted, transformed, and temporarily cached? |
| Vector storage and retrieval | Can the retrieval service or its administrators access sensitive passages or search terms? |
| Prompt assembly and model inference | Is every component that handles plaintext inside the verified protected boundary? |
| Answer delivery and logging | Who can read the generated answer, and are prompts or results copied into unprotected logs? |
This is an illustrative threat-model checklist, not a claim that a particular cloud product protects all four stages. Trace the actual deployment and verify each boundary independently.
Protecting the data is also different from validating the structure of an LLM response. If a contract analysis workflow needs consistent machine-readable results, our guide to building self-healing JSON pipelines with LLM APIs explores techniques for handling invalid structured output. Those reliability techniques complement confidential computing, but do not replace access controls, attestation, or encryption.
Who benefits from this design?
Potential use cases include organizations handling confidential legal documents, proprietary engineering plans, business forecasts, trade secrets, or regulated personal information. The value depends on the sensitivity of the data, the threat model, and what the actual cloud service can verify.
For a small public-content chatbot that never processes sensitive information, the complexity and cost of confidential infrastructure may not be justified. The right security level depends on the real consequences of disclosure, not on whether the application happens to use AI.
Confidential computing vs. a private LLM vs. end-to-end encryption
These phrases sound similar but answer different questions.
| Approach | Main question it answers | Important limitation |
|---|---|---|
| Private or self-hosted LLM | Who operates the model and controls the infrastructure? | Operators and privileged software may still be able to access live workloads, depending on the setup |
| Encrypted API connection | Is the request protected while travelling over the network? | The receiving endpoint can normally access plaintext |
| Confidential LLM inference | Is the active computation performed inside an attested, hardware-protected boundary? | Protection is limited to that boundary and its verified configuration |
| Data minimization and redaction | Can we avoid sharing sensitive content in the first place? | Removing sensitive fields may reduce model usefulness and may be imperfect |
These controls work best together. For example, removing unnecessary personal identifiers before inference reduces the amount of information at risk even when a confidential execution environment is available.
Also, do not confuse confidential computing with fully homomorphic encryption (FHE). FHE supports certain computations on encrypted values without decrypting them in the conventional way, while TEE-based confidential computing permits processing inside a protected hardware environment. They involve different trust, compatibility, and performance tradeoffs.
What cloud providers actually offer
Major cloud platforms document confidential computing capabilities, but their products and supported hardware differ. You should verify whether a specific offering covers your actual LLM inference path, rather than assuming every AI API automatically uses confidential execution.
Microsoft Azure
Azure Confidential Computing (opens in a new tab) describes hardware-backed TEEs and confidential workloads. Assess the exact service, VM type, attestation workflow, and accelerators required for your deployment. The existence of an Azure confidential computing offering alone does not establish that any separately chosen model endpoint runs inside it.
Google Cloud
Google Cloud Confidential Computing (opens in a new tab) includes Confidential VM, Confidential Space, and attestation capabilities. Google also documents GPU-enabled Confidential VM configurations (opens in a new tab) with specific hardware and provisioning requirements. Not every configuration or service has the same protections.
AWS
AWS Nitro Enclaves (opens in a new tab) provides isolated execution environments with cryptographic attestation and integrations such as AWS KMS. It is useful for protecting particular sensitive processing steps, but an enclave is not automatically a full, GPU-accelerated confidential LLM hosting solution. Confirm where inference actually occurs and how data travels between components.
NVIDIA and accelerated infrastructure
NVIDIA Confidential Computing (opens in a new tab) documents hardware and software capabilities for protecting accelerated workloads. Its attestation resources help explain why a claimed confidential GPU mode must be verified rather than assumed. Compatibility, supported configurations, and service availability should be checked against current provider documentation.
As of October 24, 2026: treat cloud platform support as service-specific and subject to change. Confirm region, instance availability, GPU generation, runtime version, configuration, pricing, and the published threat model before selecting a provider.
Seven questions to ask before buying confidential AI
If a vendor advertises “private,” “secure,” or “confidential” LLM processing, use this checklist during technical evaluation:
- What is the trusted boundary? Ask whether the claim covers the CPU, GPU, model runtime, prompts, retrieved data, and intermediate processing.
- Can we independently verify attestation? Ask what evidence is available, who validates it, which measurements are expected, and what happens when verification fails.
- Where is the prompt first decrypted? Trace load balancers, API gateways, authentication services, logging, and telemetry before the model endpoint.
- Who controls the keys? Determine whether secret release is tied to verified workload identity and an enforceable policy.
- What gets stored afterward? Review prompts, outputs, cache contents, logs, backups, data retention, and model-training permissions separately.
- What is outside the threat model? Ask about vulnerabilities in trusted code, malicious authorized users, side channels, output leakage, and denial-of-service attacks.
- What are the operational tradeoffs? Test model compatibility, latency, throughput, hardware availability, incident response, and actual cost with your own representative workload.
Ask vendors to put their answers in architecture diagrams, technical documentation, and contractual commitments where appropriate. “We use encryption” is not a substitute for an explicit threat model.
Security limitations you should not ignore
Confidential computing can strengthen a cloud AI system, but it cannot replace application security or responsible data handling.
- Trusted code can still be vulnerable. A TEE isolates approved code; it does not guarantee that code is safe.
- Outputs can disclose information. A model may reproduce sensitive details to an unauthorized user if the application has weak access controls or an unsafe prompt and retrieval design.
- Prompt injection remains relevant. Malicious instructions inside retrieved documents can manipulate an LLM’s behavior. Isolation does not inherently prevent this.
- Side-channel and implementation attacks remain possible. Security assurances depend on the supported hardware, patches, and declared threat model.
- Observability becomes more complex. Restricting privileged access can complicate debugging, monitoring, and incident response. Logging requires intentional design.
- Compliance is a separate assessment. Hardware isolation may support a risk-reduction strategy, but it does not automatically satisfy privacy laws or industry standards.
The safest approach is layered: authenticate users, authorize each document request, minimize the data sent to models, verify the confidential boundary, protect encryption keys, review vendor retention policies, and test the full application.
How to decide whether you need it
Start by drawing your real AI data flow, from the user’s device to retrieval services, the LLM, and the returned answer. Mark each step where plaintext sensitive data appears. Identify who could access it and what would happen if that access were abused.
Then ask whether conventional controls already reduce risk sufficiently. If privileged host access, multi-party data sharing, or cloud infrastructure trust remains a major concern, investigate a confidential computing architecture and request verifiable evidence of its protections.
For teams building production AI products, the goal is not to add another security buzzword. It is to define what must be trusted, reduce unnecessary trust, and verify the claims you rely on.
Frequently asked questions
Does confidential computing mean a cloud provider never sees my data?
Not automatically. A properly constructed and attested workload can restrict access by specific infrastructure components or operators, but the answer depends on the full request path, who operates the application, where the data is decrypted, and what the authorized software does with it.
Can I use any LLM in a trusted execution environment?
No. Compatibility depends on the runtime, model size, supported CPU and GPU hardware, memory, libraries, performance needs, and hosting platform. A provider’s general TEE support does not guarantee confidential inference for every model.
Does confidential computing stop an LLM from training on my prompts?
No. Model-training and data-retention policies are separate controls. You still need to check service terms, logging behavior, data flows, and whether any application explicitly sends prompts for training or evaluation.
Is confidential computing only for large enterprises?
No, but the business case is often strongest where sensitive information, third-party infrastructure trust, or strict threat-model requirements justify the added engineering effort. Smaller teams should begin with sound application security and compare costs before adopting specialized infrastructure.
Final takeaway
Confidential computing addresses a question that storage encryption and HTTPS cannot answer on their own: how do we reduce exposure of sensitive information while a cloud system actively processes it?
For LLM applications, the strongest designs combine appropriate TEEs, verified attestation, carefully controlled secret release, a protected inference path, and ordinary safeguards throughout retrieval, logging, and output delivery. The key is not to assume that a “confidential AI” label covers every step. Verify exactly what is protected.
References and further reading
- Confidential Computing Consortium: Scope and definition (opens in a new tab)
- NIST Computer Security Resource Center: Confidential Computing (opens in a new tab)
- Microsoft Learn: Azure Confidential Computing overview (opens in a new tab)
- Google Cloud: Confidential Computing overview (opens in a new tab)
- Google Cloud: Attestation (opens in a new tab)
- AWS: Nitro Enclaves cryptographic attestation (opens in a new tab)
- AWS: Using cryptographic attestation with KMS (opens in a new tab)
- NVIDIA: Confidential Computing documentation (opens in a new tab)
Join the conversation
Keep comments respectful and relevant. Please don't share private or sensitive information.
Discussion (0)
Join the conversation