Enterprise Trust

Security Architecture

Oceum is built security-first. Every layer of the platform, from credential storage to agent execution to multi-org isolation, is designed so enterprises can deploy autonomous agents with confidence.

AES-256
Vault Encryption
6
Audit Rounds
2,100+
Automated Tests
0
Plaintext Vault Entries
01

Blind-Relay Vault

Vault entries and OAuth tokens are encrypted at rest; API keys are stored as bcrypt hashes. Secrets are decrypted only inside the request that uses them, and no Oceum console, log, or admin endpoint displays plaintext. Agents use them through a blind relay that decrypts only at execution time.

AES-256-GCM Encryption
Every vault entry is encrypted with AES-256-GCM, an authenticated encryption scheme that provides both confidentiality and integrity verification. Random initialization vectors are generated per entry.
NIST-approved
Per-Org HMAC-SHA256 Keys
Each organization gets a unique encryption key derived via HMAC-SHA256. Compromising one organization's key reveals nothing about another. Complete cryptographic isolation between tenants.
tenant-isolated
Blind Relay Pattern
Through the blind-relay proxy the agent never receives the secret: Oceum decrypts, injects, and redacts server-side. An agent can read an entry directly only when the entry's access policy explicitly allows it.
blind-relay
Domain-Locked Execution
Vault entries can be locked to allowed target domains. The proxy enforces HTTPS-only requests and blocks SSRF bypass patterns including IPv6-mapped, octal, hex, and decimal IP encodings.
SSRF-hardened
Credential Rotation
Built-in rotation support with batch processing (up to 200 entries per cycle). Access logs are capped and auditable. Token IDs are truncated in logs to prevent leakage.
automated
Auth Tag Verification
GCM authentication tags are verified on every decryption. Tampered ciphertext is rejected before any plaintext is produced, preventing ciphertext manipulation attacks.
integrity-verified
// Vault encryption flow
const key = hmacSHA256(orgId, masterKey);
const iv = crypto.randomBytes(16);
const cipher = createCipheriv('aes-256-gcm', key, iv);
// Plaintext never persisted: encrypted at rest, decrypted at relay time only
02

Authentication & Access Control

Dual-layer authentication with organizational boundary enforcement.

JWT + API Key Dual Auth
Interactive sessions use signed JWTs that expire after 24 hours and are refused as soon as the account signs out or its password is changed or reset. Programmatic access uses API keys with bcrypt-hashed storage. Both credentials resolve to a single organization. A session also carries the user's current role, re-read from the database on every request, for the actions that check it; an API key acts for the organization and never as a user, is accepted only by the endpoints built for programmatic access, and cannot rotate vault keys or delete memories.
dual-path
Membership Verification
Every authenticated request verifies active membership in the target organization. Removed users lose access immediately, with no stale session windows. JWT membership checks run on every call.
per request
Bcrypt Password Hashing
Passwords are hashed with bcrypt (10 cost rounds). Password reset links carry a random single-use token, stored only as a SHA-256 hash, that expires after one hour (24 hours for a link a platform administrator issues); using a link, requesting a new one or changing the password voids every other open link, and a completed reset signs out every earlier session.
one-way hash
Rate Limiting
Sign-in, registration, reset requests and password changes are rate limited per email address, client IP or account, and five failed sign-ins lock the account for 15 minutes across all servers. Most other API endpoints carry their own per-organization or per-user limits.
throttled
RBAC Per Organization
Owner, Admin and Member roles, read from the database on every request rather than from the token. Admins cannot remove owners, only owners can remove admins, and only the owner can regenerate the organization's API key.
role-gated
SSO Integration
Google and Microsoft sign-in use the provider's authorization-code flow: Oceum exchanges the code with the provider server-side and accepts only an address the provider vouches for (Google's verified email, the Microsoft account's sign-in name) before any account is looked up or created.
verified server-side
03

Governance Infrastructure

Autonomous agents operate within explicit boundaries. High-risk actions (delete, remove, spend, purchase, payment, transfer, drop, plus anything your policy or agent manifest marks) require human approval. Every governed execution is sealed and logged, and execution records and the audit trail can be queried for audit.

