TL;DR: Traditional DLP breaks in agentic AI because real prompts are messy, business-sensitive data often has no regex pattern, and agents still need controlled reveal to act on tokenized values, according to Protecto. The security model shifts from simple masking to meaning-aware detection, context-preserving transforms, and policy-driven unmasking at runtime.
At a glance
What this is: This is an analysis of why agentic AI breaks the assumptions behind traditional DLP, with controlled reveal emerging as the core runtime security problem.
Why it matters: It matters because IAM, PAM, and NHI teams now have to govern not just who can see data, but when an agent may safely receive a real value without leaking it back into runtime context.
Context
Traditional DLP assumes sensitive data appears in clean patterns, can be redacted once, and stays hidden after that. Agentic AI breaks that model because the same conversation can carry business context, split identifiers, and values that only become sensitive when combined later in the workflow. That creates an identity and governance problem as much as a data problem, because the consumer of the data is no longer just a person.
The core issue is controlled reveal. Once an agent must act on a real value, the system needs to decide when to unmask it, for which consumer, and under which task context. That shifts the control point from static redaction to runtime authorization and makes agent identity governance part of the data protection stack.
Key questions
Q: Why do traditional DLP policies break down in agentic AI environments?
A: Traditional DLP often assumes data will pass through one inspectable channel, such as email or a network proxy. Agentic workflows split that path across APIs, SaaS, browser prompts, and tool calls, so a single control point cannot see the full transaction. That creates blind spots, inconsistent enforcement, and policy gaps between human and machine-driven activity.
Q: Why do business-sensitive data and agentic workflows need runtime authorization?
A: Because the decision is no longer just whether data is sensitive, but whether a specific task, agent, and destination are allowed to receive the real value now. Without runtime authorization, a prompt injection or over-broad agent request can trigger reveal at the wrong moment and in the wrong context.
Q: How should teams decide between masking and tokenization for AI data flows?
A: Use masking when no downstream task needs the original value and the safest outcome is to destroy it. Use tokenization when the agent must preserve meaning or reference the same value across steps, but keep the token mapping in a separate, tightly controlled boundary.
Q: What is the difference between protecting data at rest and controlling reveal at runtime?
A: Protection at rest limits exposure in stored systems, while controlled reveal governs when a live workflow may recover the real value for one consumer and one task. In agentic AI, the second control matters more because leakage happens during execution, not only in storage.
Technical breakdown
Why regex-based detection fails on agentic traffic
Classic DLP works best when sensitive values are predictable, isolated, and structurally simple. Agentic workflows rarely look like that. Values arrive in fragmented prompts, tool outputs, and multi-turn context where meaning emerges only after several steps. That means detection has to move beyond exact matches and pattern libraries into semantic classification, because business-confidential data such as deal terms, roadmap details, or internal investigations may have no stable pattern at all. When detection misses, the system leaks; when it over-matches, it destroys usefulness. The engineering challenge is not just finding PII, but finding sensitive meaning in noisy runtime data. See the Agentic AI Security Guide.
Practical implication: Treat detection as a semantic runtime control, not a regex filter.
Why masking and tokenization are not the same control
Masking is often used as a catch-all term, but the mechanics matter. Irreversible masking removes the raw value and ends the risk, but also ends any workflow that needs that value later. Reversible tokenization keeps the runtime usable by replacing sensitive values with surrogates, yet it introduces a mapping store, authorization layer, and audit trail that are now part of the security boundary. In agentic systems, format-preserving and context-preserving transforms are often the difference between an agent that can reason and one that becomes operationally blind. The key failure mode is assuming one transform solves both privacy and usability. See the Agentic AI Identity Guide.
Practical implication: Choose the transform based on whether the downstream task needs the original value, not on masking convenience.
How controlled reveal becomes a runtime authorization problem
Controlled reveal is the point where the system decides whether a token can become a real value again, and for whom. In agentic AI, that decision cannot live inside the agent because the agent is the component most likely to be manipulated by prompt injection or scope drift. Reveal has to be driven by caller, task, destination, and policy, then logged as a security event. The architectural shift is from static access lists to contextual, per-consumer-per-task authorization. That is why runtime data security is really an identity problem: the entity asking for reveal is a runtime actor, not a passive viewer. See the AI Agent Authorisation Guide.
Practical implication: Put reveal decisions outside the agent and bind them to task-scoped policy.
Threat narrative
Attacker objective: The objective is to induce the agent or surrounding workflow to expose real sensitive values that should have stayed tokenized or policy-gated.
- Entry begins when messy agentic input includes hidden business-sensitive content that simple pattern-based DLP does not detect.
- Credential or value exposure follows when the system masks only obvious patterns and leaves semantically sensitive material available to downstream tooling.
- Escalation occurs when the agent is allowed to request or reuse the real value without an independent authorization decision.
- Impact lands when the unmasked data reaches prompts, logs, or outbound calls and can be echoed, leaked, or misused at runtime.
Breaches seen in the wild
- postmark-mcp malicious MCP server 2025: A fake Postmark MCP server on npm quietly BCC'd every email AI agents sent through it to an attacker, using victims' own Postmark tokens.
- DeepSeek database exposure 2025: An unauthenticated DeepSeek ClickHouse database exposed over a million log lines with plaintext chat history and API keys in 2025.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Controlled reveal is the real boundary, not masking. Traditional DLP assumes the main problem is hiding sensitive text. In agentic systems, the harder question is which runtime actor may see the real value, for which task, and at what moment. That moves the governance problem from static redaction to contextual authorization, and it makes data protection inseparable from identity control.
Semantic detection is now an identity-adjacent control. If the system cannot recognise business-confidential meaning in messy prompts and tool responses, it cannot enforce least privilege over data. The result is not just leakage, but unusable governance because the control never understands what the agent is actually handling. Practitioners should treat detection quality as part of access governance, not just content filtering.
Runtime data security exposes a governance assumption collapse: masking was designed for content that stays hidden after transformation. That assumption fails when the actor is autonomous or semi-autonomous in execution, because the system must often reveal value mid-workflow to complete the task. The implication is that identity and data policy now have to be designed together, not layered after the fact.
Agent-context exposure creates a new kind of identity blast radius. Once a real value is revealed into the wrong runtime context, the agent can log it, summarise it, or forward it into other tools before any human sees the mistake. That is why the relevant boundary is no longer just storage or transport, but the live execution context where data becomes actionable.
Policy-driven unmasking is the control families must converge on. OWASP-NHI and zero-trust thinking both point to the same conclusion: the system should minimise what any runtime actor can hold, and reveal only what the task genuinely requires. The practical challenge is not whether the data is sensitive, but whether the consumer is authorised to see it in that specific workflow.
From our research library:
- 43% of security professionals are concerned about AI systems learning and reproducing sensitive information patterns from codebases, according to the State of Secrets in AppSec.
- 67% of organisations still rely heavily on static credentials despite the risks they pose to agentic AI deployments, according to the 2026 Infrastructure Identity Survey.
- Read next: AI Agent Authorisation Guide
What this signals
Runtime data security will become the governance hinge for agentic AI: organisations that keep treating masking as the end state will keep missing the moment when data becomes actionable. The control has to move to the decision point where an agent asks for a real value, and that means identity, task context, and policy have to be evaluated together.
The practical shift is from content suppression to controlled reveal. Teams should expect audit, authorization, and data governance owners to converge on the same runtime event because the question is no longer just what the data contains, but which actor may see it, for what purpose, and in which execution path.
Identity blast radius: the relevant risk is not simply that an agent sees sensitive data, but that a live runtime context can spread it into logs, summaries, and downstream tool calls before anyone notices. That makes reveal logging and task-scoped authorization the controls that will separate workable deployments from unsafe ones.
For practitioners
- Implement semantic sensitive-data detection Extend DLP beyond regex and exact-match rules so it can identify business-confidential meaning in messy prompts, tool outputs, and split context.
- Use reversible tokenization where workflows need real values later Replace raw values with consistent surrogates when the downstream task must preserve context, and keep the mapping store inside a separate protected boundary.
- Move reveal decisions outside the agent Authorize unmasking with a policy layer that evaluates caller, task, destination, and current workflow state rather than trusting the agent to request reveal safely.
- Log every reveal as a security event Record who asked, which agent acted, what field was revealed, and which destination received it so investigators can prove least privilege after the fact.
Key takeaways
- Agentic AI breaks traditional DLP because sensitive meaning is often contextual, not pattern-based, and the real control point is runtime reveal.
- Masking, tokenization, and authorization solve different parts of the problem, so teams need to design them together rather than treat them as one control.
- The most important question is no longer whether data is sensitive, but which runtime actor may receive the real value, for which task, and under what policy.
Related NHI Mgmt Group resources: Agentic AI Identity Guide · Agentic AI Security Guide · AI Agent Authorisation Guide · AI Agent Observability, Audit and Incident Response Guide
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-02 — Secret Leakage | Sensitive values can leak into prompts, logs, and tool outputs when reveal is not controlled. |
| NHI-10 — Human Use of NHI | Agents handling tokenized data still need strict human and system boundary control over when values are exposed. | |
| Recommendation — Treat runtime reveal as a leak path and constrain where raw values can re-enter agent workflows. Separate human-visible summaries from machine-usable values and log every reveal event. | ||
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | The article centers on agents requesting access to real values beyond their task scope. |
| Recommendation — Bind agent data access to task scope and deny reveal requests that exceed the approved context. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | Controlled reveal is an authorization decision about which runtime actor may access a value. |
| Recommendation — Apply task-scoped authorisation checks before any agent receives a real sensitive value. | ||
| NIST Zero Trust (SP 800-207) | Policy enforcement point — Policy enforcement point | Reveal decisions need an enforcement point outside the agent's control path. |
| Recommendation — Place data reveal behind a separate policy enforcement point so the agent cannot self-authorise. | ||
Key terms
- Controlled Reveal: The practice of exposing only the minimum data needed for a specific downstream action, and only into that action’s context. In agentic systems, controlled reveal prevents raw values from entering the model’s general reasoning space unless that exposure is explicitly justified.
- Context-preserving masking: A masking approach that replaces sensitive values while keeping the document’s structure, layout and non-sensitive content usable. It is designed for workflows that still need the file to function in retrieval, processing or review after sensitive fields are removed.
- Semantic Detection: A security approach that evaluates meaning and intent across an entire sequence of agent activity, rather than checking each input or action in isolation. It is especially relevant for agents because malicious behaviour often appears only when several seemingly valid steps are combined.
- Runtime Authorisation: Runtime authorisation is the practice of deciding access while a task is in progress, rather than only at provisioning time. It matters for NHIs because credentials and entitlements can change risk mid-session, especially when automation or AI agents interact with sensitive systems.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
Published by the NHIMG editorial team on October 22, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org