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 systemAttempt
A model steered by a web page tries operation database.export, which the organization policy lists under denied.
What the gateway does
- Signature, nonce, and budgets pass: the agent is who it says it is.
- Policy step 1: the action is in a deny list, so the outcome is deny. An agent allow cannot override it.
- 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
| Layer | Control | Page |
|---|---|---|
| Identity | Ed25519 body signatures, nonce reservation, clock window | Request integrity, Replay protection |
| Authorization | Deterministic policy with deny precedence and default deny | Authentication and authorization |
| Human oversight | Hash-bound, expiring, single-use approvals | Human approvals |
| Execution | Adapter registry, argument binding, at-most-once claims, deadlines, circuits | Tool execution lifecycle |
| Egress | Host allow-list, post-DNS address checks, no redirects, injected credentials | SSRF protection |
| Content | Advisory prompt injection and secret detection | Prompt injection analysis, Secret detection |
| Data | Redaction, hashing, RLS, append-only triggers | Credential management |
| Evidence | Hash chain, head exports, hash-verified evidence bundles | Auditability |
| Platform | Non-root read-only containers, restricted pods, default-deny network policy, signed images | Security architecture |
Read next
Threat model
Assets, adversaries, and the assumptions behind every control.
Security best practices
A checklist for deploying and operating AgentShield safely.
Disclosure policy
How to report a vulnerability.
Was this page helpful?
Deployment Architecture
How AgentShield is packaged and deployed. Hardened containers, Docker Compose profiles, Kubernetes overlays, network policy, and signed releases.
Threat Model
The assets AgentShield protects, the adversaries it considers, the threats it mitigates, and the assumptions it relies on.