Skip to Content
AgentShield
Security

Security Overview

What AgentShield enforces, the assumptions it makes, and how the security documentation is organized.

AgentShield treats an agent as a principal that can be wrong, compromised, or misleading. Safety is a property of the gateway and the policy store, not of the model. This section describes the controls in detail, the threats they address, and the limits of each.

Security properties

Enforced

  • Every agent request is authenticated with an Ed25519 signature over its raw body, a 60-second timestamp, and a single-use nonce.
  • Every authenticated request produces exactly one recorded decision: allow, deny, or require_approval. Unmatched actions are denied.
  • An error at any stage is a deny or an error response. No path defaults to allow.
  • Tools run only through registered gateway adapters, at most once per decision, with arguments bound by hash.
  • Held actions run only after a human approver releases the exact request body, once, within 15 minutes.
  • Agents cannot approve their own actions or reach management routes; humans cannot act as agents.
  • Decisions, executions, approvals, and administrative changes are appended to a per-organization hash chain.
  • Production mode requires a database role subject to row level security.

Outside this control

  • Preventing a model from being prompt-injected. AgentShield limits what an injected agent can do and flags suspicious content.
  • Judging whether content is safe. Detection findings are advice and can miss paraphrases.
  • The authorization of the external APIs behind adapters. They still enforce their own permissions.
  • Protection against a database superuser who rewrites rows and every external copy of the audit head.
  • Secrecy of an agent seed once the agent host is compromised. Rotate or revoke the credential.

How the gateway responds to attacks

How the gateway responds

Educational walkthrough · not a live system

Attempt

A model steered by a web page tries operation database.export, which the organization policy lists under denied.

What the gateway does

  1. Signature, nonce, and budgets pass: the agent is who it says it is.
  2. Policy step 1: the action is in a deny list, so the outcome is deny. An agent allow cannot override it.
  3. The deny is recorded with matched_rule denied:database.export.

Response

HTTP 403 · {"outcome":"deny","explanation":{"matched_rule":"denied:database.export","reason":"explicit deny"}}

Audit: authorization.decided appended to the audit chain. A fifth deny inside ten minutes opens a deny_burst incident.

Defense in depth

LayerControlPage
IdentityEd25519 body signatures, nonce reservation, clock windowRequest integrity, Replay protection
AuthorizationDeterministic policy with deny precedence and default denyAuthentication and authorization
Human oversightHash-bound, expiring, single-use approvalsHuman approvals
ExecutionAdapter registry, argument binding, at-most-once claims, deadlines, circuitsTool execution lifecycle
EgressHost allow-list, post-DNS address checks, no redirects, injected credentialsSSRF protection
ContentAdvisory prompt injection and secret detectionPrompt injection analysis, Secret detection
DataRedaction, hashing, RLS, append-only triggersCredential management
EvidenceHash chain, head exports, hash-verified evidence bundlesAuditability
PlatformNon-root read-only containers, restricted pods, default-deny network policy, signed imagesSecurity architecture

Was this page helpful?

On this page