Guardrails are the technical controls that enforce your AI policy at run time. They sit around the model, not inside it, because no model can be trusted to police itself. Two OWASP lists set out what can go wrong. The OWASP Top 10 for LLM Applications 2025 covers prompt injection (LLM01), sensitive information disclosure (LLM02), supply chain (LLM03), data and model poisoning (LLM04), improper output handling (LLM05), excessive agency (LLM06), system prompt leakage (LLM07), vector and embedding weaknesses (LLM08), misinformation (LLM09) and unbounded consumption (LLM10). The OWASP Top 10 for Agentic Applications 2026, published in December 2025, adds risks that appear once a model can act, such as agent goal hijack, tool misuse, identity and privilege abuse, and memory and context poisoning. This guide organises the matching controls into layers.
Layer 1: input controls
- Authentication and authorisation before any request reaches a model.
- Input screening for known injection patterns, harmful content and out-of-scope topics (LLM01).
- PII detection and redaction so personal and confidential data does not reach external models unless permitted (LLM02).
- Untrusted content handling. Treat retrieved documents, emails, web pages and tool outputs as data, never as instructions. Prompt injection can arrive through content, not just the user, and in an agent it can redirect the whole task (agent goal hijack).
Layer 2: model, prompt and data controls
- Version-controlled system prompts and pinned model versions. Keep secrets, credentials and access rules out of prompts: assume a system prompt can be extracted (LLM07) and enforce access in code.
- Minimal context: give the model only the data the task needs.
- Retrieval with document-level access control so users see only what they are entitled to, and controlled ingestion so untrusted documents cannot poison the index (LLM04, LLM08).
- Agent memory treated like any other data store: scoped per user or task, validated before it is written, and able to be reviewed and cleared (memory and context poisoning).
- Known provenance for models, plugins and MCP servers, with versions pinned and an inventory kept (LLM03).
Layer 3: output controls
- Grounding checks that verify claims against retrieved sources, and citations users can inspect (LLM09).
- Content and policy filters for harmful, off-topic or confidential output.
- Structured output validation. Never pass model output straight into a database, shell or browser. Validate and encode it (LLM05).
- Disclosure that content is AI generated where users need to know. See chatbot disclosure and AI content labelling.
Layer 4: agent and tool controls
Agents need the strictest layer because they act, not just answer (LLM06). ASD’s Careful adoption of agentic AI services puts privilege and identity at the centre.
- Own identity per agent. Give each agent its own managed identity and credentials, not a shared service account or a user’s full session, so its actions can be limited and traced.
- Least-privilege tools. Each tool gets the narrowest scope, read-only by default, with short-lived credentials.
- Isolation and sandboxing for code execution and browsing, and separate domains for high-risk agents to limit the blast radius.
- Approval gates for irreversible or high-impact actions such as payments, deletions and external messages. Show the approver what will actually happen, not just the agent’s summary, because confident explanations can mislead (human-agent trust exploitation).
- Limits. Cap steps, tokens, tool calls and spend per request, user and day to contain runaway loops and unbounded consumption (LLM10).
- Phased autonomy. Start with narrow access and widen it in stages as monitoring shows the agent behaves as intended, as ASD recommends.
- Kill switch. A tested way to pause or disable a model, tool or agent in minutes.
Layer 5: observability and audit
Log prompts, retrieved context, tool calls, approvals, decisions and filter outcomes with trace identifiers, with sensitive data masked. Agents should not be able to write to or delete their own logs. Alert on policy violations, injection attempts, cost spikes and quality drops, and review cases where a guardrail fired or a person refused an action. Logs are also your evidence for audits and tender responses.
Enforce at a gateway
Put these controls in a central gateway or policy layer so every application inherits them and direct calls to model providers are blocked. See the LLM guardrails architecture and the AI agent safety architecture. Commonwealth agencies building agents also have the DTA’s Agentic AI addendum to the AI technical standard, a useful checklist for anyone supplying them.
Guardrails need testing
Every filter has false positives and false negatives. Measure both, tune with evidence and red-team the whole stack regularly, including after each increase in an agent’s access. Our guide to red-teaming and evaluation explains how, and threat modelling with STRIDE and MAESTRO helps you decide which guardrails a system needs before you build it.
Guardrails reduce failures but cannot remove them. Our AI incident response playbook covers what to do when something gets through.
Sources
- OWASP Top 10 for LLM Applications 2025
- OWASP Top 10 for Agentic Applications 2026
- ASD’s ACSC: Careful adoption of agentic AI services
- DTA: Agentic AI addendum to the AI technical standard
Last reviewed 18 November 2026.
How EITSAA helps
We help you design and evidence AI governance that matches your risk, from the register and policy through to technical guardrails and audit-ready evidence. Explore AI Governance & Assurance, see our AI agents and chatbots service, talk to our team or call 0402 401 584.
Requirements change, so check the current position with the relevant authority as you plan.
