# Security at STACK

STACK keeps access decisions, credentials and revocation outside the agent’s runtime and gives customers independent ways to verify those controls, even if the agent itself is compromised.

## Security model

If an attacker takes control of an agent, they inherit only the access already granted to it. Those limits remain outside the agent’s runtime and are checked again on every request. Our attack tests begin from that compromised state, and customers can verify the controls using their own records and infrastructure.

### Access boundary

### Access is agreed before the agent starts

The Passport carries the agent’s permitted access and references the job and approval behind it. For a fleet Mission, STACK checks the live policy and membership, the Mission’s scope and remaining allowance, and the exact request before using a credential. Allowed work proceeds automatically. A rule that requires review holds the request until a person approves it. With controls off, a data flow that is not permitted is recorded as a warning and the request goes through.

**Compromised agent**

The attacker controls its runtime and holds its valid Passport.

**Every new request must match every limit**

1. Job, plus authority and identity where set **✓**
2. Systems and actions **✓**
3. Credential access **✓**
4. Request limits **✓**
5. Approvals, runtime checks and revocation **✓**
6. Permitted data flows **×**

Data flow not permitted **Request refused**

### Attack tests

### When testing the boundary, we found that compromised agents are fully contained

We tested 28 scenarios in which an attacker controlled the agent runtime and held a valid Passport. The attacker tried to steal credentials, widen access, bypass approvals, move data and continue after revocation. STACK contained every tested attack.

### Write recovery is tested separately

These tests cover concurrency, response loss and misuse of the stable operation handle. They verify one generic dispatch without claiming that every external service provides exactly-once execution.

### Customer verification

### Checking STACK’s claims

Customers can use STACK’s public keys, records from their own account and customer-controlled infrastructure to check these claims without relying on this page.

### Passport signatures

### Verify a Passport without calling STACK.

STACK publishes its signing keys through a public JWKS endpoint. The TypeScript and Python SDKs can verify the signature, issuer, audience and expiry locally.

- **Method:** `JWKS: https://api.getstack.run/v1/.well-known/jwks.json`
- **What it proves:** The Passport was signed by the stated issuer and its signed claims have not changed.
- **Limit:** Offline verification does not establish current revocation status.

[Read about Passport verification](/docs/concepts/passports)

### Audit chain

### Recompute the audit chain from your own export.

An authenticated export contains the values needed to recompute each entry hash and confirm the link to the preceding row.

- **Method:** `npx @getstackrun/cli audit verify-chain`
- **What it proves:** Whether an exported row was changed, removed or inserted without rebuilding the rest of the chain.
- **Limit:** A separately stored chain head is needed to detect a complete rewrite of the chain. Reading and exporting the record needs controls.

[Read about the audit log](/docs/concepts/audit)

### Customer key

### Remove STACK’s ability to decrypt customer-key data.

Supported operator ciphertext can be wrapped by a key in the customer’s AWS account. Revoking the IAM grant makes the next decrypt fail closed.

- **Method:** `Expected response after grant revocation: HTTP 503 · CMEK_REVOKED`
- **What it proves:** STACK cannot use ciphertext covered by the revoked customer key.
- **Limit:** This applies to the documented CMEK stores, not data held by unrelated subprocessors.

[Read about encryption and CMEK](/docs/security/encryption-cmek)

### Live revocation

### Check whether authority is still valid now.

STACK-enforced paths perform a live revocation lookup on every verified call. The CLI uses the online verifier when current state matters.

- **Method:** `npx @getstackrun/cli passport verify <token>`
- **What it proves:** Signature, expiry and current revocation state at the time of the check.
- **Limit:** A service that only checks the signature remains bounded by the Passport expiry.

[Read about revocation](/docs/concepts/revocation)

## Due diligence

A security review covers the product and the company operating it. For STACK, that includes protection of customer data, operational controls, standards used at each trust boundary, and material available for independent review.

### Customer data

### Customer data and cryptography

STACK handles account data, signed requests, selected payloads, credentials and audit records. The controls differ by data type; “encrypted” is not treated as one blanket property.

