[Governed AI Transformation 03] If AI Can Read It, AI Can Leak It

Identity and access management — and audit — for AI agents that read, and act on, your systems.

Key Takeaways

  • The first two articles in this series dealt with AI that answers questions. This one deals with AI that reads your systems and acts on them — and agentic AI security is a fundamentally different problem from prompt security.
  • Gartner predicts that by 2028 a quarter of enterprise breaches will be traced back to AI agent abuse; the average Fortune 500 company will run more than 150,000 agents by 2028, up from fewer than fifteen in 2025 — what analysts call AI agent sprawl.
  • IBM's 2025 data shows the most common AI-related security incident involves a compromised application, API or plug-in, and 97% of organisations that suffered one had no proper AI access controls in place.
  • Two mechanisms are quietly breaking the permissions you already have: retrieval flattens access rights, and delegation gives agents more privilege than the people who trigger them — the decades-old confused-deputy problem in new clothes.
  • The fix is four controls that must travel with every request: identity and access management, scope, content and evidence — evidence being the practical expression of GDPR Article 30 and the AI Act's Article 12 record-keeping duty.
  • Testing whether an agent architecture is ready to scale comes down to three questions: does the path exist, is it controlled, and can you prove what happened.

The first two articles in this series dealt with AI that answers questions. This one deals with AI that reads your systems — and, increasingly, acts on them.

The moment an agent is given a connector into the ERP, the CRM, the mailbox or the file share — and a second connector out to a SaaS tool or an external API — the security question changes shape. It is no longer “what might an employee paste into a prompt?” It is “what can this piece of software reach, on whose authority, and who will know?” Most organisations answer the first question with training and the second with hope.

From assistants to agents: data now crosses the trust boundary

In the assistant era, data moved along one short path: a person typed something, a model replied. The risk sat at the keyboard, and the controls — training, a usage policy, a data-loss filter on the prompt — sat there too.

Agents change the topology. An agent is authorised to read from several internal systems, reason about what it finds, and then act — by calling an external API, updating a SaaS tool, sending a message, or handing context to another agent. Each hop is individually approved. The sequence is not. Customer records read from the CRM in step one are still in the agent's working context when it calls a third-party service in step four, and no single permission check ever saw both ends of that journey. The agent has quietly become the only entity in the company that routinely carries data across the trust boundary in both directions, on its own initiative, at machine speed.

Diagram of an AI agent sitting across the trust boundary between systems of record and the outside world, showing six risk patterns

Figure 1. An agent sits astride the boundary between systems of record and the outside world. Six risk patterns follow: three concern where data goes (boundary expansion, delegated authority, context contamination) and three amplify them (compromised tooling, non-deterministic paths, speed and scale).

The new attack surface is access, not the model

Analysts have been unusually direct about this. Gartner predicts that by 2028 a quarter of enterprise breaches will be traced back to AI agent abuse, from external attackers and malicious insiders alike. [1] Later research from the same firm warns that agent permissions must be scoped specifically for the agent rather than inherited from human user roles. [2] Gartner also expects the average Fortune 500 company to be running more than 150,000 agents by 2028, up from fewer than fifteen in 2025 — what analysts call AI agent sprawl. [3]

IBM's 2025 breach data explains why the risk is concentrated at the point of connection: the most common AI-related incident involved a compromised application, API or plug-in, and 97% of organisations that suffered one had no proper AI access controls in place. [4]

And the gap is widening rather than closing. Deloitte's 2026 survey finds 74% of organisations expect to be using AI agents by 2027, while only 21% have a mature governance model for them. [5]

Chart of agent risk statistics — 25% of breaches traced to agent abuse by 2028, 150,000 agents per Fortune 500 company by 2028, 97% lacked AI access controls, 74%/21% adoption vs. governance gap

Figure 2 — Agent risk, by the numbers.

Put simply: the industry is wiring AI into its systems of record several times faster than it is deciding who is allowed to pull the wires.

Why agents break the permissions you already have

Two mechanisms do the damage. The first is retrieval. Retrieval-augmented generation works by indexing documents into a vector store and letting the model retrieve relevant passages at query time. The convenience is enormous. So is the side effect: the index flattens permissions. A contract that was visible to three people in a locked folder becomes a chunk of text that a retriever will happily surface to anyone who phrases the question well. Unless access rights are re-evaluated at query time, in the user's context, a knowledge agent becomes the most efficient data-exfiltration interface the company has ever built — and one that leaves no trace in the file server's logs, because the file server was never asked.

