Book a call

AI Agent Security and Compliance: A Builder's Checklist Mapped to the OWASP Top 10

IBM found 97% of organisations with an AI-related breach lacked proper AI access controls. Here are the five layers of defence we build into every agent, mapped to OWASP risks, plus the EU AI Act dates that matter.

Share
AI Agent Security and Compliance: A Builder's Checklist Mapped to the OWASP Top 10
On this page

Secure an AI agent by limiting what it can do, not by hoping the model behaves. Give it the fewest permissions possible, treat everything it reads as untrusted data, require a person to approve risky actions, cap its spending and log every step.

Those five layers cover the most serious risks on the OWASP list for AI applications.

What most security guides miss

The top results for "AI agent security and compliance" come from Okta, Salesforce, Check Point and an academic paper. They name the right risks: prompt injection, data leakage, over-privileged access and supply-chain attacks.

Okta's advice to treat each agent as a non-human identity with scoped permissions is sound (Okta).

But most are written to sell an identity or security product. None gives a builder's checklist that maps each risk to a specific design decision, or puts the compliance dates in one place.

That's this post.

Five layers of defence

Five layers of defence for an AI agent
Five layers of defence for an AI agent

Each layer assumes the one before it will fail.

  1. Least-privilege tools. Read-only by default. Separate, scoped API keys for each agent. No "admin" credentials.
  2. Untrusted input is data. Emails, web pages, documents and tool results never become instructions, however they're worded.
  3. Approval gates. A person approves anything that moves money, messages a customer or changes a record.
  4. Spend and rate limits. Caps per task, per user and per day, so a loop or an attack can't run up a bill.
  5. Logs and replay. Every model call and tool call recorded, so you can investigate and reproduce failures.

The OWASP risks, mapped to controls

OWASP's Top 10 for LLM Applications (2025) is the most widely used list of AI application risks (OWASP). These are the ones that matter most for agents:

OWASP riskWhat it means for an agentControl
LLM01 Prompt injectionHidden instructions in content the agent reads change its behaviourLayer 2, plus approval gates on sensitive tools
LLM02 Sensitive information disclosureThe agent reveals data the user shouldn't seeScope data access to the requesting user; filter outputs
LLM05 Improper output handlingModel output is passed to other systems uncheckedValidate outputs before they reach databases, code or email
LLM06 Excessive agencyThe agent has more tools or permissions than it needsLayer 1 and Layer 3
LLM07 System prompt leakageInstructions or secrets in the prompt are exposedNever put credentials or secrets in prompts
LLM10 Unbounded consumptionRunaway loops or abuse drive cost and outagesLayer 4

Prompt injection deserves special attention because it can't be fully filtered out: the malicious text can look exactly like normal data. The reliable fix is architectural.

Even if the model is fooled, it shouldn't have the power to do damage alone.

Pre-launch security checklist

Every tool has a written purpose and the narrowest permission that serves it

API keys are per agent, stored in a secrets manager, and rotated

Actions that move money, send messages or change records need approval

Retrieved content is clearly separated from instructions in prompts

Outputs are validated before they reach other systems

Spend caps and rate limits are set and tested

Every run is logged with inputs, tool calls and outputs

Prompt-injection cases are in the evaluation set

Someone named owns the agent and reviews its logs

Compliance dates to know

RuleWhat appliesDate
EU AI Act, Article 50 transparencyTelling people they're interacting with AI, among other dutiesLargely on the original schedule, per Gibson Dunn (Gibson Dunn)
EU AI Act, stand-alone high-risk systems (Annex III, such as hiring and education)Risk management, data quality, human oversight, logging2 December 2027
EU AI Act, high-risk AI in regulated products (Annex I)The same duties for embedded systems2 August 2028

The later dates come from the Digital Omnibus on AI, provisionally agreed on 7 May 2026. Check the final published text with your lawyer.

If your agent screens job candidates or makes decisions about access to services, assume high-risk duties apply and design logging and human oversight in from the start.

FAQ

What is the biggest security risk for AI agents?

Prompt injection combined with excessive agency: the agent reads malicious content and has the permissions to act on it. Limit permissions and add approval gates to break that chain.

Does the EU AI Act apply to my AI agent?

It depends on where you operate and what the agent does. Transparency duties can apply to many AI systems.

High-risk duties apply to specific uses such as employment and education. Get legal advice for your case.

How do I audit what my AI agent did?

Log every model call and tool call with timestamps, inputs and outputs, and keep the logs where your security team can search them. Good logs let you replay a failure step by step.

Build it secure from day one

We build these five layers into every agent we ship, and we'll map your use case against them in a free scope within 24 hours. See our AI agent development services or book a free 30-minute call.


Sources

Share

Keep reading

All articles
AI Agents ·

An AI Agent Governance Policy You Can Adopt

Inventory every agent, name owners, set approval rules and review regularly: a one-page governance policy template.

AI Agents ·

AI Agent Development for UK Companies

UK GDPR, shared hours and pricing in pounds: what UK businesses should plan for when building an AI agent.

AI Agents ·

RAG Development Cost: Retrieval Systems Priced Out

Data cleaning, indexing, testing and upkeep: where the money goes in a retrieval-augmented generation project.