The database is encrypted at rest.
The connection uses TLS. The backups are encrypted. The keys are stored in a managed service. Access to production requires strong authentication.
Then the application processes the data.
At that moment, the host operating system, hypervisor, cloud platform, privileged administrator, or another highly trusted component may be able to reach the data or alter the code using it.
For many workloads, that risk is accepted and managed through ordinary cloud, operating-system, identity, and application controls.
For some workloads, it is the reason the architecture is not yet complete.
That is where a Trusted Execution Environment can matter.
Consider a TEE when the system must protect code or data from the machine that runs it, and when attestation can be used to decide whether that workload should receive a key, secret, data set, or authority. Start with the largest managed boundary that satisfies the threat model. Use a specialized enclave only when the narrower boundary is worth the engineering and operating cost.

What a Trusted Execution Environment Actually Does
The Confidential Computing Consortium defines confidential computing as protecting data in use by performing computation in a hardware-based, attested Trusted Execution Environment. Its technical analysis describes three central properties of a TEE: data confidentiality, data integrity, and the ability to provide evidence about the environment.
In practical terms, a TEE creates a hardware-enforced boundary around code and data while they are being processed.
Depending on the implementation, that boundary may surround:
- An entire virtual machine.
- A group of containers.
- A smaller application enclave or isolated process.
- A protected function inside a device or processor.
The processor and supporting platform isolate the protected workload from components outside that boundary. Memory encryption helps prevent a host or hypervisor from reading the workload’s active data directly. Integrity protections help detect or prevent unauthorized modification. Attestation allows the environment to produce cryptographic evidence about what it is and how it started.
This is different from simply encrypting a disk.
Disk encryption protects stored data when the disk is not being legitimately used. TLS protects data moving between systems. A TEE addresses the period when an application must operate on the data in memory. NIST’s hardware-enabled security guidance treats TEEs as one part of a layered platform-security approach, not as a replacement for the other layers.
It is also different from an HSM or TPM.
An HSM is designed primarily to protect cryptographic keys and operations. A TPM provides roots of trust, measurements, and protected key functions for a platform. A TEE provides an environment in which general application code can process protected data. These technologies can work together, but they solve different parts of the problem.
The First Question Is Who Must Not Be Able to See the Data
Do not begin by asking which confidential-computing product to buy.
Begin by naming the actor the architecture must exclude.
Possibilities include:
- A cloud-provider operator with host-level access.
- A hypervisor or host operating system that may be compromised.
- An infrastructure administrator who should operate the platform without seeing application data.
- A customer or partner running your software but not entitled to inspect its code, model, or keys.
- One party in a shared analytics project that should not see another party’s source data.
- A neighboring tenant or workload attempting to reach protected memory.
- A device owner who should use a function without extracting its protected material.
If none of those actors belongs in the threat model, a TEE may add complexity without changing the most important risks.
If the primary concerns are stolen user credentials, vulnerable application code, excessive API authority, weak endpoint security, unpatched servers, poor backups, or uncontrolled data sharing, address those conditions directly. A TEE can isolate a vulnerable application from the host and still leave the vulnerability inside the protected boundary.
The security question is not whether the workload uses confidential computing.
It is:
Which components and operators are removed from the trust boundary, and which ones remain inside it?
Google Cloud’s confidential-computing overview makes this distinction explicit. A confidential VM can remove the cloud stack, host operating system, hypervisor, and cloud administrators from the workload’s trust boundary. The guest operating system, guest administrators, and applications remain trusted. A different deployment model may draw the boundary differently.
That detail matters more than the product label.
Attestation Turns Isolation Into an Architectural Control
Memory encryption is useful.
Attestation is what allows another system to act on the protection claim.
An attestation service evaluates hardware- and software-backed evidence about the environment and returns a signed result. A relying service can compare that result with policy before releasing something valuable.
For example:
- A workload starts inside a TEE.
- The platform measures relevant hardware, firmware, boot, image, or application state.
- The workload requests an attestation result.
- A verifier evaluates the evidence against policy.
- A key service, data owner, or API releases access only when the claims match the approved state.
Microsoft’s Azure Attestation overview describes this as converting evidence from a compute environment into validated claims and cryptographic proof. Azure also supports secure key release, allowing a key to be released only after code proves that it is executing in an approved environment.
AWS applies the same principle to Nitro Enclaves. An enclave can produce a signed attestation document containing measurements of the enclave. AWS KMS policies can then use attestation condition keys so cryptographic operations are permitted only when those measurements match policy.
Without that connection, an organization may know that a protected environment exists but still release keys and data through the same identity-only process used everywhere else.
The stronger pattern is:
Identity says which workload is asking. Attestation says what environment is actually running. Policy requires both before authority is released.
Choose the Largest Boundary That Solves the Problem
TEE designs generally become more specialized as the protected boundary gets smaller.
Confidential virtual machines
A confidential VM protects the memory and state of a complete virtual machine from the host or hypervisor. It is usually the most practical starting point for an existing workload because the application may require few or no code changes.
The tradeoff is that the guest operating system, guest administrators, agents, libraries, and applications remain inside the trusted boundary. A compromised administrator inside the VM may still reach the data.
Use this model when the main concern is infrastructure-level access and the existing application stack can remain trusted.
Confidential containers and managed services
Confidential containers can bring hardware-backed isolation to cloud-native workloads while fitting container deployment and scaling patterns. Managed confidential databases, analytics services, AI services, and collaboration environments may reduce the amount of custom platform engineering even further.
This is often attractive when the organization wants data-in-use protection but does not want to build and maintain its own attestation, enclave runtime, and deployment tooling.
Microsoft’s current deployment-model guidance recommends beginning with confidential VMs or managed container offerings for most new deployments. It treats application enclaves as specialized options for narrower requirements.
Application enclaves
An application enclave protects a smaller portion of code and memory from the rest of the host, and sometimes from administrators of the parent system. That smaller trusted computing base can provide a stronger separation for a narrowly defined function.
It also creates more engineering work.
The application may need to be divided into trusted and untrusted components. Inputs, outputs, networking, persistence, debugging, telemetry, updates, crash handling, and recovery must cross the enclave boundary deliberately. AWS Nitro Enclaves, for example, have no interactive access, persistent storage, or external networking; they communicate through the parent instance.
Use this model when a small, high-value function must remain isolated and the organization can support enclave-aware development and operations.
Use a Raspberry Pi and OP-TEE to Learn the Architecture
A Raspberry Pi can be a useful way to make TEE concepts concrete before an organization commits a production workload to specialized hardware or a cloud platform.
The OP-TEE Raspberry Pi 3 developer build gives architects and engineers a physical lab for working with an Arm TrustZone-style split between the normal world and the secure world. The documented build combines Trusted Firmware-A, OP-TEE, U-Boot, a stripped-down Linux environment, Trusted Applications, client libraries, and test tooling. A team can boot the stack, observe it through UART, run xtest and the OP-TEE examples, and change both the normal-world client and the Trusted Application.
That makes the Pi useful for prototyping questions such as:
- Which small operation belongs inside a Trusted Application?
- Which inputs and outputs must cross the normal-world and secure-world boundary?
- How should the client authenticate a request and constrain the authority of the Trusted Application?
- What happens when the normal-world process sends malformed, oversized, reordered, or unauthorized input?
- Which state should remain sealed or protected across calls and restarts?
- What evidence would a production verifier require before releasing a key or sensitive test data?
- How will version changes, failures, logging, and recovery behave across the boundary?
A lab can also use a mock verifier or a lab-only key service to exercise an attestation-gated release workflow. That is useful for proving the application logic and failure paths. It is not proof of hardware-rooted remote attestation on the Pi.
The distinction is critical because the OP-TEE project puts a direct warning on the Raspberry Pi 3 port: it is not a secure implementation. The processor exposes Arm TrustZone exception states, but the board lacks mechanisms needed to provide secure boot, secure memory, protected peripherals, and other production security properties. The project describes the port as being solely for education and prototyping.
Use the Pi to learn the architecture, build a test harness, exercise the client-to-Trusted-Application interface, and discover operating problems early.
Do not use the Pi prototype to claim that:
- The device resists a physical attacker.
- The boot chain is securely rooted and measured.
- Normal-world compromise cannot reach protected memory or peripherals.
- A production key should be released based on the lab state.
- The prototype provides the same assurance as a supported confidential VM, production TrustZone platform, secure element, or enclave-capable service.
The right graduation path is to preserve the prototype’s interface, tests, denial cases, and update logic, then move the workload to hardware or a managed service whose documented security boundary satisfies the production threat model.
When It Makes Sense for Small and Mid-Size Businesses
Company size is not the deciding factor.
Threat model, data consequence, customer obligation, and operational capacity are.
A small or mid-size business should seriously consider a TEE when it has one or more of these conditions:
- It processes highly sensitive customer, payment, health, financial, identity, or legal data in a public cloud.
- A customer contract or regulated use case requires protection from infrastructure or cloud operators.
- It operates a software product inside a customer’s environment and must protect proprietary code, models, keys, or decision logic from the environment owner.
- It uses an external AI, analytics, or processing platform but must reduce exposure of prompts, source data, intermediate results, or model assets while computation occurs.
- Two organizations need to analyze combined data without either party receiving the other’s raw data.
- A particular cryptographic or data-processing function has consequences high enough to justify a dedicated isolation boundary.
For these organizations, the best adoption pattern is usually to buy the boundary rather than build it.
Start with a supported confidential VM, container service, database, analytics platform, or other managed confidential-computing option already available in the cloud environment. Select one narrow workload. Confirm that the provider’s exact boundary removes the actor in the threat model. Use the provider’s attestation and key-management integration. Preserve a non-confidential fallback only if the risk decision permits it.
Do not begin with custom enclave code unless the workload truly requires a narrower boundary.
There are also many situations where a smaller organization should wait.
If it cannot yet maintain ordinary asset inventory, patching, identity security, backups, logging, application testing, and cloud configuration, a TEE is unlikely to be the next best control. If nobody can explain the attestation policy, update process, recovery path, or evidence, the organization may be buying a security property it cannot operate.
For a small or mid-size business, the first pilot should answer five questions:
- Which actor is removed from the trust boundary?
- Which specific data or function gains meaningful protection?
- What must successfully attest before keys or data are released?
- What changes in cost, performance, compatibility, support, backup, and recovery?
- Who will maintain the policy and respond when an update changes the measurements?
If the answers are concrete, the business may have a good use case.
If the answer is only “better encryption,” it probably does not have a design yet.
For teams that need hands-on familiarity before selecting a provider, the Raspberry Pi and OP-TEE lab can be a low-cost first step. Treat its output as architecture and test evidence, not production security evidence.
When It Makes Sense for Enterprises
Enterprises encounter the same decision at larger scale and across more complicated trust relationships.
Common enterprise use cases include:
- Regulated or sovereignty-sensitive workloads moving to public cloud infrastructure.
- Central analytics over data owned by different business units, customers, jurisdictions, or partners.
- AI inference or training involving protected prompts, documents, models, embeddings, or intermediate state.
- Payment, identity, fraud, healthcare, and financial-processing functions with material data-in-use exposure.
- Multi-tenant services that need stronger isolation between the platform operator and customer workloads.
- Cryptographic services, signing systems, rights management, or proprietary decision engines distributed into environments the enterprise does not control.
- Administrative separation in which infrastructure teams operate systems without gaining routine access to workload data.
At enterprise scale, approving one confidential VM is not the difficult part.
The difficult part is operating attested computing as a platform capability.
That requires:
- An approved set of TEE patterns and supported hardware or cloud services.
- A defined trust model for cloud operators, host administrators, guest administrators, workload owners, and data owners.
- Attestation policies with owners, version control, review, testing, and emergency change procedures.
- Key and data-release services that evaluate attestation rather than merely recording it.
- A software-supply-chain process that connects approved source and build artifacts to expected measurements.
- Update and patch procedures that can introduce new measurements without causing an outage or silently widening policy.
- Evidence showing which workload version was trusted, which data it received, which policy allowed it, and what result followed.
- Capacity, performance, observability, backup, failover, and incident-response designs that work within the chosen TEE’s limitations.
- A lifecycle process for hardware vulnerabilities, firmware changes, attestation roots, deprecated algorithms, and provider support.
This is why enterprises should avoid treating confidential computing as a special VM SKU.
It is a trust and authorization architecture.
What a TEE Does Not Fix
A TEE can narrow the number of components that must be trusted.
It does not make the remaining components trustworthy by declaration.
It does not automatically fix:
- Vulnerable or malicious application code inside the protected boundary.
- Excessive permissions granted to the workload.
- Compromised users, service identities, or guest administrators that remain in scope.
- Sensitive data intentionally included in outputs, logs, traces, or API responses.
- Weak input validation, business logic, authorization, or transaction controls.
- Software-supply-chain compromise that becomes part of an approved measurement.
- Availability failures, denial of service, capacity exhaustion, or loss of recovery capability.
- Endpoint compromise before data enters the TEE or after results leave it.
- Every microarchitectural, side-channel, firmware, or physical attack.
The Confidential Computing Consortium’s threat-model discussion is explicit that deployments may make different trust assumptions about hosts and operators. Google’s Confidential Space security overview likewise identifies software-supply-chain and other attacks outside the scope of that service’s specific threat model.
Read those boundaries before treating an attestation result as a complete security verdict.
Use a Five-Part Decision Test
Before selecting a platform, write one page with five answers.
1. Asset
What exact data, code, model, key, algorithm, or transaction requires protection while in use?
2. Adversary
Which actor can reach it today but should no longer be trusted: cloud operator, hypervisor, host administrator, customer, partner, neighboring workload, or device owner?
3. Boundary
Which TEE model removes that actor while leaving an acceptable set of components inside the trusted computing base?
4. Release decision
Which key, secret, data set, API, or authority will be withheld until attestation proves that the approved environment is running?
5. Operations
How will the organization patch, update, observe, scale, recover, investigate, and retire the workload without defeating the boundary?
If the architecture cannot name the release decision, attestation may be decorative.
If it cannot name the adversary, the TEE may be unnecessary.
If it cannot explain operations, the protection may fail at the first update or outage.
What Security Leaders Should Do This Week
Select one workload that processes sensitive data in the cloud, shares data across organizational boundaries, or distributes valuable code into an environment you do not fully trust.
- Draw the current trust boundary. Include the cloud platform, hypervisor, host, guest OS, administrators, application, dependencies, key service, data owner, and output systems.
- Name the actor to exclude. Do not use “attackers” as the answer. Identify the privileged component or operator whose access the architecture should remove.
- Choose the least specialized model. Evaluate a managed confidential service, confidential VM, or confidential container before designing an application enclave.
- Define the attestation decision. State what the system will refuse to release when measurements, version, configuration, signer, or policy do not match.
- Test an update. Change the approved workload version and observe how measurements, policy, key release, rollback, and evidence behave.
- Test a denial. Launch an unapproved image or configuration in a safe environment and prove that the key or data remains unavailable.
- Review what remains trusted. Confirm that guest administrators, application code, dependencies, outputs, and recovery processes receive the controls their remaining authority requires.
Then ask the deciding question:
Are we using a TEE to remove a real actor from a necessary trust boundary, or are we adding confidential-computing language to a system whose main risks remain somewhere else?
That answer should determine whether to proceed.
Protect the Workload From the Platform When the Risk Requires It
Trusted Execution Environments close a real gap.
They can protect data while it is being processed, reduce dependence on infrastructure operators, and turn measured workload state into an authorization condition.
They are not a universal upgrade for every server.
The right use case begins with a specific asset, a specific adversary, a smaller trust boundary, and an attestation result that changes a real access decision.
MicroSolved, Inc. can help organizations determine whether confidential computing fits the threat model, compare TEE deployment patterns, review cloud and application trust boundaries, design attestation and key-release controls, and test the resulting architecture.
Useful engagements may include:
- Security architecture and threat-model reviews for confidential workloads.
- Azure, AWS, and Google Cloud confidential-computing design assessments.
- Attestation, key-release, identity, and least-privilege reviews.
- Application, API, container, and cloud-configuration testing around TEE boundaries.
- Software-supply-chain, update, recovery, logging, and incident-response validation.
- Privacy-preserving analytics and cross-organization data-collaboration design reviews.
- Cryptographic design and key-management assessments.
To discuss a TEE or confidential-computing architecture review, contact MicroSolved at info@microsolved.com or +1.614.351.1237.
Relax. We’re on watch.
AI tools were used as a research assistant for this content, but human moderation and writing are also included.