The second is delegation. An agent given a service account to “read the CRM” typically holds far more privilege than the person who triggered it. That person may not be allowed to see the board's pipeline, but the agent is, and a well-crafted request — or a prompt injected via an email the agent was asked to summarise — can steer it there. This is the confused-deputy problem, three decades old, arriving in a new costume. Combine the two with the cross-boundary flows in Figure 1, and a low-privilege user, a helpful agent and a legitimate connector can move regulated data outside the company without anyone having done anything forbidden.

Diagram comparing two mechanisms that break permissions — retrieval flattening access and delegation over-privileging agents

Figure 3 — Two mechanisms that break the permissions you already have: retrieval and delegation.

Diagram of the access path from user through workspace, agent and connector to system, each hop needing its own control

Figure 4. Each hop in the access path — user, workspace, agent, connector, system — needs its own control. Permission and accountability must travel with the request rather than stop at the front door.

Four controls that must travel with the request

Put those two failure modes together and there is only one direction the answer can go: identity and access management can no longer be a check made once at the front door — it has to travel with every request, across the whole access path. That breaks down into four controls:

Control What it means
1. Identity Who is asking must be established at three levels — organisation, workspace and user — and enforced with least-privilege roles rather than shared licences. This is machine identity management's core proposition in the agent era: an agent is itself a machine identity, and device, network and location checks matter just as much as they do for a person. An agent invoked from an unmanaged device at 3 a.m. from another continent is a different request from the same agent invoked at a desk.
2. Scope Knowledge and agents should live in walled workspaces. A finance workspace's retriever should be structurally unable to see the HR workspace's documents, not merely instructed not to. Connectors should be granted per workspace, so that “read the CRM” means “read the parts of the CRM this team owns”.
3. Content Even a correctly scoped request can carry a sensitive payload — a customer's health data on the way out, or an injection attempt on the way in. An inline GenAI firewall that reasons about meaning rather than matching patterns is the last line of defence, and it should be able to mask the sensitive fragment and let the rest of the work continue.
4. Evidence Every retrieval, connector call and automated action should produce a record that names the user, the workspace, the policy applied and the outcome, written to storage that cannot be edited after the fact. Under GDPR Article 30 (records of processing activities) and the AI Act's Article 12 record-keeping requirements, this is not a nice-to-have; it is what a supervisory authority will ask for.

These four are the design constraints we built into AnyInsight. Its three-tier IAM ties every request to an organisation, a workspace and a user; workspaces are walled, with knowledge, agents and connectors assigned per workspace and never shared by default; the zero-trust firewall inspects every prompt and response in line; and five log types — system, dialogue, automation, shared conversation and connector — plus an immutable Data Vault provide the evidence trail. The 500-plus MCP connectors that make agents useful are the same reason the scoping has to be strict, and we treat the two as inseparable.

A practical test for your architecture

Ask three questions of any agent deployment, existing or planned — does the path exist, is it controlled, and can you prove what happened:

Three-question practical test for an AI agent architecture

Figure 5 — A practical test for your AI architecture.

  1. Can any agent in your environment both read an internal system of record and call an external service within the same task? If so, what sits between those two steps?
  2. When an agent reads customer data in one step, what prevents that data from travelling — in its working context — into a later call to a SaaS tool, an external API or a model provider?
  3. Can I produce, for a named individual and a named date, every system the AI read on their behalf and every action it took?

If any answer is “no” or “I'd have to check”, the deployment is not ready to scale, however impressive the demo.

Conclusion

As AI moves from answering questions to reading systems and acting on them, the centre of gravity in security shifts from the model itself to the access path. Retrieval flattens permissions, delegation amplifies them, and together they can move regulated data out of a company without anyone doing anything wrong. Identity and access management, scope, content and evidence are the four controls that have to travel with every request, rather than stopping at the front door.

If your organisation is planning or already running AI agents, AnyInsight's team can walk you through what identity, scope, content and evidence controls that travel with every request would look like for your architecture.

The final article in this series turns these principles into a checklist: ten questions to ask any enterprise AI platform vendor before you sign — including how it governs agents that move data between systems.

Series progress graphic — Governed AI Transformation, Part 3 of 4

Figure 6. This series runs four parts; this is Part 3. Part 1 covered the governance bottleneck; Part 2 covered shadow AI; Part 4 will cover the ten questions to ask before you sign with an AI platform vendor.

Beginnen Sie noch heute mit Trusted AI

