SOC 2 Readiness
24/7 Security Monitoring
Canadian-Based SOC
Security Best Practices

Confidential Computing Frameworks

Protecting data in use with hardware-based trusted execution environments and attestation

GuardsArm Security Research8 min read7 chapters

Executive Summary

Encryption has long protected data at rest and in transit. The persistent gap has been data in use — the moment information is decrypted into memory to be processed, it becomes readable to the operating system, the hypervisor, the cloud operator, and any attacker who reaches that privilege level. Confidential computing closes this gap by executing workloads inside hardware-isolated Trusted Execution Environments (TEEs), where memory is encrypted and shielded even from privileged software.

This whitepaper explains how confidential computing works, the frameworks and hardware that make it practical, and where it belongs in an enterprise security strategy. It is written for security architects evaluating whether TEEs address real risks — such as untrusted cloud infrastructure, multi-party data collaboration, and protection of high-value keys and models.

Confidential computing shifts the trust boundary from the entire software stack down to the CPU and a small, verifiable enclave. What runs outside the enclave — including the OS and the cloud provider — no longer needs to be trusted with plaintext.

Key findings:

  • TEEs protect data in use, the last of the three data states to lack a mainstream hardware control.
  • Remote attestation is the linchpin: it lets a relying party cryptographically verify what code is running inside an enclave before releasing secrets to it.
  • The Confidential Computing Consortium provides vendor-neutral definitions and open-source projects that reduce lock-in.
  • Confidential computing is a targeted control for specific high-value workloads — not a blanket replacement for existing encryption and access management.

The Data-in-Use Problem

Modern security assumes data spends most of its life encrypted. TLS protects it in transit; disk and database encryption protect it at rest. But computation requires plaintext. The instant a CPU processes a record, it must be decrypted into memory.

Where the exposure lives

Once data is in memory, it is visible to any component with sufficient privilege: the operating system kernel, the hypervisor, firmware, and — in a cloud — the provider's host software and administrators. A vulnerability or malicious insider at any of these layers can read plaintext that all your at-rest and in-transit encryption was meant to protect.

Why this matters now

Enterprises increasingly run sensitive workloads on infrastructure they do not own or fully trust. Regulated data, cryptographic keys, proprietary algorithms, and machine-learning models all pass through memory on shared cloud hosts.

  • Cloud tenancy: you must trust the provider's entire stack with plaintext.
  • Multi-party collaboration: organizations that want to compute on combined datasets cannot expose their raw data to each other.
  • Key and model protection: the most valuable secrets are precisely those loaded into memory to be used.

The data-in-use gap is not theoretical. Memory-scraping malware and privileged compromise routinely target the decrypted state, because that is where the plaintext is.

Trusted Execution Environments Explained

A Trusted Execution Environment is a hardware-isolated region of a processor where code and data are protected from everything outside it — including higher-privileged software.

The core guarantees

  • Confidentiality: memory inside the TEE is encrypted by the CPU; other software sees only ciphertext.
  • Integrity: the hardware detects tampering with enclave memory or code.
  • Isolation: the OS and hypervisor can schedule the enclave but cannot read into it.

Two architectural models

Process-based enclaves (such as Intel SGX) carve a small, hardened region out of a single application. The trusted computing base is minimal, but developers must partition code to run sensitive logic inside the enclave.

VM-based confidential computing (such as AMD SEV-SNP, Intel TDX, and Arm CCA) encrypts an entire virtual machine. Existing workloads can lift-and-shift with far less refactoring, at the cost of a larger trusted computing base.

The trade-off

Smaller enclaves are easier to reason about and audit but harder to adopt. Whole-VM confidential computing is easier to adopt but trusts more code. Most enterprises today favor VM-based models for operational simplicity, reserving process-based enclaves for the highest-assurance secrets.

Remote Attestation: The Trust Anchor

A TEE is only useful if a remote party can verify that it is genuine and running the expected code. That verification is remote attestation, and it is what separates confidential computing from a marketing claim.

How attestation works

The CPU measures the code and configuration loaded into the enclave and produces a signed attestation report or quote, rooted in a hardware key the manufacturer vouches for. A relying party — or an attestation service — checks the signature and compares the measurement against a known-good value.

Why it changes the trust model

Only after attestation succeeds does the relying party release secrets — decryption keys, credentials, or data — into the enclave. This means the cloud operator can host the workload without ever being trusted with its contents.

  • Verify before release: keys flow to the enclave only once its identity and integrity are proven.
  • Freshness: nonces prevent replay of old attestation evidence.
  • Policy: relying parties define which measurements and firmware versions are acceptable.

Attestation is the feature security teams should scrutinize most. Without independent, verifiable attestation, an enclave's confidentiality claims cannot be trusted. The IETF RATS architecture (RFC 9334) provides a common vocabulary for evaluating attestation designs.

The Framework and Standards Landscape

Confidential computing spans silicon vendors, cloud platforms, and open-source software. Understanding the layers helps avoid lock-in.

The Confidential Computing Consortium

Hosted by the Linux Foundation, the Confidential Computing Consortium (CCC) provides a vendor-neutral definition of the field and stewards open-source projects that make TEEs usable across hardware.

