TL;DR: Data masking now has to protect sensitive information as it moves through SaaS, cloud storage, GenAI prompts, browsers, endpoints, APIs, and MCP-connected tools, according to Strac’s analysis. Traditional database-centric masking is too narrow because modern data exposure is increasingly real-time, contextual, and workflow-driven, not just storage-based.
At a glance
What this is: This is an analysis of how data masking has expanded from database protection to real-time control across SaaS, GenAI, MCP, browsers, and endpoints.
Why it matters: It matters because IAM and security teams now need masking decisions to follow data as it moves through human, machine, and agent-driven workflows, not just where it is stored.
Context
Data masking is the practice of obscuring sensitive values so they can still support legitimate work without exposing the original data. In this article, the primary governance gap is that masking strategies built around databases do not match how sensitive data now moves through SaaS, GenAI, MCP workflows, APIs, browsers, and endpoints.
That shift matters for identity and access programmes because access is no longer the only control point. The article frames masking as part of a broader discovery-and-enforcement model, where DSPM finds sensitive data and DLP determines what happens when a user, application, or AI workflow tries to move it.
Key questions
Q: How should security teams protect sensitive data across SaaS and GenAI workflows?
A: Use continuous discovery, classification and real-time remediation together. Sensitive data should be identified where it appears, then redacted, blocked, encrypted or removed before it spreads through chats, files or prompts. The key is to enforce policy in the workflow itself, not rely on alerts after exposure has already occurred.
Q: When does data masking fail to reduce exposure in practice?
A: Masking fails when it is limited to storage systems while data is actually being moved through prompts, tickets, browser sessions, or agent workflows. In those cases, the sensitive value can still be copied, forwarded, or reused outside the original protection boundary.
Q: What signals show that masking controls are too narrow for modern environments?
A: The strongest signal is repeated sensitive-data movement through channels that bypass the systems where masking is configured, such as SaaS apps, browser uploads, GenAI prompts, and MCP tool calls. If discovery and enforcement are disconnected, the control is too narrow.
Q: How do organisations decide between masking, redaction, and blocking?
A: Use masking when limited visibility is enough for the workflow, redaction when the sensitive value is unnecessary, and blocking when any exposure would create unacceptable risk. The decision should follow the destination, the user, and the sensitivity of the data, not a single global rule.
Technical breakdown
Why database-centric masking fails in modern workflows
Traditional masking assumes sensitive values are protected before data reaches a limited set of downstream environments, such as test databases or developer copies. That assumption breaks when data is copied into SaaS records, support tickets, browser sessions, GenAI prompts, or internal tools that may never touch the original database. Masking now has to follow the data object, not just the source system, and it often has to act inline rather than after the fact. The control model shifts from storage protection to workflow protection, which means context becomes part of the enforcement decision.
Practical implication: treat masking as a workflow control and map every user, SaaS, and AI path where sensitive data can reappear.
How DSPM and DLP turn masking into enforcement
DSPM discovers where sensitive data exists and classifies it, while DLP decides whether the data can be used, shared, uploaded, or transmitted in a given context. That pairing matters because discovery without action only creates visibility, and masking without discovery misses most exposure points. In practice, modern masking may mean redaction, blocking, deletion, encryption, quarantine, or coaching depending on destination and risk. The article’s main technical point is that masking is no longer a single transformation but one of several policy actions triggered by data movement.
Practical implication: connect discovery to inline remediation so the control triggers before exposure, not after alert triage.
Why MCP-aware controls matter for agentic AI data flows
MCP introduces a tool-mediated path where AI systems can retrieve information from enterprise resources and pass it to other tools without an employee manually copying the data. That changes the exposure model because the sensitive value can move across multiple trust boundaries in one action chain. An MCP-aware masking or DLP layer has to inspect both the retrieval and the forwarding steps, because the agent is not just reading data but acting as a transport path. For IAM and security teams, the core issue is not model output alone, but policy continuity across model-to-tool communication.
Practical implication: extend masking policies to MCP sessions so tool-to-tool transfers cannot bypass your existing data handling rules.
Breaches seen in the wild
- DeepSeek database exposure 2025: An unauthenticated DeepSeek ClickHouse database exposed over a million log lines with plaintext chat history and API keys in 2025.
- Indian government breach 2021: Sakura Samurai found exposed .git and .env files across Indian government sites, leaking 35 credential pairs, private keys and personal data.
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
Database-era masking no longer matches the data plane. The article shows that the control assumption was built for a world where sensitive values stayed inside structured stores long enough to be masked before use. That assumption fails when the same data appears in SaaS, prompts, browser sessions, and endpoint workflows. The implication is that data masking is now a governance function for live business paths, not a storage hygiene measure.
Discovery without remediation is not enough. DSPM tells teams where sensitive data exists, but that visibility has limited value unless DLP can enforce a response when the data moves. The article correctly places masking inside a broader enforcement stack that includes redaction, blocking, deletion, encryption, quarantine, and coaching. Practitioners should read that as a sign that policy orchestration matters more than any single masking method.
MCP creates a new trust boundary for sensitive data handling. Once AI agents can retrieve data from one system and hand it to another through MCP, the exposure problem becomes workflow-driven rather than application-specific. Workflow-bound data handling: the practical unit of control is no longer the source system but the sequence of retrieval, transformation, and forwarding steps. Practitioners need to govern that path as a single exposure surface.
Masking has become a compensating control for identity sprawl. Human users, SaaS apps, endpoints, APIs, and AI tools all interact with the same sensitive records, which means access rights alone do not prevent exposure. The article’s deeper signal is that identity governance and data governance are converging at the point of use. The practitioner conclusion is that masking policies must be evaluated alongside entitlement scope, not after it.
Real-time remediation is now the meaningful baseline. The article’s repeated emphasis on live masking and redaction reflects a broader shift in control expectations. In modern environments, an alert after data has already been copied or sent is often too late to matter. Practitioners should assume that effective control now means pre-exposure or inline intervention, especially in GenAI and MCP workflows.
From our research library:
- 24,008 unique secrets were exposed in MCP configuration files in 2025 alone, the protocol's first year of widespread adoption, according to the State of Secrets Sprawl 2026.
- Read next: MCP Security Guide
What this signals
Workflow-bound masking is now the right mental model. Security teams should stop treating masking as a one-time transformation and start treating it as an enforcement decision that follows data through SaaS, GenAI, endpoint, and MCP activity. The important change is not just where the data lives, but where it can be copied next.
MCP-aware controls matter because agentic workflows can move sensitive data between enterprise tools without the human copy-and-paste step that older controls assumed. That means policy must sit on the retrieval-and-forwarding path, not only at the source system.
Live redaction beats after-the-fact alerting. Once sensitive data has already reached an AI prompt, support ticket, or browser session, an alert often arrives too late to change the exposure outcome. Inline remediation is now the control quality test, not dashboard visibility.
For practitioners
- Map sensitive-data movement paths Inventory where PII, PHI, PCI data, credentials, and other sensitive information travel across SaaS, cloud storage, browsers, endpoints, APIs, and MCP-connected tools.
- Pair discovery with inline remediation Connect sensitive-data discovery to a response engine that can mask, redact, block, delete, quarantine, encrypt, or coach based on the destination and workflow.
- Extend policies to GenAI prompts and uploads Inspect prompts, files, and attachments before they reach AI applications so redaction or blocking happens at the point of entry.
- Treat MCP sessions as enforcement points Apply data-handling policy between MCP clients, servers, and enterprise tools so AI-to-tool transfers cannot bypass masking rules.
- Align masking with access scope Review whether users, contractors, support staff, and analysts can see sensitive values they do not need, then reduce exposure while preserving the workflow.
Key takeaways
- Data masking has outgrown its database roots because sensitive information now moves through SaaS, GenAI, endpoints, APIs, and MCP-connected tools.
- The control problem is no longer detection alone but whether discovery can trigger the right response before data crosses an unsafe boundary.
- Practitioners should align masking with DLP, workflow context, and access scope so the control matches where exposure actually happens.
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 sets 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 moving through SaaS, GenAI, and MCP flows create exposure beyond the source system. |
| NHI-10 — Human Use of NHI | Employees pasting data into AI tools and SaaS apps turns human actions into exposure paths. | |
| Recommendation — Apply NHI-02 controls to detect and remediate sensitive values before they leave approved workflows. Block human-driven transfers of sensitive NHI data into untrusted prompts, tickets, and uploads. | ||
| OWASP Agentic AI Top 10 | ASI02 — Tool Misuse | MCP-connected agents can move data between tools in ways that bypass intended handling rules. |
| Recommendation — Constrain agent tool use so retrieval and forwarding cannot violate data-handling policy. | ||
| NIST CSF 2.0 | PR.DS-01 — Data-at-rest is protected | The article extends protection beyond storage into data in use and movement across workflows. |
| PR.AA-05 — Access Permissions, Entitlements and Authorizations | Masking reduces unnecessary visibility even when access technically exists. | |
| Recommendation — Extend data protection controls to cover data in motion and data in use, not only storage. Reduce entitlements to sensitive values that users and workflows do not need to see. | ||
Key terms
- Data Masking: Data masking obscures sensitive values so people or systems can work with the information without seeing the original content. In modern environments it is used as a runtime protection, not only as a database preparation technique, and it can be static, dynamic, or context-aware depending on the workflow.
- DLP Monitoring: DLP monitoring is the continuous observation of how sensitive data is stored, moved, and used. It combines content awareness with policy enforcement so organisations can spot unauthorised sharing, risky transfers, and abnormal access before data leaves approved boundaries.
- DSPM: Data Security Posture Management is the discipline of finding, classifying, and protecting sensitive data across storage systems and workflows. In AI environments, DSPM helps teams understand what data exists, where it lives, and whether AI systems can access it appropriately.
- MCP Layer DLP: MCP Layer DLP is data loss prevention applied to the Model Context Protocol traffic that connects AI agents to tools and data. It inspects prompts, responses, and tool payloads for sensitive content, then blocks, redacts, logs, or quarantines transfers based on policy. This helps control leakage across agentic workflows.
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 August 19, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org