This SSP covers the AgentVault Secure Enclave platform as deployed in production. It
is a living document updated as the platform evolves.
1. System Overview
AgentVault is a zero-knowledge, invite-only secure communications platform that enables AI agent owners to communicate with their agents through end-to-end encrypted channels. Core security property: The backend never possesses decryption keys. All encryption and decryption happens client-side. The server stores and relays ciphertext only.2. Architecture Summary
AgentVault follows a monorepo architecture with clear separation between client-side cryptography and server-side relay:Infrastructure Components
Data Flow
- Client generates Ed25519 identity keypair during enrollment.
- X3DH key exchange establishes a shared secret between owner and agent.
- MLS group creation (primary) or Double Ratchet (fallback) derives encryption keys from the shared secret.
- Client encrypts message with XChaCha20-Poly1305 and sends ciphertext to backend.
- Backend stores ciphertext in PostgreSQL and relays via WebSocket/Redis pub-sub.
- Recipient client receives ciphertext, advances ratchet, and decrypts locally.
3. Roles & Responsibilities
Application Roles (RBAC)
4. Access Control
Authentication
All API access requires a valid Clerk JWT in theAuthorization: Bearer header. WebSocket
connections require the JWT as a query parameter (?token=<jwt>).
Authorization
Authorization is enforced at two layers:- API layer: FastAPI middleware checks role permissions on every endpoint.
- Database layer: PostgreSQL RLS policies enforce tenant scoping on every query.
Enrollment
5. Cryptographic Controls
Algorithm Suite
Key Lifecycle
Design Decisions
AgentVault uses XChaCha20-Poly1305 rather than AES-GCM. The 192-bit nonce space
of XChaCha20 eliminates the risk of nonce reuse, which is a practical concern with
AES-GCM’s 96-bit nonce in high-volume messaging systems.
6. Monitoring & Logging
Logging Policy
Observability
AgentVault implements an OTel-shaped telemetry pipeline for operational monitoring:Alerting
7. Risk Management
Methodology
AgentVault applies STRIDE threat modeling to identify threats and DREAD scoring to prioritize risk treatment.Threat Summary
Risk Acceptance
The following risks are accepted as outside the system’s assurance boundary:- Fully compromised client operating system
- Nation-state traffic analysis and metadata correlation
- Screenshot or screen recording on client devices
- Physical device theft (mitigated by device revocation)
Review Cadence
8. Incident Response
Response Phases
Device Compromise Procedure
- Admin revokes the compromised device via the management interface.
- Backend immediately closes the device’s WebSocket connection.
- Device status is set to “revoked” — all subsequent API calls are rejected.
- Remaining participants establish new encryption sessions, excluding the revoked device.
- Incident is logged in the audit trail.
9. Compliance Posture
Formal SOC 2 and ISO 27001 certification is on the roadmap. Current architectural
controls provide a strong foundation for certification when the organization is ready
to engage an auditor.