Security assumptions and threat model¶
Understand what Caution is designed to prove, what it still trusts, and which attacks are outside the current security model.
Caution is designed to reduce the amount of trust required in infrastructure operators, deployment systems, and private build pipelines. It does this by combining confidential compute isolation, hardware attestation, reproducible builds, and local verification.
This page describes the current security assumptions for Caution deployments. It is not a formal proof, and it does not replace a review of your application source code, deployment configuration, or operational environment.
Security goals¶
Caution is designed to provide evidence for these claims:
- The workload is running inside a confidential compute enclave.
- The enclave reports hardware-backed measurements for the running image.
- The reported measurements can be reproduced from source code and build inputs.
- A verifier can compare the reproduced measurements with the running enclave.
- Requests sent through an active, correctly configured STEVE v2 client are encrypted all the way into the enclave, and ordinary application routes fail closed by default.
These goals are strongest when the application source is available, the build is reproducible, the app runs outside debug mode, and sensitive requests use an active, correctly configured STEVE v2 client.
Public browser bootstrap assets, platform health and attestation endpoints, and any additional raw ingress ports are outside STEVE's application-request guarantee.
What Caution trusts today¶
Caution currently supports deployments on AWS Nitro Enclaves. That means current deployments rely on:
- AWS Nitro Enclaves for enclave isolation and memory protection
- The AWS Nitro Security Module for attestation documents
- The AWS Nitro certificate chain for proving attestations came from genuine Nitro hardware
- The verifier's local machine and tooling when running
caution verify - The reviewed source code, build inputs, and configuration selected by the verifier
- The application developer to avoid vulnerabilities in application code
Caution reduces trust in operators and deployment systems, but it does not remove every trust dependency. In particular, AWS Nitro is part of the trusted computing base for Caution deployments today.
What Caution is designed to protect against¶
| Risk | How Caution addresses it |
|---|---|
| An operator claims to run one version of software but deploys another. | Verification compares the running enclave measurements with measurements reproduced from reviewed source and build inputs. |
| A deployment pipeline swaps or modifies the enclave image. | A PCR mismatch causes verification to fail. |
| A host operator tries to inspect enclave memory. | The workload runs inside a confidential compute enclave isolated from the host. |
| A host or proxy terminates normal TLS outside the enclave. | STEVE can keep protected application requests encrypted until they reach the enclave. |
| An old attestation document is replayed. | Verification uses a fresh nonce so old attestation documents cannot be reused. |
| A verifier needs evidence independent of Caution's infrastructure. | In its normal source-reproduction mode, caution verify runs locally and reproduces expected measurements from source, with possible cache reuse. |
What Caution does not protect against¶
| Out of scope | Why |
|---|---|
| Malicious or vulnerable source code | Verification proves that reviewed code and the running enclave match. It does not prove that the code is safe, bug-free, or appropriate for a use case. |
| Compromised source repositories, dependencies, or build inputs | If a verifier reviews and reproduces compromised inputs, Caution can prove those inputs produced the running enclave, but it cannot determine that the inputs are trustworthy. |
| A compromised verifier machine | If the machine running caution verify is compromised, its output can be tampered with. See Verifier environment. |
| Debug-mode deployments | AWS Nitro Enclaves zero out PCR values in debug mode, so production verification is not meaningful while debug mode is enabled. |
| Plaintext exposure when end-to-end encryption is disabled, legacy plaintext fallback is enabled, or data uses a separate raw ingress port | Standard TLS or a raw protocol may expose plaintext outside the enclave. Use STEVE clients and keep plaintext fallback disabled when data must be hidden from the host. |
| Missing or unavailable source code | Without source access or known expected PCRs, a verifier cannot independently reproduce the build. |
| Non-reproducible application builds | If the application build is not reproducible, attestation can show that a deployment has not changed, but not that it matches specific source code. |
| Compromised Nitro hardware, firmware, or attestation roots | Current Caution deployments rely on AWS Nitro for hardware isolation and attestation. If that trust root lies or is compromised, Caution cannot independently prove Nitro's claims today. |
Important deployment assumptions¶
For the strongest guarantees:
- Publish source locations with
app_sourcesso third parties can reproduce the build from the attestation manifest. - Keep production deployments outside debug mode.
- Make the application build reproducible, not just the Caution platform components.
- Use an active, correctly configured STEVE v2 client when application data must remain hidden from the host or infrastructure operator, keep plaintext fallback disabled, and do not send sensitive plaintext over additional raw ingress ports.
- Verify from a machine and network environment you trust. See Verifier environment.
- Review the reproduced source and build artifacts before deciding whether to trust what the app does.
Verifier environment¶
caution verify normally reproduces the enclave image from source and compares measurements on your machine, but may reuse cached reproduction builds. --pcrs uses supplied expected measurements rather than rebuilding and does not bind the TLS certificate; --inspect-attestation only parses an attestation and explicitly does not verify Nitro, expected PCRs or TLS. Your machine and the environment that built your caution binary remain part of what you trust: if either is compromised, a verification result can be forged.
The CLI records best-effort environment heuristics, not a comprehensive or cryptographic check of either machine. [BUILD] findings describe the environment where the CLI's build script ran, which may be a container; they do not attest that container's host. [RUN] findings describe the current process environment. No findings does not prove that either environment is safe.
| Finding | Why it matters |
|---|---|
Package manager found (brew, apt-get, npm, ...) |
Software on the machine can change outside your review. |
| Untrusted OS | The detected OS is not recognized as StageX. macOS and most Linux distributions report this; it is a heuristic, not proof of compromise. |
LD_PRELOAD is set |
May preload code into dynamically linked processes that honor it. The heuristic detects the variable's presence, even if empty; it does not prove injection into caution. The StageX CLI recipe requests static linking. |
The notice is advisory, not fail-closed. When findings have not been acknowledged for the current build ID and findings set, the CLI explains the risk. It asks you to press Enter only when both stdin and stderr are terminals. Noninteractive runs warn and continue without acknowledgement; prompt or acknowledgement-storage failures do not fail the command. Only the literal CAUTION_ACCEPT_ENV_RISK=1 silently acknowledges the current findings, subject to successful local storage. Other values do not enable silent acknowledgement. This does not replace Nitro or expected-PCR verification.
Acknowledgement is keyed by the build ID and a fingerprint of the build/run findings. The ID is the package version plus the first 12 characters of the supplied CAUTION_CLI_GIT_SHA or Git commit (falling back to unknown), not a digest of the binary. When findings remain, a changed ID or findings set causes another notice; rebuilding different bytes under the same ID and findings does not. After successful verification, a one-line reminder appears only if findings remain. Run caution environment to see the full report and acknowledgement status at any time.
For verification you rely on, prefer a StageX-built CLI on a dedicated, minimal machine or VM with no package managers and no LD_PRELOAD. On Linux/x86_64 only, with Docker/BuildKit available, run make install-cli-stagex from the reviewed platform checkout to build and install that CLI. A StageX build does not prove that its underlying host or your verification machine is uncompromised. Findings are expected on development machines; treat results from an untrusted environment as convenience checks rather than independent evidence.
Cloud provider and hardware trust¶
Caution is designed to reduce trust in cloud operators, but current AWS deployments still rely on AWS Nitro Enclaves as the hardware trust root.
If an infrastructure administrator controls the host but Nitro isolation and attestation are working correctly, Caution can still provide useful evidence about the enclave and the software running inside it. If AWS Nitro hardware, firmware, or the attestation certificate chain is malicious or compromised, that is outside Caution's current protection boundary.
Multi-hardware attestation is on the Caution roadmap. The goal is to reduce reliance on a single hardware root of trust by requiring multiple attestation technologies to agree on workload state. Today, Caution supports AWS Nitro Enclaves.
Relationship to the Distrust Threat Model¶
Caution follows the Distrust Threat Model, an adversary framework designed by the same team behind Distrust and Caution. The model assumes systems may already be compromised at some level and encourages designs that reduce reliance on operators, infrastructure, and deployment pipelines.
Caution applies that approach by making enclave deployments locally verifiable from source instead of relying only on promises from operators or cloud infrastructure.
See also¶
-
Verifiability
Learn how Caution connects running enclaves back to source.
-
Attestations
Learn how Caution verifies hardware-backed enclave measurements.
-
End-to-end encryption
Protect data all the way into the enclave.
-
Verify an app
Use
caution verifyto check a running app.