Security model
Temperloop has to see your cloud configuration to be useful. This page sets out exactly what it can see, what it can change, what it never touches, and how you stop it.
Where it runs
Temperloop runs in your cloud account. The collector, the proof engines, the database that holds the twin, and the evidence ledger all live there. It reads your organisation through roles you deploy, and every role's trust policy requires an sts:ExternalId, which closes the confused-deputy gap.
The AI model runs where you choose: Amazon Bedrock in your account, or a model endpoint inside your own VPC. Models only propose attack paths and fixes. They are treated as untrusted: their output is schema-checked and allow-listed, and they never decide what is true or safe. That is the proof engine's job.
What it reads, stores and never stores
| Reads and stores | Never stores |
|---|---|
| IAM, SCP, RCP, trust and KMS key policies | Object contents |
| Resource and network configuration | Secret values |
| Counts and timestamps derived from CloudTrail (principal, action, resource) | Plaintext from KMS |
| Approvals, Safety Cases and ledger entries | Database table items or raw request payloads |
Data reads are explicitly denied on the read-only role, for example s3:GetObject, secretsmanager:GetSecretValue and dynamodb:GetItem. Our own policy engine proves the deny still holds if someone later attaches an admin policy to the role, and a probe at connect confirms it in your accounts.
Three roles, each with the least it needs
| Role | Can | Cannot |
|---|---|---|
| TemperloopReadOnly every member account, plus a separate reader stack in the management account | Read configuration: IAM, SCP, RCP, trust, KMS policy, network. Read log metadata for replay. | Read data. Write anything. |
| TemperloopRemediator scoped write, only where you enable it | Attach or detach SCPs and RCPs named temperloop-*. Require IMDSv2 on instances. Narrow security-group ingress. Add WAF rules and load-balancer authentication rules. | Change any IAM identity policy. Change its own permissions (a permissions boundary prevents it). Act in units you exclude or on held-back actions. Merge code. |
| TemperloopDecoy optional, for Decoys | Create and remove decoys tagged temperloop:decoy with zero permissions. Add a CloudTrail data-event selector scoped to one decoy object. | Give a decoy any permission. Read or change your real objects, secrets or keys. Create roles or trust relationships. |
Permanent fixes are pull requests in the Terraform module that owns the resource, through your pipeline and your branch protection. A proof of value needs only the read-only role.
Controls you can check
- Proofs decide, not models. Every attack path and every fix is re-checked by a formal engine before it counts.
- Replay before change. Each action is replayed against your retained history to count the real calls it would break. Anything above your limit waits for a person.
- Two people. The twin baseline needs approval from security and from platform. Authors cannot approve their own Safety Case. Releasing the kill switch needs two people.
- One enforcement point for agents. Every agent action passes an allow-list, a schema check, role-based access, the kill switch, freeze windows and the autonomy level. Every attempt is logged.
- Tamper-evident record. Every proof, approval, change and decoy is written to an Ed25519-signed hash chain in the same transaction as the change. CloudTrail digest files are validated before replay.
- Kill switch. An SCP that denies the Remediator and Decoy roles across your member accounts.
What Temperloop never does
- Attack your live accounts. The red agent works only on the twin.
- Read your data.
- Change IAM identity policies directly. Identity changes arrive as pull requests.
- Act above your disruption limit, or on changes that need a third party, without a person.