Key open-source projects

  • Open Enclave SDK — a common API for building enclave applications across hardware types.
  • Enarx — runs WebAssembly workloads inside TEEs without code changes to the enclave logic.
  • Gramine — runs unmodified Linux applications inside SGX enclaves.
  • Veraison — open-source attestation verification services.

Cloud availability

Major cloud providers offer confidential VMs and confidential containers built on AMD SEV-SNP, Intel TDX, and, increasingly, confidential GPUs for protected AI inference.

Standards to reference

Align designs with the IETF RATS architecture for attestation and the CCC's technical guidance. NIST's guidance on cryptographic key management (SP 800-57) remains relevant, since attestation typically gates key release. Choosing projects that abstract the underlying hardware keeps you portable as the silicon landscape evolves.

High-Value Use Cases

Confidential computing earns its complexity on specific workloads where the data-in-use exposure is unacceptable.

Sensitive workloads in untrusted clouds

Regulated data — health records, financial transactions, personal information subject to Canadian privacy law such as PIPEDA — can be processed on public cloud infrastructure while keeping the provider outside the trust boundary.

Multi-party data collaboration

Several organizations can jointly compute on combined datasets — fraud detection across banks, research across hospitals — without any party exposing its raw data to the others. The enclave sees the combined inputs; the participants see only the agreed output.

Protecting keys, secrets, and models

  • Key management: cryptographic operations run inside enclaves so private keys never appear in host-readable memory.
  • AI/ML protection: proprietary models and sensitive training or inference data stay encrypted in use, including on confidential GPUs.
  • Blockchain and digital assets: enclaves protect signing keys and confidential transaction logic.

The common thread: the asset being protected is most exposed precisely when it is being used. That is the narrow, high-value problem confidential computing solves.

Adoption Challenges and Limitations

Confidential computing is powerful but not a universal control. Deploy it with clear eyes about its boundaries.

Performance overhead

Memory encryption and enclave transitions add cost. Whole-VM confidential computing has narrowed this gap considerably, but I/O-heavy and enclave-crossing workloads can still see measurable overhead. Benchmark before committing.

Development and operational complexity

Process-based enclaves require partitioning applications into trusted and untrusted halves. Even VM-based approaches add attestation workflows, key-release policies, and new failure modes to operate.

Side-channel risk

TEEs have been the target of sophisticated microarchitectural side-channel research. Vendors patch these through microcode and firmware updates, but security teams must keep enclave platforms current and factor residual risk into threat models.

Supply-chain trust

Attestation ultimately roots in trust of the CPU manufacturer's keys and firmware. Confidential computing narrows the trust boundary dramatically but does not eliminate trust — it relocates it to the silicon vendor.

What it does not do

Confidential computing does not replace access control, encryption at rest, network security, or secure coding. A vulnerability inside the enclave's own code is still exploitable. GuardsArm helps enterprises assess whether a workload genuinely warrants a TEE and, where it does, design the attestation and key-management architecture around it.

Building a Confidential Computing Strategy

Treat confidential computing as a targeted addition to a mature security program, sequenced against real risk.

Identify candidate workloads

Start from the data, not the technology. Which workloads process high-value plaintext on infrastructure you do not fully control? Those are your candidates — regulated data in the cloud, key operations, model protection, or cross-organization computation.

Choose the right enclave model

  • Favor VM-based confidential computing for lift-and-shift of existing workloads.
  • Reserve process-based enclaves for the smallest, highest-assurance secrets.
  • Prefer hardware-abstracting open-source frameworks to preserve portability.

Make attestation non-negotiable

Design key release to depend on successful attestation. Define acceptable measurements and firmware baselines as policy, and verify them with an independent attestation service.

Operate it responsibly

  • Keep enclave firmware and microcode patched against side-channel disclosures.
  • Monitor attestation failures as security events.
  • Document the residual trust boundary for auditors and risk owners.

Confidential computing is most valuable when scoped narrowly and integrated deliberately. Start with one high-value workload, prove the attestation and key-release model end to end, then expand. A GuardsArm security gap assessment can identify which workloads justify the investment and design the controls around them.

Key Takeaways

  • 1.Confidential computing protects data in use by executing workloads inside hardware-isolated Trusted Execution Environments, closing the last major encryption gap.
  • 2.Remote attestation is the trust anchor — secrets should be released to an enclave only after its code and integrity are cryptographically verified.
  • 3.VM-based confidential computing (SEV-SNP, TDX, Arm CCA) eases adoption; process-based enclaves (SGX) minimize the trusted computing base for the highest-assurance secrets.
  • 4.The strongest use cases are untrusted-cloud processing, multi-party data collaboration, and protection of keys, secrets, and AI models.
  • 5.TEEs relocate trust to the silicon vendor and carry performance, complexity, and side-channel considerations — deploy them narrowly on genuinely high-value workloads.

Sources & Further Reading

  1. Confidential Computing Consortium (Linux Foundation) — Technical publications
  2. IETF RFC 9334, Remote ATtestation procedureS (RATS) Architecture
  3. NIST Special Publication 800-57, Recommendation for Key Management
  4. Intel SGX / TDX and AMD SEV-SNP architecture documentation
  5. ENISA, Cloud Security and Trusted Execution guidance

Turn this research into a plan

Our team maps findings like these onto your environment and hands you a prioritized roadmap — not another report to file away.

Book a Free Consultation

Related Whitepapers