| Data | Protection | Important detail |
| --- | --- | --- |
| Upstream credentials | AES-256-GCM envelope encryption with AWS KMS. In proxy-only mode, the credential is added only inside the boundary. | The agent receives the upstream response, not the raw credential. |
| Proxy responses | Only the final screened and redacted response is stored, encrypted with operation-bound authenticated encryption. | It can be read for up to 24 hours by an authorised caller, then the payload is scrubbed while non-payload metadata and hashes remain. |
| Identity evidence | The Passport carries opaque claim references. The underlying identity assertion is encrypted separately. | A receiving party can request the evidence it is authorised to see without placing PII in the Passport JWT. |
| Audit records | Append-only rows, per-operator hash chaining and signed records for material decisions and outcomes. | Kept for 365 days on every account. With controls, exports can be retained outside STACK. |
| Data in transit | TLS 1.2 or later on the public API, MCP transport and dashboard. | The security of the final upstream hop also depends on the receiving service. |
| Data location | Application services run in Stockholm, the managed database in Frankfurt and platform KMS in eu-north-1. | Selected third-party services may process data elsewhere. The Privacy page records those relationships. |
| Customer-managed keys | Customers can use an AWS KMS key in their own account for the supported operator ciphertext stores. | Revoking the IAM grant makes covered decrypt operations fail closed. |

### The account

### What the account holds, and what it never holds

An account gives agents a card, a wallet, an inbox, a phone number, memory and files. Each is protected in its own way, and some of it never reaches STACK at all.

| Data | Protection | Important detail |
| --- | --- | --- |
| Your card | Stored by Agentcard, added on your own device. STACK never receives the card number. | At a checkout the agent types a placeholder number, and Agentcard replaces it with the card. |
| USDC wallet | Owned by the customer and held at Privy. STACK holds no key to any wallet. | The agent’s key can sign only a USDC transfer on Base, up to the limit the customer set. |
| Payments received | Paid into the customer’s own Stripe account through a restricted key. | STACK holds none of the money. The key can create links and checkouts and read payments. |
| Mail, texts and transcripts | Scanned on arrival, then stored encrypted under the account. | Twilio keeps no call audio. |
| Drive files | Each file is sealed with KMS envelope encryption, bound to the account and the file, and stored in Stockholm. | Covered by customer-managed keys. Share links are signed and expire. |
| Memory | A graph database on a private network in Stockholm. Every query is bound to the account. | Not yet covered by customer-managed keys, which are planned. Model providers are called with data collection denied. |
| Brain | A knowledge base for each account on Amazon Bedrock in Frankfurt. Staged files are encrypted at rest. | Not yet covered by customer-managed keys, which are planned. Erasing the account deletes the knowledge base, its vectors and the staged files. |
| Providers outside the EU | Twilio, Privy and Agentcard process data in the United States. | The Privacy page lists every provider and what it receives. |

### STACK operations

### How STACK secures STACK

These controls govern STACK’s own credentials, access to administrative functions, dependency installation and production releases.

| Area | Current practice |
| --- | --- |
| Platform credentials | Credentials used by STACK’s own model, email, messaging, payment and monitoring services are held in the KMS-encrypted vault and read through the same controlled access path as customer connections. |
| Privilege separation | Requests authenticated as an agent cannot approve access, change identity or billing settings, or reverse an agent block. Team members receive only the permissions assigned to their role. |
| Dependency admission | New package versions must be at least seven days old before installation unless they appear on the reviewed exception list. |
| Install scripts | Dependency build scripts are blocked by default and run only for packages on the workspace allowlist. |
| Release resolution | CI and release workflows install the exact versions recorded in the committed lockfile. |

#### Current assurance

STACK has not completed SOC 2 attestation or an independent penetration test. The 28 attack results on this page come from a reproducible benchmark run by STACK.

STACK does not currently publish a recovery target or an independent audit of its operations. The controls described here concern the product; they do not certify how STACK itself is operated.

### Standards

### Standards and protocols

STACK uses established specifications for authentication, signatures, workload identity, agent interfaces and portable evidence. Each entry states whether the implementation is live or whether STACK currently accepts the schema.

### Authentication

Interactive clients, command-line tools and federated identity use separate authentication flows.