Erstellen Sie Ihr AnyInsight.ai-Konto und nutzen Sie eine 14-tägige kostenlose Testversion mit vollständigem Zugriff auf alle Funktionen.
Kostenlose Testversion starten

Über AnyInsight.ai

AnyInsight.ai ist eine sichere AI Workforce Plattform, powered by HEARTBOT AI Inc. , die Unternehmen dabei hilft, AI agents ohne Coding zu erstellen, bereitzustellen und zu verwalten. Basierend auf einer Zero-Trust-Architektur bietet sie integrierte Zugriffskontrolle, prompt injection protection, governance und compliance — damit Unternehmen AI mit Vertrauen skalieren können.

Frequently asked questions

Q1: What's the difference in security risk between an AI agent and a regular AI assistant?
A1: An assistant only answers questions, so the risk stays at the keyboard. An agent reads internal systems, reasons about what it finds, and then acts — calling an external API, updating a SaaS tool, even handing context to another agent. Each hop is individually approved, but nobody reviews the whole path end to end. That is exactly the problem agentic AI security has to solve, and prompt security on its own does not.
Q2: What is AI agent sprawl?
A2: It is the uncontrolled growth in the number of agents running inside an organisation. Gartner predicts the average Fortune 500 company will run more than 150,000 agents by 2028, up from fewer than fifteen in 2025. Once the count is out of control, scope, permissions and audit become very hard to police one agent at a time — exactly what the four controls in this article (identity, scope, content, evidence) are designed to address.
Q3: Why does retrieval-augmented generation (RAG) create a data-exfiltration risk?
A3: RAG indexes documents into a vector store so a model can retrieve relevant passages at query time, but that process flattens the access controls that used to keep those documents locked down — a contract three people could see becomes a chunk of text any well-phrased question can surface. Unless access rights are re-evaluated at query time, in the user's own context, the retriever becomes the most efficient data-exfiltration interface a company has ever built.
Q4: How is machine identity management different from managing human user identities?
A4: An agent is itself a machine identity, usually operating through a service account that typically holds far more privilege than the human who triggered it. Machine identity management means applying the same device, network and location checks to that identity as to a person, and provisioning it on least privilege rather than inheriting or sharing a human role's permissions — otherwise you get the confused-deputy problem described in this article.
Q5: What do GDPR Article 30 and the AI Act's record-keeping duty actually require organisations to keep?
A5: GDPR Article 30 requires organisations to maintain records of processing activities; the AI Act's Article 12 requires high-risk AI systems to be capable of automatically logging their operation. Applied to an agent architecture, that means every retrieval, connector call and automated action needs a record naming the user, the workspace, the policy applied and the outcome, written to storage that cannot be edited afterwards — precisely the “evidence” control in this article, and precisely what a supervisory authority will ask to see.
Disclaimer

The insights and information shared in this article regarding the EU AI Act are for informational purposes only and do not constitute professional legal advice. We do not provide legal consulting services and assume no legal liability for any decisions made based on the content of this publication. As the interpretation and application of laws can vary depending on specific circumstances, we strongly recommend consulting a qualified legal advisor or attorney before making any compliance assessments or business decisions.

Reference

[1] Gartner, "Gartner Unveils Top Predictions for IT Organizations and Users in 2025 and Beyond" (22 October 2024). https://www.gartner.com/en/newsroom/press-releases/2024-10-22-gartner-unveils-top-predictions-for-it-organizations-and-users-in-2025-and-beyond

[2] Gartner, "Gartner Predicts 25% of All Enterprise GenAI Applications Will Experience At Least Five Minor Security Incidents Per Year By 2028" (9 April 2026). https://www.gartner.com/en/newsroom/press-releases/2026-04-09-gartner-predicts-25-percent-of-all-enterprise-gen-ai-applications-will-experience-at-least-five-minor-security-incidents-per-year-by-2028

[3] Gartner, "Gartner Identifies Six Steps to Manage AI Agent Sprawl" (28 April 2026). https://www.gartner.com/en/newsroom/press-releases/2026-04-28-gartner-identifies-six-steps-to-manage-artificial-intelligence-agent-sprawl

[4] IBM & Ponemon Institute, "Cost of a Data Breach Report 2025". https://www.ibm.com/reports/data-breach

[5] Deloitte, "State of AI in the Enterprise 2026: The untapped edge" (January 2026). https://www.deloitte.com/us/en/what-we-do/capabilities/applied-artificial-intelligence/content/state-of-ai-in-the-enterprise.html

Weiter erkunden

Ähnliche Artikel

Alle Artikel anzeigen