Short answer. An AI agent security gap analysis looks at what your agents can do rather than what they say. It lists every agent, the tools and data each one can reach and the inputs that can steer it, then compares that with your policies and with the EU AI Act and ISO 42001. You receive a gap register, ordered by risk, with the fix for each gap and the evidence that will show it is closed.

Why do AI agents need their own gap analysis?

An AI system under the EU AI Act is a machine-based system that infers from its input how to generate outputs that “can influence physical or virtual environments” (Article 3(1)). For an agent that influence is direct: it sends the email, changes the record, runs the command. Three questions decide the risk:

  • What can it do? The tools, APIs, file systems and accounts the agent can call, and with whose permissions.
  • What can steer it? Every piece of content the agent reads that you did not write: web pages, emails, documents, tickets, tool results. Instructions hidden in that content are what prompt injection means.
  • What can leave through it? Personal data, secrets and confidential material that the agent can read and then pass to a model provider, a tool or an output.

What does an AI agent security gap analysis cover?

Inventory and classification. Every agent you build or use, including coding agents and assistants staff adopted themselves, with its owner, purpose, model provider, tools and data. Each is classified under the EU AI Act. Our AI system register article explains what that record holds.

Tool permissions. Which tools each agent can call, whether permissions are scoped to the task or inherited from a broad user or service account, which actions need a human approval, and whether an agent can grant itself more. Most serious findings sit here: an agent that only needs to read a calendar but holds a mailbox token.

Prompt injection exposure. Which untrusted sources reach each agent, and what happens when one of them carries instructions. The review traces the path from untrusted input to a privileged action and checks whether anything outside the model stands in the way: a permission boundary, an allowlist of actions, an approval step. Detection inside the model is useful; a boundary outside the model is what holds.

Data exposure. What data enters prompts and tool calls, what reaches the model provider and under which terms, what is logged, and whether sensitive values are removed before they leave.

Logging and oversight. Whether you can reconstruct what an agent did, on whose behalf and why, and whether a named person can stop it.

Third parties. The model provider, agent frameworks and connected tools, and what your contracts say about data use, retention and incident notice.

How does it map to the EU AI Act?

  • Article 4, AI literacy. As amended by the Digital Omnibus on AI (Regulation (EU) 2026/1744), providers and deployers must take measures to support the AI literacy of staff who operate and use AI systems on their behalf. People who configure and supervise agents are the first audience.
  • Article 15(5), cybersecurity of high-risk systems. High-risk AI systems must be resilient against attempts by unauthorised third parties to alter their use, outputs or performance by exploiting system vulnerabilities. The article lists data poisoning, model poisoning, adversarial examples or model evasion, confidentiality attacks and model flaws. It does not use the term prompt injection; the review treats injected instructions as an attempt to alter use and outputs.
  • Article 25, value chain. A deployer who modifies the intended purpose of an AI system, including a general-purpose one, so that it becomes high-risk is treated as its provider. Wiring a general-purpose model into an agent that screens job applicants is the typical case.
  • Article 26, deployers of high-risk systems. Use according to the instructions, human oversight by competent people, monitoring of operation, and keeping the automatically generated logs under your control for at least six months.

The Digital Omnibus on AI moved the dates: the Chapter III requirements, including Articles 15 and 26, apply from 2 December 2027 for Annex III systems and from 2 August 2028 for high-risk systems under Annex I product legislation. The EU AI Act guide has the full timeline.

How does it map to ISO 42001?

ISO 42001 is the management system standard for AI. The analysis uses its structure rather than inventing one: the scope of the AI management system, AI risk assessment and AI system impact assessment in planning, operational control across the AI system lifecycle, and the Annex A control topics on data, third-party relationships and information for interested parties. Every agent gap is recorded as a risk with an owner and a treatment, so the result can feed an ISO 42001 programme later. Our ISO 42001 guide and the comparison ISO 42001 vs ISO 27001 explain the clauses.

Where does a gateway fit?

Some gaps are closed in the agent’s code: narrower permissions, approval steps, separating untrusted content from instructions. Others are closed in the network, where every model call passes one point. The difference between the two control types is set out in AI gateway vs AI firewall.

Krasper Raigate is a governance gateway of the second kind. When an agent’s AI provider hostnames point at it, it removes values found by nine deterministic detectors (such as card numbers, IBANs, email addresses and API keys) from request bodies, including tool results inside agent traffic, before they leave your network. It applies your allow, flag and block rules, refuses what it cannot recognise, and writes one hash-chained evidence record per request. Coding agents such as Claude Code, Codex, Gemini CLI, Antigravity CLI and Grok Build CLI are covered when pointed at it. Raigate is not a prompt injection detector, so injection risk is handled in the agent design and the permissions.

What do you receive, and how long does it take?

  • An inventory of agents with their tools, data, providers and EU AI Act classification.
  • A gap register: each gap with its evidence, the framework clause or article it relates to, the risk, the owner and the fix.
  • A roadmap ordered by risk, separating quick permission fixes from design changes.
  • After your team or partner has built the fixes, verification against the same register.

A focused AI gap analysis takes 4 to 6 weeks, a full review 8 to 12 weeks. It is scoped and quoted individually, with a fixed quote after a scoping call. Krasper Technology specifies and verifies; it does not certify, and it does not run penetration tests.