Approval Workflows
Orion honors approval and ticket tags only when the user's own message expresses approval or denial. Tags found in user input are stripped, and approval targets are UUID-validated and scoped to your organization.
intent-gated
Audit Trails
Every governed execution, approval decision, and credential access is recorded with a timestamp and organization context. Governed executions carry the approving identity in a sealed authorization envelope. Logs are retained per plan tier (7 days on Free, 90 days on Pro, Team and Enterprise).
org-scoped
Governed Execution
LLM-chosen agent actions are validated against the action list the agent was given; unknown actions are dropped. Destructive internal actions and approval targets are UUID-validated. Governed API executions are checked against your blocked actions, domains, time windows, rate limits, and agent manifest.
action-whitelist
Agent Journal
Every observation, decision, action, and deferral is recorded in an append-only journal. No UPDATE or DELETE permitted. Monthly range-partitioned for query performance. Complete chain of custody for autonomous agent behavior.
append-only
Replay with Deduplication
Stripe callbacks are deduplicated by event ID: a redelivered event already recorded as processed is acknowledged and not processed again. Inbound webhook requests are authenticated with an HMAC-SHA256 signature.
idempotent
Progressive Autonomy
Agents run in one of three autonomy modes (workflows, smart, autonomous), each gated by a per-action trust score.
graduated
LLM Output Validation
Agent LLM responses are parsed and validated before execution. Input tags are stripped from user messages to prevent prompt injection. Structured output tags are honored only when the user's own message expresses the matching intent.
injection-resistant
04

Infrastructure Security

Defense-in-depth across every layer of the stack. Headers, origins, inputs, and outputs are all validated, sanitized, and restricted.

HSTS + Security Headers
Strict-Transport-Security enforces HTTPS. X-Content-Type-Options, X-Frame-Options, Referrer-Policy, and Permissions-Policy headers are set on every response via server configuration.
header-hardened
CORS Restrictions
API responses name an explicit allowed origin and never a wildcard, so browsers refuse other sites' cross-origin reads; protected endpoints still authenticate every request themselves.
origin-locked
SSRF Protection
The vault proxy allows HTTPS targets only and blocks private, link-local, metadata, and IP-encoding bypasses (IPv6-mapped, octal, hex, and decimal). Governed REST and SOAP connections are bound to their registered base URL; HTTP is permitted for private legacy services.
bypass-resistant
XSS Prevention
Dashboard pages HTML-escape user-supplied text before rendering it, and published blog articles pass an allowlist filter for tags, attributes and link schemes.
whitelist-sanitized
Prototype Pollution Protection
Credential injection paths and field mappings reject __proto__, constructor and prototype keys.
chain-safe
Timing-Safe Comparisons
All secret comparisons (cron secrets, webhook signatures, API keys) use crypto.timingSafeEqual to prevent timing side-channel attacks. Fail-closed when environment variables are unset.
constant-time
05

Deployment Options

Run Oceum wherever your security policy requires. Same codebase, same API, same governance, from managed cloud to fully air-gapped on-premise.

Cloud
Managed SaaS
Hosted on Vercel Pro: application functions run in the iad1 region and static pages are served from Vercel's edge network. Supabase Postgres with daily automated backups. Zero infrastructure management required.
  • Static pages from Vercel's edge network
  • Supabase managed Postgres
  • Automated TLS + CDN
  • Endpoint health checks every 15 minutes
  • The cloud database is hosted by Supabase in AWS us-west-2 (Oregon); application functions run in Vercel's iad1 region (Washington, D.C.).
Self-Hosted
Docker Deployment
Single Docker image with all APIs and cron jobs. Connect your own Postgres. Full control over data residency and network boundaries.
  • Single Docker container
  • Bring your own Postgres
  • Runs on your own PostgreSQL with no Supabase service.
  • Custom network policies
  • On-premise data residency