| Standard or protocol | Used for | Status |
| --- | --- | --- |
| OAuth 2.1 + PKCE · RFC 7636 | Interactive MCP and AI clients | Live |
| Dynamic Client Registration · RFC 7591 | Registration of compatible OAuth clients | Live |
| Authorization Server Metadata · RFC 8414 | Discovery of OAuth endpoints and capabilities | Live |
| Resource Indicators · RFC 8707 | Binding access tokens to the API or MCP resource | Live |
| Device Authorization · RFC 8628 | CLI sign-in where a browser cannot be opened directly | Live |
| OIDC Core + Discovery | Claims from compliant identity providers | Live |

### Signing and encryption

Passports, individual claims, identity disclosures and stored credentials use different formats and keys.

| Standard or protocol | Used for | Status |
| --- | --- | --- |
| JWT + Ed25519 · RFC 7519, 8032, 8037 | Passport signing | Live |
| JSON Web Key Sets · RFC 7517 | Public discovery of verification keys | Live |
| COSE_Sign1 · RFC 9052 | Signed Passport claim envelopes | Live |
| JSON Web Encryption · RFC 7516 | Receiver-only delivery of disclosed identity evidence | Live |
| AES-256-GCM · NIST SP 800-38D | Envelope encryption at rest with AWS KMS | Live |

### Workload identity

STACK consumes existing workload and attestation evidence rather than replacing the systems that issue it.

| Standard or protocol | Used for | Status |
| --- | --- | --- |
| SPIFFE SVID | Inbound service identity from a configured trust domain | Live |
| WIMSE Workload Identity Token | Inbound workload identity from a configured issuer | Live · IETF draft |
| RATS · RFC 9334 | Remote-attestation evidence carried as a Passport claim | Schema accepted |
| Entity Attestation Token · RFC 9711 | Signed attestation evidence carried as a Passport claim | Schema accepted |

### Agent interfaces

The same boundary is available through agent protocols, SDKs and the REST API.

| Standard or protocol | Used for | Status |
| --- | --- | --- |
| MCP Streamable HTTP | Tool transport for MCP-compatible clients | Live |
| A2A AgentCard + JSON-RPC 2.0 | Agent discovery and task dispatch | Live |
| OAuth Token Exchange · RFC 8693 | Passport refresh through the OAuth token endpoint | Live |
| HMAC-SHA256 · RFC 2104 | Verification of signed inbound webhooks | Live |
| JSON Schema Draft 7 | Passport claims, drop-offs and sealed-skill inputs and outputs | Live |

### Evidence formats

STACK can carry several established evidence formats. Schema support is identified separately from full upstream verification.

| Standard or protocol | Used for | Status |
| --- | --- | --- |
| SCITT architecture · IETF draft | COSE claim envelopes and transparency-receipt records | Envelope live · receipt schema accepted |
| SLSA v1.0 | Software supply-chain provenance attached to a Passport | Schema accepted |
| CycloneDX AI/ML-BOM | References to models, datasets and other AI components | Schema accepted |
| C2PA · ISO/IEC 22144 | Content-provenance assertions attached to a Passport | Schema accepted |

### Review material

### Security review material

The public material covers the system architecture, implementation details, data handling and the clauses STACK maps to EU AI Act Article 14. Questions about a specific deployment can be sent through the contact page.

| Material | What it contains | Open |
| --- | --- | --- |
| Security documentation | Hosting, boundary controls, credentials, authentication, revocation and operator responsibilities. | [Docs ↗](/docs/security) |
| Encryption and CMEK | Customer-key setup, migration state, removal and failure behaviour. | [Docs ↗](/docs/security/encryption-cmek) |
| Audit and evidence | Chain structure, verification endpoints, exports and Evidence Pack APIs. | [Docs ↗](/docs/concepts/audit) |
| EU AI Act Article 14 | Clause-by-clause product mapping, including the clauses STACK does not cover. | [Mapping ↗](/compliance/eu-ai-act) |
| Privacy and subprocessors | Data categories, retention, locations, providers and privacy rights. | [Privacy ↗](/privacy) |

## Review STACK for your deployment.

[READ THE DOCS](/docs/security) [CONTACT STACK](/contact)
