Skip to main content
This System Security Plan (SSP) describes AgentVault’s security architecture, controls, and risk management approach. It is intended for security auditors, enterprise customers, and internal engineering teams.
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

The backend is a ciphertext-only relay. It never decrypts, inspects, or transforms message content. All cryptographic operations occur on client devices.
  1. Client generates Ed25519 identity keypair during enrollment.
  2. X3DH key exchange establishes a shared secret between owner and agent.
  3. MLS group creation (primary) or Double Ratchet (fallback) derives encryption keys from the shared secret.
  4. Client encrypts message with XChaCha20-Poly1305 and sends ciphertext to backend.
  5. Backend stores ciphertext in PostgreSQL and relays via WebSocket/Redis pub-sub.
  6. 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 the Authorization: Bearer header. WebSocket connections require the JWT as a query parameter (?token=<jwt>).

Authorization

Authorization is enforced at two layers:
  1. API layer: FastAPI middleware checks role permissions on every endpoint.
  2. 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

  1. Admin revokes the compromised device via the management interface.
  2. Backend immediately closes the device’s WebSocket connection.
  3. Device status is set to “revoked” — all subsequent API calls are rejected.
  4. Remaining participants establish new encryption sessions, excluding the revoked device.
  5. 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.