The promise of "Confidential AI" is simple: you should be able to use a powerful Large Language Model (LLM) without the service provider ever seeing your private data. While hardware-enforced Trusted Execution Environments (TEEs) like Intel TDX or NVIDIA’s H100 "Confidential Computing" mode make this possible for simple inference, real-world AI agents are rarely so isolated. They need to search the web, call APIs, and provide logs for safety monitoring.
A new paper from researchers at Acompany Co., Ltd. introduces CORDE, a system designed to bridge the gap between strict data confinement and the functional needs of modern AI agents.
TL;DR
CORDE implements the "Confine or Declare" principle: user data is strictly confined within a secure environment by default, but can leave only after its exact contents, recipient, and reason are recorded in a tamper-evident, user-inspectable log. Evaluation on NVIDIA H100 GPUs shows this accountability mechanism adds less than 0.5% latency overhead to complex agent tasks.
What Problem Does This Paper Address?
Confidential computing creates a "black box" where data is processed securely. However, AI agents often need to interact with the outside world (e.g., fetching a menu from a website). These external calls can inadvertently leak sensitive information derived from the user's prompt.
Furthermore, service providers need some level of visibility for safety monitoring and debugging. Current solutions either block all external communication (making agents useless) or rely on "soft" controls like LLM-based anonymization, which are not verifiable. The authors argue that since we cannot perfectly prevent all leaks in a functional system, we must instead make every disclosure accountable.
Methods
The researchers propose the Confine or Declare principle. To put this into practice, they built CORDE, which consists of three main pillars:
corde-rs(Information-Flow Control): A Rust library that uses the type system to track user data. Data starts as aUserValue<T>(confined). To send it to an external service, the code must call adeclarefunction, which returns aDeclaredValue<T>only after the disclosure is logged.- Static Effect Checking: To prevent "side-channel" leaks (like a function writing private data to a global variable or a hidden socket), the authors developed a checker that analyzes Rust’s Mid-level Intermediate Representation (MIR). It ensures that no code within a "confine block" can bypass the declaration system.
- TEE-Based Ledger: Declarations are sent to a separate, secure ledger service (built on the Confidential Consortium Framework). This ledger is tamper-evident and append-only. Users can verify the ledger’s integrity and identity via Remote Attestation (RA), ensuring the provider hasn't swapped the real log for a fake one.
Datasets
The authors evaluated CORDE using:
- AppWorld: A robust benchmark for agentic LLMs that requires multi-step tasks and frequent external API calls (e.g., interacting with mocked Amazon or Spotify services).
- Synthetic Attack Scenarios: They demonstrated CORDE’s effectiveness using an "indirect prompt injection" attack, where a malicious website tricks an agent into leaking a user's secret support code.
Key Insights and Ideas
- Accountability as a Safety Valve: The core "aha" moment is shifting the goal from absolute prevention (which limits utility) to verifiable disclosure. If an agent is tricked into leaking data, the user has a cryptographic receipt of exactly what happened, providing a basis for investigation.
- Inference Dominates Latency: In the world of LLMs, the time taken to generate tokens (seconds) vastly outweighs the time taken to write a log entry to a secure ledger (milliseconds). This makes high-security auditing surprisingly "cheap" in terms of performance.
- Cryptographic Binding: A critical design detail is binding the inference service to a specific ledger identity (
pkL). This prevents a malicious provider from showing a user a "clean" log while actually recording disclosures in a different, hidden one.
Key Results
The system was tested on an NVIDIA H100 GPU within an Azure Confidential VM.
- Negligible Overhead: On the AppWorld benchmark, CORDE added only 0.44% to total task latency.
- High Throughput: The shared ledger handled approximately 880 declarations per second, which the authors estimate could support over 7,000 concurrent agent tasks.
- Successful Detection: In the prompt-injection test, CORDE successfully forced the agent to log the secret it was attempting to leak before the request was sent, allowing the user to detect the breach.
Limitations and Future Work
- Side Channels: The current implementation does not protect against low-level microarchitectural side channels (like timing attacks).
- The "Trust" Boundary: While the system makes concealment detectable, it assumes the provider cares about maintaining user trust. A provider could still choose to delete the log entirely (Denial of Service), though they couldn't do so without the user noticing.
- Multi-User Data: The current model focuses on single-user data. Future work is needed to handle scenarios where an agent combines data from multiple users while maintaining individual accountability.
Summary updated