← All projects

AI security / Data security / Infrastructure security

AI Agent Security Reference Architecture

Treat the agent as potentially compromised. Follow authorization boundaries, simulated malicious requests and the evidence needed to reconstruct an incident.

Reference ImplementationOffline reference · synthetic scenarios
  1. 01Untrusted request
  2. 02Tool broker
  3. 03Authorization
  4. 04Recorded evidence
Conceptual enforcement and evidence path. The broker records decisions outside the simulated agent's control.

01 / THE PROBLEM

The problem

An authenticated agent can still request an unauthorized action after consuming malicious content. The boundary needs to constrain execution and leave enough evidence to explain what happened.

02 / THE APPROACH

The approach

Treat retrieved content as untrusted and the agent as potentially hijacked. Evaluate independent capability, classification and role controls at a tool broker, then record decisions for investigation.

03 / ARCHITECTURE

Architecture

The executable Python reference separates the simulated agent, tool broker, authorization engine and evidence ledger. It uses a fictional environment and synthetic data. Four offline scenarios cover normal work, prompt injection, dual authorization misconfiguration and incident reconstruction.

04 / IMPLEMENTATION

Inside the implementation

  • The broker validates a session-bound credential and records every control verdict before executing an allowed tool. Denied requests and credential failures become security events.
  • A deterministic scenario issues the request a hijacked agent might make. Containment depends on authorization, not on finding every malicious prompt.
  • The evidence ledger combines a hash chain with Ed25519 signatures. Verification takes a caller-supplied trust anchor; a retained head is needed to detect tail truncation.

05 / EVIDENCE

What the evidence supports

The README provides reproducible scenario commands and describes tests for allowed and denied actions, control validation and evidence tampering. The architecture document states the trust assumptions and limitations. Those documents were reviewed for this page; the scenarios and test suite were not rerun during the website build.

06 / LIMITATIONS

Where this stops

  • This is an offline reference implementation, not a hosted AI service. No model call, API key or network access is required for its scenarios.
  • Process and network isolation, external policy engines, production DLP and independent evidence custody are not implemented. The demo trust anchor is not held in a separate trust domain.
  • Deterministic detection rules can be evaded. Evidence integrity does not prove capture truth; a compromised control plane undermines enforcement and recording.

A useful review pattern

AI Application Security Assessment ↗

TAKE IT WITH YOU

Make authorization decisions inspectable and incidents reconstructable.

← Back to the library