AI Agent Security: A Field Manual
- Threats, Controls, and Verifiable Assurance for Autonomous Systems
Preface
- Who this is for
- How to read this book
- A note on scope and honesty
The Agent Security Problem
- What changes when a model can act
- Why existing security models are necessary but not sufficient
- The four attacker assumptions
- The chain this book enforces
- What “good” looks like
The Threat Taxonomy
- Why a taxonomy, and how to use it
- The ten threat classes
- Reading the taxonomy as a system
The Control Taxonomy
- From threats to a catalogue of moves
- The four hardening surfaces
- The sixteen control areas
- Five principles that make the catalogue hold together
Identity and Authority
- The question the log has to answer
- Agent identity is distinct from human identity
- Workload identity, short-lived and scoped
- Delegated authority must be scoped, time-bound, and auditable
- The delegate never holds scope greater than or equal to its parent
- Correlation IDs across the delegation chain
- What this buys you, and what comes next
Tool and Action Safety
- Where a paragraph becomes a consequence
- The tool registry and allowlist
- Scope minimization and input validation
- Sandboxing and execution isolation
- Approval gates that check authority, not intent
- MCP: the supply chain the agent trusts implicitly
- EMA and the MCP Gateway pattern
- An MCP and EMA configuration checklist
Untrusted Content, RAG, and Memory
- The channel with no boundary
- Provenance, trust metadata, and TTL
- RAG poisoning: trusted by design, and that is the problem
- Memory writes are privileged and reversible
- Rollback as a first-class capability
- Putting the three together
Monitoring, Evaluation, and Incident Response
- What only exists once the agent is live
- Logging that can reconstruct the episode
- Monitoring and feed integration
- Evaluation as standing regression
- Rollback exercises
- Incident response for agents
- The abuse path: when the agent is the weapon
Runtime Security Posture
- The gap between knowing and fixing
- A dual-loop design
- The posture state machine
- Trigger classes and their SLAs
- The kill switch and granular revocation
- Policy version binding, the signal queue, and reconciliation
The Requirement Specification
- Why controls have to become requirements
- RFC 2119, used honestly
- Scope
- Identity and delegation (TH-05, TH-06)
- Tool and action safety (TH-02, TH-07)
- Untrusted content, RAG, and memory (TH-01, TH-03, TH-04)
- Monitoring, evaluation, and incident response (general; TH-09, TH-10 abuse)
- Runtime security posture (general)
- Authority conservation and control-plane integrity (TH-02, TH-05, TH-06, TH-08, TH-09)
- Governance and compliance (general)
- How to read the tables as a whole
Verification and Testing
- Turning SHALL into pass or fail
- Four verification methods
- Requirement-to-test mapping
- Operational rules
- Regression, not a gate
- The companion kit and the signed artifact
Governance and Compliance
- The accountability the technical controls assume
- The governance record
- Roles and responsibilities
- Risk assessment and review records
- High-risk determination and human oversight
- Frontier-capability overlay determination
- Governance as living artifacts
Authority Conservation for Long-Horizon Agents
- Why least privilege is no longer sufficient by itself
- Why this revision exists now
- CT-16 — Control-plane integrity and authority conservation
- The four forms of authority amplification
- Normative requirements
- Commit-time authorization: the async TOCTOU problem
- Aggregate budgets: preserving authority across a graph
- Persistent agents are delegations, not saved prompts
- Credentials: reachable is not authorized
- Compaction and persisted state: security metadata is not prose
- Effect monitoring over intent monitoring
- Verification additions
- Frontier-capability overlay
- What this chapter deliberately does not do
- Source note for this revision
- The design rule to carry forward
Acknowledgments
About the Companion Kit
Appendix A — Cross-Reference Tables
- The master traceability table (TH -> CT -> REQ -> VT)
- Requirement-to-threat index (REQ -> TH)
- Control-to-chapter index (CT -> where it is treated)
Appendix B — Source Register
- Normative primary sources
- Vendor primary disclosures
- Independent evidence and operational signals
- A note on source independence
- A note on coverage and gaps
Revision Note — 2026-09-04
- Authority Conservation for Long-Horizon Agents
- Editorial verification — 5 September 2026
Changelog & Errata
- Revision history
- Errata process
- Resolved items
- Known items carried forward