DSPM for AI Agents: What Changes

DSPM for AI agents explained: how data security posture management changes when agents retrieve, remember and share data, plus six controls.

Agent Security Team
Agent Security Team
·18 nov 2026
DSPM for AI agents: data stores connected to a central AI agent node

Last updated: October 19th

Quick Answer: DSPM (data security posture management) continuously discovers, classifies and monitors sensitive data across cloud and SaaS stores, then scores how exposed it is. For AI agents, DSPM must also cover data that agents retrieve, pass between tools, remember and send out. NeuralTrust's Sensitive Data Masking applies those rules to live agent prompts and responses.

In this article

  • What is DSPM?
  • How DSPM works for AI agents
  • Risks and real examples
  • Controls and best practices
  • DSPM vs related terms
  • How NeuralTrust helps
  • FAQs about DSPM

What is DSPM?

DSPM stands for data security posture management. Microsoft's Purview documentation (2026) describes it as a way to discover, protect and investigate sensitive data risks across a digital estate. The focus is the data itself, not the infrastructure around it. A DSPM program answers four questions: what data exists, where it lives, who can access it and how well it is protected.

Most DSPM tools do this through five repeating capabilities:

  • Discovery finds sensitive and shadow data in cloud storage, databases and SaaS applications.
  • Classification labels what it finds, such as personal data, credentials or financial records.
  • Risk assessment checks exposure, for example overshared files or publicly reachable stores.
  • Remediation fixes or recommends fixes, such as removing public links or revoking permissions.
  • Monitoring watches for suspicious access to sensitive data and raises alerts.

Microsoft's Defender for Cloud documentation (2026) adds an attack path view: which chained weaknesses would let an attacker reach a sensitive data store. That page describes storage accounts and databases, not agent workflows, which is the gap this article covers.

Two neighboring terms come up often. "Data security posture management" is simply the long form of DSPM. "AI DLP" means data loss prevention applied to prompts and responses. DSPM supplies visibility and policy, while AI DLP enforces that policy while data moves.

How DSPM works for AI agents

Classic DSPM assumes data sits in a store and moves through pipelines that a platform team designed. An agent breaks that assumption. It decides at run time what to retrieve, which tool to call and where to send the result, so a model chooses the data path.

Four paths matter most:

  1. Retrieval. Agents pull documents from knowledge bases and search indexes. Anything the agent's identity can read can enter the context window, whether or not the task needs it.
  2. Tool outputs. A CRM query, a ticket lookup or a file read returns raw records into the model's context, often unfiltered.
  3. Memory. Agents that persist notes or summaries create a new data store that no classification scan has labeled.
  4. Outbound actions. Emails, chat posts, pull requests and API calls carry data to recipients the user never reviewed.

Research supports the concern. A 2026 paper from researchers at the Korea AI Safety Institute and the Singapore AI Safety Institute tested three tool-using agents on realistic, non-adversarial tasks. It found that none of them achieved fully correct and fully safe execution across all scenarios. Successful task completion often coincided with data-handling failures, such as accessing unnecessary information or disclosing it to the wrong recipients. The setup returned unfiltered tool output, so what the agent chose to retrieve and forward decided what leaked.

Platform vendors are moving the same way. Microsoft's current Purview DSPM includes an inventory of AI apps and agents with their recent activity and sensitive-data interactions. That is a useful signal: agent visibility is becoming part of the DSPM category, not a separate product line.

DimensionClassic DSPMAgent-aware DSPM
Unit of analysisData stores and filesStores plus the agents, tools and identities that touch them
Data movementKnown pipelines and sharing linksRuntime paths: retrieval, tool outputs, memory, outbound actions
Access questionWhich users can read this data?Which agent identities can read it, and what do they actually fetch?
New data storesDatabases, buckets, SaaSVector indexes, agent memory, conversation logs
Enforcement pointThe storeThe store plus prompts, responses and tool calls
EvidenceScan results and access logsPlus prompt, tool-call and data-source logs

DSPM for AI agents: classic vs agent-aware data paths with policy checks on retrieval, tools, memory and outbound actions

Risks and real examples

The risks below come from named sources. Each one points to a data path that a store-only DSPM program would not see.

