Subscribe to the Non-Human & AI Identity Journal

How do security teams reduce AI agent data leakage without slowing work?

Apply guardrails before requests leave the network, so disallowed data can be scrubbed or blocked before provider callout. That preserves runtime performance while still preventing unsafe prompts, restricted tool calls, or inappropriate data egress.

Why This Matters for Security Teams

AI agents leak data when they are allowed to decide too much, too early, with too much context. The practical problem is not just prompt injection or a single bad request. It is that autonomous systems can chain tools, copy sensitive inputs into downstream calls, and move data into places that humans never intended. NIST’s AI Risk Management Framework makes the same point at a governance level: risk has to be managed across the full lifecycle, not only at the model boundary, as described in the NIST AI Risk Management Framework.

That matters because current deployments already show scope creep. NHIMG research in AI Agents: The New Attack Surface report found that 80% of organisations say their AI agents have taken actions beyond intended scope, including inappropriate data sharing and credential exposure. Security teams that slow everything down with manual review often create shadow workflows, while teams that allow free-form agent access create leakage at machine speed. In practice, many security teams encounter the data-loss problem only after an agent has already copied sensitive context into an external callout, rather than through intentional review of the workflow design.

How It Works in Practice

The fastest way to reduce leakage is to enforce guardrails before the request leaves the network, rather than trying to inspect the fallout later. That usually means placing policy enforcement at the egress layer, the orchestration layer, or both, so the agent’s prompt, tool call, and outbound payload can be checked in real time. Current guidance suggests combining content inspection with identity-aware policy, because the same agent may be safe to access one dataset and blocked from another depending on task, role, and environment.

For agentic systems, static RBAC is rarely enough on its own. Agents do not behave like humans with stable daily workflows. They initiate tool chains dynamically, which means the better control model is intent-based or context-aware authorisation. Security teams increasingly pair that with just-in-time access and short-lived credentials, so the agent receives only the minimum secret or token needed for the current task and loses it when the task ends. That is the practical difference between controlling a user and controlling an autonomous workload.

Workload identity is the key primitive here. Rather than trusting a long-lived secret, teams should prove what the agent is with cryptographic identity, then decide what it may do at request time. Standards such as SPIFFE and real-time policy engines like Open Policy Agent are often used to enforce those decisions. For agent-specific risk patterns, see NHIMG’s OWASP NHI Top 10 and Analysis of Claude Code Security, which both show how tool access and data movement can be abused when controls are too coarse.

  • Classify data before the agent can see it, then block or redact sensitive fields at the boundary.
  • Evaluate every outbound request against current context, not a preapproved static allowlist alone.
  • Issue short-lived tokens for each task and revoke them automatically on completion.
  • Log the decision, the data category, and the downstream tool target for auditability.

These controls tend to break down when agents operate across fragmented SaaS estates with weak egress visibility, because policy cannot inspect what it cannot see.

Common Variations and Edge Cases

Tighter data controls often increase orchestration overhead, requiring organisations to balance lower leakage risk against latency, developer friction, and false positives. That tradeoff is real, especially for production agents that make many small calls rather than one large one. Best practice is evolving, but there is no universal standard for where to enforce every check yet.

In high-trust internal workflows, teams may choose lighter filtering on low-sensitivity content and stronger enforcement only for regulated data, secrets, or customer records. In customer-facing agents, the bar should be higher because leakage risk extends beyond the immediate task into compliance, contractual, and reputational harm. The 80% rogue-behaviour finding in AI Agents: The New Attack Surface report is a reminder that broad agent adoption can outpace governance maturity.

More advanced deployments also need special handling for tool chaining, where an agent may legally access one system but accidentally combine outputs in a way that reconstructs restricted data. That is why the current consensus leans toward layered controls: boundary filtering, runtime policy, short-lived credentials, and tight audit logs. For threat modeling and control mapping, pair OWASP Agentic AI Top 10 with CSA MAESTRO agentic AI threat modeling framework. The hard edge case is multi-agent systems with shared memory, because leakage can occur indirectly through agent-to-agent handoffs rather than a single visible outbound request.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10, CSA MAESTRO and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Agentic AI Top 10 A03 Agent tool abuse and data leakage are core OWASP agentic risks.
CSA MAESTRO MT-2 MAESTRO covers agent workflow risk, including data exposure paths.
NIST AI RMF GOVERN AIRMF governance requires managing lifecycle risk for AI systems.
OWASP Non-Human Identity Top 10 NHI-03 Short-lived secrets and rotation reduce exposure if agents leak tokens.
NIST CSF 2.0 PR.AC-4 Least-privilege access is central to limiting agent data exposure.

Replace long-lived agent secrets with ephemeral credentials and automatic revocation.