Abstract illustration of layered guardrails around an AI core

Technical Guardrails for AI Agents: A Least-Agency Reference Architecture

A six-layer reference architecture for constraining AI agents technically: identity, tools, isolation, human oversight, data controls and monitoring.

Policies describe what an AI agent should do; technical controls determine what it can do. Because agent behaviour cannot be guaranteed by instruction alone, security must be enforced outside the model, in layers that continue to hold if the model is manipulated. This article presents a reference architecture built on the principle of least agency.

Layer 1: Identity and access

  • A distinct identity for every agent. Agents should not share credentials with people or with each other, so that each action is attributable.
  • Least privilege and short-lived credentials. Issue narrowly scoped tokens that expire quickly and are bound to a task, rather than standing administrator rights.
  • Delegation with limits. When an agent acts for a user, it should inherit no more than that user’s authority, and never more than the task requires.

Layer 2: Tools and actions

  • Explicit allow-lists. The agent may call only tools that have been reviewed and approved, with parameters validated by deterministic code.
  • Separation of read and write. Tools that change state, send messages externally or move money should be distinct from read-only tools and subject to stricter control.
  • Rate and value limits. Cap the number, size and financial value of actions in a given period.

Layer 3: Isolation

Any code an agent generates or runs should execute in a sandbox with no default network access, restricted file-system reach and strict resource limits. Network egress should be denied unless explicitly permitted to named destinations, which also limits data exfiltration if the agent is hijacked.

Layer 4: Human oversight

Approval gates should be placed where an error is costly or irreversible, such as external communication, deletion, payments, permission changes and production deployments. Approval requests must present the action clearly and in full; a summary written by the agent itself can be unreliable. Reviewers need enough time and information to exercise real judgement, otherwise oversight becomes a formality.

Layer 5: Data, memory and inputs

  • Treat all retrieved and external content as untrusted, and mark its provenance.
  • Limit what persistent memory may store, and review or expire it to reduce poisoning.
  • Apply data-loss controls to prompts and outputs so that sensitive data is not sent to unauthorised destinations.

Layer 6: Logging, monitoring and shutdown

Every prompt, tool call, parameter, result and approval decision should be written to tamper-evident logs held outside the agent’s control. Alerts should trigger on anomalies such as unusual tool sequences, repeated failures or access outside normal scope. Every deployment requires a tested kill switch that revokes credentials and halts the agent immediately, together with a documented procedure for rolling back its actions.

Multi-agent systems

Where agents communicate with one another, messages should be authenticated and integrity-protected, and trust between agents should not be transitive. A failure or compromise in one agent must be contained by circuit breakers so that it cannot cascade through the workflow.

Egaros designs and reviews guardrail architectures for AI agents and validates them through adversarial testing.

References and further reading

Related EGAROS articles

AI agent threat landscape · Securing AI apps: prompt injection and data leakage

Want an expert to review your security?

Tell us about your business and we will recommend the right starting point. The first consultation is free.


Discover more from Egaros

Subscribe to get the latest posts sent to your email.


Comments

اترك تعليقاً