Skip to content
Browse the documentation

Security & Encryption

How AgentLock encrypts credentials, isolates workspaces, verifies agent requests, blocks SSRF and limits the data it keeps.

How is my data encrypted?

AgentLock uses multiple layers of encryption:

Credentials (Envelope Encryption):

  • A Master Key encrypts per-credential Data Encryption Keys (DEKs).
  • DEKs encrypt credential payloads using authenticated encryption.
  • Even full database access cannot decrypt credentials without the Master Key.

Action Data (Content Encryption):

  • Approval request bodies, action previews, execution requests/responses, and undo payloads are all encrypted at rest.
  • Per-workspace Content Keys provide an additional layer of encryption.

In Transit:

  • All traffic uses HTTPS/TLS 1.2+.
  • HSTS headers are enforced.
  • Cryptographic signatures provide integrity verification on top of TLS.

What data does AgentLock collect?

Account data: Email address, securely hashed password (we never see your plaintext password), optional OAuth profile, optional TOTP 2FA enrollment.

Workspace data: Workspace name, member list, roles, settings.

Agent data: Agent name, environment, public key (never the private key), allowed tools, status.

Credentials: Name, connector type, last 4 characters. The actual secret is encrypted and unreadable by anyone.

Approvals & Timeline: Action type, tool, risk level, encrypted previews and payloads, timestamps, status.

Audit events: Event type, actor, resource references, metadata (no secrets).

Billing: Subscription IDs, plan, period end. Payment details (card numbers, etc.) are stored exclusively by our PCI-compliant payment processor — never on our servers.

Mobile: Push notification token for delivery. No device identification.

Biometrics: Checked on-device only. We never receive, store, or transmit biometric data.

What data do you NOT collect?

  • No tracking without your consent — Until you choose otherwise in the cookie banner, the app only sets the session cookies needed to sign you in, and no analytics or advertising script loads.
  • No other trackers — Apart from PostHog and the Google Ads tag described below, there are no ad networks, retargeting pixels or cross-site trackers in the product.
  • No biometric data — Checked entirely on-device by the OS.
  • No plaintext secrets — Credentials are encrypted before storage.
  • No IP addresses in the audit log — We dropped IP/user-agent columns from the audit log (data minimization).
  • No browsing history — Browser session URLs are not stored.

Only with your consent:

  • Product analytics — PostHog (EU cloud) loads only after you accept "Analytics" in the cookie banner. It then records page views, clicks, errors and session replays. Typed values are always masked, request and response bodies are never recorded, and elements that show keys or tokens are left out of replays entirely.
  • Ad conversion — The Google Ads tag runs on a single page, the billing page after a successful checkout, and only after you accept "Advertising". It reports that purchase as a conversion of our ads, with a hashed form of your email address so Google can match it to an ad click. No Google script runs anywhere else in the app.

On our server, without cookies: when Stripe confirms a subscription payment, renewal or cancellation, our server records it in PostHog under your account ID. This does not depend on the cookie banner.

How is data isolated between workspaces?

Every table in our database has strict access policies. This means:

  • Users can only access data belonging to their workspace.
  • The database enforces this at the query level — even if there were a bug in the application code, the database would prevent cross-workspace data access.
  • Roles are enforced at the database level: only admins can manage credentials/policies, only approvers+ can approve.
  • The audit log has database-level constraints that prevent modification or deletion — it's truly append-only.
  • Privileged access keys are only used by backend services, never in client-side code.

How are agent requests verified?

Every agent request is verified through:

  1. Authentication — A cryptographic signature or an agent token. A signed request covers the HTTP method, the URL path, the request body, a timestamp and a nonce, signed with the agent's private key; the server verifies it with the stored public key. An agent token is checked against a stored SHA-256 hash and can be revoked at any time.
  2. Timestamp validation — Signed requests more than 5 minutes off the server time are rejected.
  3. Nonce/replay protection — Each signed request includes a unique nonce. Used nonces are stored for 10 minutes and duplicates are rejected.
  4. Rate limiting — 60 requests per minute per agent and per source IP, plus a per-workspace limit that depends on the plan.
  5. Agent status check — Revoked or suspended agents are rejected.

What SSRF protection does AgentLock apply?

Any outbound URL — HTTP requests, webhook deliveries, MCP server calls, browser session navigation — is validated before the socket opens. The goal is to prevent a prompt-injected agent from pointing AgentLock at your internal network or cloud metadata service.

Scheme check: Only http:// and https:// are allowed. No file://, gopher://, ftp://, data:, etc.

Blocked IP ranges (after DNS resolution):

  • 127.0.0.0/8 and ::1 — loopback
  • 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 — RFC 1918 private networks
  • 169.254.0.0/16 — link-local (includes 169.254.169.254 — AWS/GCP/Azure metadata endpoints)
  • fc00::/7, fe80::/10 — IPv6 ULA and link-local
  • 100.64.0.0/10 — CGNAT
  • 0.0.0.0/8 and :: — unspecified
  • Multicast and reserved ranges

How it works: The hostname is resolved to every A/AAAA record (not just the first one), and each resulting IP is checked. This defeats DNS-level tricks like hostnames that resolve to both a public and a private address.

IPv4-mapped IPv6 bypass: We also decode ::ffff:7f00:1-style IPv6 representations of IPv4 addresses before checking, so ::ffff:127.0.0.1 can't be used to slip past an IPv4-only blocklist.

DNS-unavailable = fail closed: If the DNS module can't be loaded (e.g. edge runtime), the request is rejected rather than forwarded. We'd rather return an error than accept a potential bypass.

Redirects: HTTP redirects are followed (max 5 hops). Every hop is SSRF-validated independently. A server that returns 302 http://169.254.169.254/ is rejected at the redirect, not the original request.

Policy layer on top of SSRF: SSRF is always on. Separately, the HTTP connector enforces your policy's allowedDomains list and block list. A public but sensitive URL (e.g. internal-api.example.com) passes SSRF but can still be denied by your policy.

What happens if the database is compromised?

Even with full database access, an attacker cannot:

  • Read credentials — They're encrypted with a Master Key that's not in the database.
  • Modify the audit log — Database-level constraints prevent modification or deletion.
  • Forge agent requests — They'd need the agent's private key, which is never stored on our servers.
  • Approve requests — They'd need a valid authenticated user session.
  • Access other workspaces — Database-level access policies isolate workspace data.

The main risk would be reading encrypted action data and workspace metadata. This is mitigated by per-workspace Content Keys.

Who processes my data?

AgentLock uses carefully selected infrastructure providers:

  • Database & authentication — Hosted on enterprise-grade cloud infrastructure with encryption at rest.
  • Web hosting — Served from a global edge network for fast, secure delivery.
  • Payment processing — PCI-compliant payment processor handles all billing data.
  • Push notifications — Notification delivery service for mobile alerts.

None of these providers have access to your decrypted credentials. Credentials are encrypted before they reach the database.

Security & Encryption | AgentLock Docs