SourceWhat it reportsWhat DSPM must cover
EchoLeak, Aim Security (June 2025)Critical flaw (CVE-2025-32711, CVSS 9.3) in Microsoft 365 Copilot. A crafted email led Copilot to mix untrusted content with sensitive data and leak itThe retrieval path and trust boundaries between sources
IBM Cost of a Data Breach 2026, as summarized by Baker Donelson (July 2026)Shadow AI was involved in 43% of incidents, up from 20%, at an average cost of $5.39 millionDiscovery of unsanctioned AI tools and the data they touch
Same IBM summary92% of organizations with an AI-related incident lacked proper AI access controlsPer-agent access analysis
Verizon DBIR 2026Shadow AI use rose from 15% to 45% of employees in a yearVisibility into employee AI use
CISA, NSA and FBI joint guidance (May 2025)Names three data risk areas for AI: data supply chain, maliciously modified data and data driftProvenance and integrity of data feeding agents
OWASP Top 10 for LLM Applications 2026Sensitive Information Disclosure ranks secondClassification and output controls

EchoLeak shows the retrieval path in action. According to The Hacker News (2025), Aim Security found that a single email sent to an employee's inbox could carry hidden instructions. The victim later asked Copilot an ordinary question, and Copilot's retrieval engine combined the attacker's email with sensitive content from the user's Microsoft 365 data. The injected instructions then pushed that data out through Microsoft Teams and SharePoint URLs. Microsoft fixed the flaw without requiring customer action and reported no evidence of exploitation in the wild.

The lesson for DSPM is specific. The sensitive files were correctly stored and permissioned for the user. The failure came from what the agent combined at run time, which no scan of the files alone would reveal.

The IBM figures need one caveat: they come from a law firm's summary of the report, so check IBM's own report before quoting them in a board deck. Even so, the direction is consistent across sources. Employees adopt AI faster than governance does, and access controls lag behind.

Controls and best practices

CISA's joint guidance on AI data security lists ten best practices, including classifying data and using access controls, and conducting ongoing data security risk assessments. The six steps below apply those ideas to agents.

DSPM controls for AI agents: inventory, classify, least privilege, enforce, log and reassess loop

1. Inventory agents, tools and data sources

Start with a list of every agent, including the ones teams built without asking. Record the models, tools, data sources and identities each one uses. You cannot classify or restrict a path you have not found. Include browser-based assistants and employee-built automations, since shadow AI shows up in the same incident data.

2. Classify data and label it for agent use

Run discovery and classification on the stores agents can reach: file shares, ticketing systems, CRMs and vector indexes. Add one agent-specific question to each label: may an automated system read this and pass it on? That single field turns a label into a usable policy input.

3. Give each agent its own identity and least privilege

An agent that borrows a user's full access will fetch anything that user could fetch. Issue a separate identity per agent, scope it to the data the task needs and review it on a schedule. For more on this layer, see the AI Security glossary.

4. Enforce policy at the prompt and tool boundary

Labels only help if something acts on them. Place checks where data enters a prompt, where a tool returns records and where a response leaves. Useful actions are block, mask, reversible mask and alert, chosen by data type and destination. Credentials and payment data usually warrant blocking or masking, while lower-risk fields may only need an alert.

5. Log what agents actually retrieve and send

Capture prompts, tool calls and the data sources accessed, then review anomalies. Logs turn "the agent probably did not leak anything" into evidence. They also feed the next classification pass. The data leakage in AI agents guide covers common leak patterns, and agent observability tooling shows what to log.

6. Reassess risk on a schedule

Agents change when someone adds a tool, a data source or a model. Rerun your risk assessment after each change and at least quarterly. Track data lineage for the sources feeding agents, which connects to the AI bill of materials (AIBOM).

Together, the steps form a loop: classify the data, translate each label into a rule, enforce the rule at runtime, observe what happens and tune the rule. The loop never ends because the agent estate keeps changing.

See the agent layer of your data posture. NeuralTrust shows which agents touch which data and applies masking at the prompt boundary. Book a demo.

DSPM vs related terms

DSPM overlaps with several acronyms. The table separates them by job.

TermWhat it doesWhere it worksHow it relates to DSPM
DSPMFinds, classifies and scores sensitive dataCloud, databases, SaaSThe foundation: it tells you what needs protecting
CSPM (cloud security posture management)Checks cloud configuration for misconfigurationsCloud infrastructureCovers the container, while DSPM covers the contents
DLP (data loss prevention)Blocks or redacts sensitive data in motionEmail, endpoints, networks, promptsEnforcement that gets more precise with DSPM labels
AI-SPM (AI security posture management)Inventories AI assets and scores their riskModels, agents, toolsAdds the agent context that DSPM lacks
AIBOM (AI bill of materials)Lists models, datasets and libraries in an AI systemBuild and supply chainProvides lineage that DSPM can use
Agent observabilityRecords what agents do at run timeAgent executionSupplies evidence that DSPM reviews