Air-Gapped
Isolated Infrastructure
Runs on an isolated network, with chat inference served inside it by the bundled llama.cpp service (Orion) from a model file on the host. With the documented offline configuration, the self-hosted build's scheduled jobs connect to nothing outside the installation; the release gate checks this on an internal Docker network. Features that need a hosted service (embedding search, reranking, voice, email) are unavailable offline.
  • Orion LLM (local inference)
  • No outbound connections from scheduled jobs (offline configuration)
  • Air-gapped Postgres
  • No vendor lock-in
  • No hosted model: ORION_FALLBACK=false and no Anthropic key
06

Compliance Roadmap

Building toward enterprise compliance certifications with a security-first architecture that already implements the controls these frameworks require.

In progress
SOC 2 readiness (self-assessed)
MFA/2FA (TOTP), token revocation, account lockout, password complexity, a sign-in audit trail (successful password sign-ins and failed sign-in attempts), platform-admin action logging, a daily log-retention job, an automated test suite, RLS defense-in-depth. No auditor is engaged yet; Oceum is not SOC 2 certified.
Implemented
GDPR Compliance
Data export (Art.20): a JSON export of your account and organization data through the settings API, one per hour, or on request by email. Account and organization deletion on request (Art.17). Per-org data segregation, row-level security enabled on every table in the cloud database, and Orion training exports that omit each conversation's account context.
Implemented
Multi-Org Data Segregation
Tenant data is isolated in application code: tenant-facing queries are scoped to the caller's organization by org_id, or through a parent record already read under it, and row-level security enabled on every table in the cloud database is a backstop against direct database access.
Implemented
Encryption at Rest
Vault entries encrypted with AES-256-GCM under per-organization derived keys; OAuth tokens encrypted with AES-256-GCM. Random initialization vectors. Authentication tags verified on every decryption.
Implemented
Audit Logging
Comprehensive event logging across agent actions, credential access, authentication events, and administrative changes, retained by plan tier (7 days on Free, 90 days on paid plans). Governed executions and agent decisions are sealed separately to the append-only journal, where UPDATE and DELETE are rejected at the database layer.
Implemented
Vulnerability Management
Six completed security audit rounds covering infrastructure hardening, prompt injection prevention, vault security, and access control. 2,100+ automated tests.

Compliance Documentation

Detailed policy documents covering enterprise compliance requirements.

Access Control Policy
Role-based access control, authentication requirements, session management, and privilege escalation prevention.
policy
Change Management Policy
Version control, CI test and secrets-scan runs, and Vercel deployment and rollback.
policy
Data Classification Policy
Data sensitivity tiers, handling requirements, encryption standards, and retention rules.
policy
Vendor Management Policy
Third-party risk assessment, vendor security requirements, and annual vendor review.
policy
07

Testing & Audit History

Security is a continuous process. Six dedicated audit rounds have hardened every surface of the platform, from API endpoints to LLM output parsing. The first four are summarized below.

Audit Round 1
Infrastructure foundation: SSO token injection fix, API key prefix lookup, fetch timeouts, rate limiting, error message sanitization, cost calculation hardening, XSS escaping.
7 findings fixed
Audit Round 2
Vault and webhook hardening: prototype pollution blocking, blog sanitizer rewrite, Stripe webhook deduplication, deploy webhook fail-closed, agent config flag injection prevention.
17 findings fixed
Audit Round 3
Access control and timing: password reset replay protection, JWT membership enforcement, timing-safe cron secrets, social key redaction, CORS restrictions, account deletion cleanup.
12 findings fixed
Audit Round 4
LLM security and vault deep dive: prompt injection intent gating, ticket rate limiting, action whitelist enforcement, UUID target validation, SSRF bypass patterns, membership re-verification.
11 findings fixed
2,100+ Automated Tests
Comprehensive test suite covering authentication flows, vault encryption/decryption, RBAC enforcement, input validation, XSS prevention, and agent governance logic.
Vitest
Error Sanitization
Unhandled API errors return a generic message, and no API error response includes a stack trace; the detail is logged server-side.
no leakage
Get Started

Ship Agents That
Enterprises Trust

Start with Pro to deploy governed agents. Scale to Team or Enterprise as your operations expand.

Enter portal View Pricing Read Docs