Security Goals
High-Value Assets
These are the assets an attacker would target, ranked by impact:Tier 1 -- Catastrophic if compromised
Tier 1 -- Catastrophic if compromised
Tier 2 -- Significant if compromised
Tier 2 -- Significant if compromised
Tier 3 -- Limited impact
Tier 3 -- Limited impact
Threat Actors
External Attacker
Capability: Network access, public endpoint probing, credential stuffing.Malicious Tenant Member
Capability: Valid authentication within their tenant.Compromised Device
Capability: Full access to one device’s keys and state.Rogue Administrator
Capability: Tenant admin privileges (invite, approve, revoke devices).Backend Breach
Capability: Full database access and/or server code control.Network Attacker (MITM)
Capability: Intercept and modify network traffic.Key Threat Scenarios
1. Backend Database Breach
2. Compromised Agent Device
3. RLS Misconfiguration
tenant_id in its WHERE clause is filtered by the RLS policy. The app.current_tenant_id session variable is set by middleware on every request.
4. Enrollment Social Engineering
Rate Limits
Non-Goals
Being explicit about what AgentVault does not protect against is a deliberate security practice. Overstating security claims erodes trust; honest limitations build it.
Security Validation Checklist
These properties are verified continuously:- Only ciphertext exists in the
messagestable (no TEXT columns) - Only ciphertext traverses the wire (WebSocket payloads are BYTEA)
- RLS blocks cross-tenant access (verified via integration tests)
- Expired and reused invite tokens are rejected
- Revoked devices receive 403 on all endpoints
- No key material appears in server logs
- Rate limits enforce enrollment and messaging boundaries
-
npm auditandpip auditshow no critical vulnerabilities