How NeuralTrust helps

NeuralTrust is a Barcelona-based AI agent security company. It does not replace a DSPM platform that scans your data stores. It covers the agent layer, where the new data paths appear, and it works alongside the discovery and classification you already run. The table maps each control above to a NeuralTrust capability.

ControlNeuralTrust capability
Inventory agents, including shadow AIAgent Posture Management (TrustLens) discovers agents across cloud, SaaS, developer tools and employee endpoints
Map agents, tools, data sources and identitiesThe TrustLens asset graph links them so paths to a breach become visible
Enforce at the prompt boundarySensitive Data Masking detects PII, credentials and financial data in prompts and responses, with block, mask, reversible mask and alert actions
Log what agents retrieve and sendTrustLens records prompts, tool calls and the data sources accessed, and flags anomalies
Reassess riskTrustLens scores risk continuously across configuration, behavior and relationship exposure

Teams that already own a DSPM tool can feed its labels into these controls. Teams without one can start at the agent layer, because that is where this article's examples failed.

Talk to NeuralTrust about your agent data paths. We will map which agents reach sensitive data and where masking belongs. Book a demo.

FAQs about DSPM

1. What is DSPM?

DSPM, or data security posture management, is a practice and a category of tools. They discover sensitive data across cloud and SaaS environments, classify it, assess how exposed it is and help fix risks. It centers on the data itself rather than on servers or endpoints, and it answers where sensitive data lives and who can reach it.

2. Why does DSPM matter for AI agents?

Agents choose at run time what data to retrieve and where to send it. That creates paths through retrieval, tool outputs, memory and outbound actions that a store-only scan does not see. Incidents such as EchoLeak show that correctly permissioned data can still leak when an agent combines it with untrusted content.

3. How do you implement DSPM controls?

Inventory your agents and classify the data they can reach. Give each agent its own least-privilege identity, enforce policy at the prompt and tool boundary, and log what agents retrieve and send. Then reassess risk on a schedule. Start with the agents that touch regulated or customer data, then widen coverage.

4. How is DSPM different from related concepts?

DSPM focuses on sensitive data and its exposure. CSPM checks cloud configuration, DLP blocks data in motion, and AI-SPM inventories AI assets. They complement each other: DSPM provides the labels, DLP and gateways enforce them, and AI-SPM and observability add agent context and evidence.

Sources

  1. CISA, NSA, FBI and international partners, "AI Data Security: Best Practices for Securing Data Used to Train & Operate AI Systems," May 2025: https://www.cisa.gov/news-events/cybersecurity-advisories/aa25-142a
  2. CISA joint Cybersecurity Information Sheet (full text, Version 1.0, May 2025): https://www.ic3.gov/CSA/2025/250522.pdf
  3. Microsoft Learn, "Learn about Microsoft Purview Data Security Posture Management (DSPM)," updated May 26, 2026: https://learn.microsoft.com/en-us/purview/data-security-posture-management-learn-about
  4. Microsoft Learn, "Overview - Data security posture management - Microsoft Defender for Cloud," updated June 17, 2026: https://learn.microsoft.com/en-us/azure/defender-for-cloud/concept-data-security-posture
  5. The Hacker News, "Zero-Click AI Vulnerability Exposes Microsoft 365 Copilot Data Without User Interaction," June 12, 2025: https://thehackernews.com/2025/06/zero-click-ai-vulnerability-exposes.html
  6. Baker Donelson, "Ten Takeaways from IBM's 2026 Cost of a Data Breach Report," July 30, 2026: https://www.bakerdonelson.com/ten-takeaways-from-ibms-2026-cost-of-a-data-breach-report
  7. Verizon, "Vulnerability exploitation top breach entry point, 2026 industry-wide DBIR finds," May 19, 2026: https://www.verizon.com/about/news/breach-industry-wide-dbir-finds
  8. Help Net Security, "OWASP 2026 LLM Top 10," August 6, 2026: https://www.helpnetsecurity.com/2026/08/06/owasp-2026-llm-top-10-released/
  9. Korea AI Safety Institute and Singapore AI Safety Institute researchers, "An Evaluation of Data Leakage Risks in Tool-Using LLM Agents in Realistic Scenarios," arXiv, 2026: https://arxiv.org/pdf/2606.17114