AI security posture management and data security posture management both claim the training bucket, the vector store and the agent that reads them, so organisations running both often end up with two owners for the same risk, or with no owner for the stores in between. AI-SPM inventories and checks the AI estate: models, endpoints, agents, MCP servers and the identities they run as. DSPM finds sensitive data wherever it sits and works out who can reach it. This guide covers the boundary: which assets belong to which tool, which fall into the gap, how training-data lineage and agent permissions cross the line, and when to consolidate into one platform or a CNAPP. It is for cloud security architects, data security leads and AI platform owners. For the basics, see the AI Security Posture Management (AI-SPM) Guide and Data Security Posture Management (DSPM).
Key takeaways
- They start from different assets. AI-SPM starts from the model, endpoint or agent and asks how it is exposed; DSPM starts from the data and asks where it is, how sensitive it is and who can read it.
- The contested middle is where AI data lives. Vector stores, RAG indexes, fine-tuning datasets, prompt logs and agent memory are AI assets and sensitive data stores at the same time, and each tool tends to see only half of them.
- Lineage is the join neither tool owns alone. DSPM can say a bucket holds personal data; AI-SPM can say a model exists. Knowing which model was trained or grounded on that bucket needs ML lineage records that you feed to both.
- Agent permissions are the shared finding. An agent identity that can read a sensitive store is an AI-SPM identity finding and a DSPM access finding. Decide which queue owns it before both raise it.
- Consolidate the graph, not necessarily the team. One platform or CNAPP reduces duplicate findings, but only if it classifies data in AI stores and treats AI resources as first-class assets. Test both halves before retiring a tool.
Short answer
If you can list your sensitive data but cannot list your models, agents and AI keys, you need AI-SPM. If you can list your AI estate but cannot say what sensitive data it was trained on, retrieves or logs, you need DSPM coverage of AI stores. Runtime inspection of prompts is a third layer that neither provides: see AI-SPM vs AI Runtime Security. Data in motion is compared in DSPM vs DLP.
Side-by-side comparison
| Dimension | AI-SPM | DSPM |
|---|---|---|
| Starting asset | Model, endpoint, agent, MCP server, notebook, AI credential | Data store, table, bucket, file, SaaS location |
| Core question | What AI exists, how is it configured, and what can reach it? | What sensitive data exists, where, and who can access it? |
| Typical findings | Key authentication enabled, public endpoint, over-privileged agent, vulnerable AI library, unregistered model | Unencrypted sensitive store, public bucket with personal data, overshared site, shadow copy of production data |
| What it knows about AI data | That a data source is attached to a model or agent | What the data source contains and how sensitive it is |
| Identity view | Identities of AI workloads and agents, their roles and tokens | Every principal with read or write on sensitive data, human or not |
| Usual owner | Cloud security or AI platform team | Data security, privacy or governance team |
| Fails when | Data sensitivity is unknown, so findings cannot be ranked | The store is not recognised as feeding AI, so its blast radius is understated |
The asset-scope boundary
The clearest way to settle ownership is to classify each asset by what kind of risk dominates: configuration and exposure of an AI component, or the content of a data store. Most assets sort easily. A minority sit in both.
| Asset | Dominant risk | Primary owner | What the other tool must add |
|---|---|---|---|
| Managed model endpoint (hosted inference) | Exposure, authentication, quotas | AI-SPM | DSPM: sensitivity of the data the endpoint is grounded on |
| Self-hosted model artefact and registry | Supply chain, unsafe serialisation, integrity | AI-SPM | DSPM: whether weights were trained on restricted data |
| Agent and its tools, MCP server | Excessive agency, tool scope, identity | AI-SPM | DSPM: which sensitive stores the agent identity can reach |
| Raw training and fine-tuning datasets | Personal or confidential content, poisoning | DSPM | AI-SPM: which jobs and models consume the dataset |
| Vector store and RAG index | Both: sensitive chunks and permission loss | Shared, named owner required | Each must cover its half explicitly |
| Prompt and response logs, conversation history | Sensitive content accumulated at volume | DSPM | AI-SPM: which applications write the logs and with which identity |
| Agent memory stores | Sensitive content and poisoning persistence | Shared | Each must cover its half explicitly |
| Notebooks and development environments | Exposure, credentials, local data copies | AI-SPM | DSPM: sensitive extracts saved inside the workspace |
Vendor documentation shows why the shared rows exist. Microsoft's AI-SPM bill of materials covers "application components, data, and AI artifacts from code to cloud", and treats grounding and fine-tuning data as part of the exposure picture. Google's AI Protection lists data sources beside models and MCP servers, while content profiling comes from Sensitive Data Protection.
Why vector stores are the hardest case
A vector store holds embeddings plus, usually, the source text chunks and metadata. OWASP LLM08:2025 Vector and Embedding Weaknesses lists unauthorised access and data leakage, cross-context leaks in shared stores and embedding inversion among its risks. From a DSPM point of view, the chunk text is classifiable like any document, but many classifiers do not parse vector database formats, and the embeddings themselves are not readable text, so a store full of sensitive chunks can look empty of findings. To AI-SPM it is an attached data source with network settings, and nothing says the chunks came from a restricted HR folder. The practical answer is to classify content at ingestion, before chunking, and tag the index with the highest sensitivity of its sources. See the Vector Database Security Guide and the RAG Security Guide.
AI-SPM in depth: threat model, failures and controls
- Threat model: the attacker reaches the AI estate through its infrastructure. Typical paths are a leaked model API key (MITRE ATLAS AML.T0055 Unsecured Credentials), a weakly authenticated public endpoint, an over-broad agent identity and an unsafe model artefact.
- Architecture in words: read-only connectors to cloud accounts, repositories and registries feed a graph of AI resources, identities and network paths.
- Where it fails at the boundary: it ranks a private, keyless endpoint as low risk even when the endpoint is grounded on the most sensitive data in the company, because it does not know the data's sensitivity. It also misses AI data stores created outside the AI service, such as an exported bucket later used for fine-tuning.
- Controls it drives: disable key authentication in favour of workload identity, make endpoints private, scope each AI identity to its declared data sources, register every model and agent in the inventory, and block unsafe model formats. These map to NIST SP 800-53 CM-8 System Component Inventory and AC-6 Least Privilege.
DSPM in depth: threat model, failures and controls
- Threat model: an attacker, or an over-broad AI system, reaches sensitive data through an exposed, overshared or copied store. ATT&CK T1530 Data from Cloud Storage describes the cloud collection path; ATLAS AML.T0057 LLM Data Leakage describes the AI path, where a model returns data it was given access to.
- Architecture in words: connectors sample content in object stores, databases and SaaS locations, classify it against sensitive information types, and map access from identities to data. Sampling is the norm: Microsoft documents sampling up to 20 MB per file and 300 to 1,024 database rows.
- Where it fails at the boundary: it rates a private, encrypted transcript bucket as medium without knowing a customer-facing model was fine-tuned on it. Data embedded into vectors or model weights is out of its reach.
- Controls it drives: remove public and cross-account access, label and encrypt sensitive stores, delete shadow copies and set log retention. These map to NIST SP 800-53 PM-5(1) Inventory of Personally Identifiable Information and SI-12 Information Management and Retention.
Training-data lineage: the join between the two
The most important question at the boundary is "which models and agents depend on this data?", and its reverse, "what data is this model built or grounded on?". Neither posture tool answers it reliably on its own; ML lineage does. Amazon SageMaker ML Lineage Tracking, for example, records training jobs, datasets used, pipelines, endpoints and models, and lets you query "the exact artifacts used to train a model".
- Record lineage at the pipeline: make dataset identifiers and versions mandatory inputs to training and indexing jobs, so lineage exists for every model and index, not just for the ones built by careful teams.
- Feed DSPM sensitivity into the AI inventory: tag each dataset with its highest classification and propagate that tag to every model, fine-tune and index that consumes it.
- Feed AI dependency into the data inventory: mark data stores that feed AI so that a change in their sensitivity, or a deletion request, triggers review of the dependent models.
- Use lineage for poisoning response: when a dataset is tampered with (ATLAS AML.T0020 Training Data Poisoning, AML.T0070 RAG Poisoning), lineage shows which models and indexes to rebuild. See the AI Data Poisoning and Backdoors Guide.
- Use lineage for privacy obligations: erasure requests need to know which datasets a model used. See Data lineage, data quality and data contracts as security controls.
Agent identity and permission posture
Agents and AI pipelines run as non-human identities, and the permission between an AI identity and a sensitive store is where the two tools overlap most. AI-SPM sees it from the agent outwards: Google's AI Protection flags over-privileged agents in its Premium tier, and Microsoft's AI-SPM recommends managed identity and least privilege for AI service accounts. DSPM sees it from the data inwards: Microsoft Purview DSPM tracks oversharing, exfiltration and unusual access across AI apps and agents, and its data risk assessments look for overshared locations that Copilot and agents can summarise.
- One finding, one owner: agree that "AI identity can read restricted data beyond its declared sources" is owned by one queue (usually the AI platform owner, who can change the identity), with the data owner as approver.
- Declared versus effective access: flag effective access beyond each agent's declared sources as drift. See Agent Permission Drift.
- The posture tools are privileged identities too: both products hold read access across accounts and, for DSPM, to data content. Use read-only, federated connectors and review them as you would any privileged non-human identity. See Securing the DSPM platform itself.
What the cloud providers document at the boundary
Providers are listed alphabetically; the order is not a ranking.
- Amazon Web Services: Amazon Macie discovers sensitive data in Amazon S3 through automated discovery and scheduled jobs, with managed and custom data identifiers and policy findings for public or shared buckets. SageMaker ML Lineage Tracking records which datasets trained which models.
- Google Cloud: Security Command Center AI Protection inventories agents, endpoints, models, data sources and MCP servers, and detects over-privileged agents. Sensitive Data Protection discovery profiles BigQuery, Cloud SQL, Cloud Storage, Amazon S3 and Azure Blob Storage with infoTypes and data risk and sensitivity levels.
- Microsoft: AI-SPM in Defender for Cloud discovers AI workloads across Azure, AWS and Google Cloud and builds the AI bill of materials. Microsoft Purview DSPM covers data across Microsoft 365, Azure, Fabric and connected third-party sources, with an AI observability view of AI apps and agents.
Availability notes: Google documents that AI Protection's Sensitive Data Protection findings and over-privileged agent detection need the Premium tier, and that the Enterprise tier is deprecated and shuts down on 21 May 2027. Microsoft documents that AI-SPM is part of the Defender CSPM plan and that from 1 July 2026 agent discovery and posture for Microsoft Foundry agents and third-party cloud agents require a Microsoft Agent 365 licence, while Defender CSPM continues to discover Foundry accounts and projects. Amazon Macie is enabled separately. Confirm current terms with each provider. For platform depth, see the Amazon Bedrock Security Guide, the Google Vertex AI Security Guide and the Azure OpenAI and Azure AI Foundry Security Guide.
Consolidation: one platform, a CNAPP, or two tools
The underlying model is the same in both categories: a graph of resources, identities, network paths and data. The deciding factor is whether one product does both halves well for your estate.
| Option | Fits when | Main risk | Test before choosing |
|---|---|---|---|
| CNAPP with AI and data modules | One or two clouds, AI mostly on managed services, existing CNAPP | Shallow classification of AI stores; SaaS data out of scope | Seed a test vector store and fine-tuning bucket with synthetic sensitive data and check both are flagged and linked to their model |
| Data-led platform extended to AI | Large SaaS and Microsoft 365 footprint, Copilot and agent use dominates | Weak on self-hosted models, registries and AI keys | Check discovery of a self-hosted endpoint, a model API key and an MCP server |
| Separate AI-SPM and DSPM, joined in the SOC or data lake | Large, multi-cloud estates with distinct AI platform and data governance teams | Duplicate findings, no single blast-radius view | One query listing models grounded on restricted data |
| Native provider features only | Small organisations on one cloud | Uneven coverage outside that cloud and its SaaS | List what is not connected and accept or close each gap |
Small organisations get most value from native features, a short AI inventory and classifying the few datasets used for AI. Large organisations should consolidate the graph and the finding queue even if two products remain, because the expensive failure is two teams triaging the same agent-to-data path at different severities. See the CNAPP Guide and the DSPM Buyer's Guide.
Worked scenario: a support assistant fine-tuned on transcripts
A company fine-tunes a model on two years of exported support transcripts and builds a RAG index over its knowledge base and recent tickets for a customer-facing assistant.
- What DSPM sees: the transcript bucket holds names, email addresses and some payment references. It is private and encrypted, so the finding is medium. The ticket export feeding the index is flagged as containing personal data.
- What AI-SPM sees: the assistant endpoint is private and keyless, the fine-tuned model is registered, and the indexing job's identity can read the whole support data lake. The identity finding is medium because the tool does not know the data's sensitivity.
- The join: lineage shows the fine-tuned model was trained on the transcript bucket, and the index includes ticket chunks. Combined, the risk is a customer-facing model that can return other customers' personal data, and a retrieval identity far broader than its task. Both are raised to high under one owner.
- Fixes: rebuild the fine-tuning set with personal data masked at ingestion, scope the indexing identity to the knowledge base and a filtered ticket view, tag the index with its highest source sensitivity, and set retention on prompt logs.
- The point: each tool alone produced a medium finding; the real risk appeared only in the join.
The pattern is not hypothetical. The McKinsey AI platform hack centred on an application database that, according to the researchers' account, held chat messages, RAG document chunks, vector store references and system prompts, reached through unauthenticated APIs with a database identity that could write. That one store was an AI asset and a sensitive data store at once.
Implementation roadmap
- Agree the boundary (weeks 1 to 2): adopt the asset table above and name owners, including one for the shared stores.
- Connect both inventories (weeks 2 to 6): onboard AI accounts to AI-SPM and AI data stores to DSPM in report-only mode, reconciled against the AI register (see the AI Register and AI Inventory Template).
- Classify AI stores explicitly (weeks 4 to 8): confirm the DSPM tool can read your vector store, log and memory formats; where it cannot, classify at ingestion and tag the store.
- Build lineage and merge the queue (weeks 6 to 12): make dataset identifiers mandatory in pipelines and route agent-to-data findings to one owner, piloting on one business unit.
- Enforce and roll back safely: move preventive policies (no public AI endpoints, no unclassified data in production indexes) from audit to enforce one project at a time, in separate assignments you can disable quickly if pipelines break.
Detection and measurement
- Classified AI data stores: share of vector stores, fine-tuning datasets, prompt logs and memory stores with a current sensitivity classification.
- Lineage coverage: share of production models and indexes with recorded source datasets.
- Agent access drift: number of AI identities with effective access to restricted data beyond their declared sources.
- Duplicate findings: agent-to-data findings raised by both tools, trending to zero.
- Time to fix joined paths: median days to close findings where an exposed or broad AI identity reaches restricted data.
- Log signals: alert on new data sources attached to models or agents, and on fine-tuning or indexing jobs reading restricted stores, from control-plane audit logs (NIST SP 800-53 AU-2).
Common failure patterns
- The vector store with no owner: AI-SPM treats it as data, DSPM cannot parse it, and nobody classifies it until it leaks.
- Unranked AI findings: AI-SPM findings are triaged without data sensitivity, so the agent that can read payroll waits behind a public test endpoint.
- Classification that stops at the copy: the original dataset is labelled; the embedded or fine-tuned derivative is not.
- Prompt logs left out of scope: conversation history becomes the largest store of sensitive free text in the organisation, unclassified and without retention, as the McKinsey case shows for chats kept in plaintext.
- Consolidation by assumption: a CNAPP licence is bought for "AI and data" and the standalone tool is retired before anyone tests whether the AI module classifies AI stores at all.
Framework mapping
| Framework | AI-SPM | DSPM | Shared boundary |
|---|---|---|---|
| NIST CSF 2.0 | ID.AM-02 inventories of software, services and systems | ID.AM-07 inventories of data and metadata; PR.DS-01 data at rest protected | PR.AA-05 access permissions with least privilege |
| NIST SP 800-53 Rev. 5 | CM-8 System Component Inventory | PM-5(1) Inventory of Personally Identifiable Information; SI-12 Information Management and Retention | AC-6 Least Privilege; RA-3 Risk Assessment |
| ISO/IEC 27001:2022 Annex A | 5.9 Inventory of information and other associated assets | 5.12 Classification of information; 8.11 Data masking | 5.15 Access control |
| CIS Controls v8.1 | 1.1 and 2.1 enterprise asset and software inventories | 3.2 data inventory; 3.7 data classification scheme | 6.8 role-based access control |
| OWASP Top 10 for LLM Applications 2025 | LLM03 Supply Chain; LLM06 Excessive Agency | LLM02 Sensitive Information Disclosure | LLM04 Data and Model Poisoning; LLM08 Vector and Embedding Weaknesses |
| MITRE ATLAS and ATT&CK | AML.T0055 Unsecured Credentials | T1530 Data from Cloud Storage; AML.T0057 LLM Data Leakage | AML.T0020 Training Data Poisoning; AML.T0070 RAG Poisoning |
Practitioner checklist
- Each AI asset type has a named primary owner, and vector stores, prompt logs and agent memory have a single named owner.
- Every account hosting AI is connected to AI-SPM and every store feeding AI is connected to DSPM.
- The DSPM tool is proven to classify your vector store, log and memory formats, or content is classified at ingestion.
- Training and indexing pipelines record source dataset identifiers and versions for every model and index.
- Dataset sensitivity tags propagate to dependent models, fine-tunes and indexes in the AI inventory.
- Each agent has declared data sources, and effective access beyond them is flagged as drift.
- Agent-to-data findings land in one queue with a severity rule using both sensitivity and exposure.
- Posture connectors are read-only, federated and reviewed as privileged identities.
Standards and references
- NIST: AI 600-1 Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile
- OWASP: Top 10 for LLM Applications 2025
- Microsoft Learn: AI security posture management
- Microsoft Learn: Learn about Data Security Posture Management
- Google Cloud: AI Protection overview
- Google Cloud: Sensitive Data Protection data profiles
- AWS: What is Amazon Macie?
- AWS: Amazon SageMaker ML Lineage Tracking
Related NHI Mgmt Group resources: AI Security Posture Management (AI-SPM) Guide · Data Security Posture Management (DSPM) · AI-SPM vs AI Runtime Security · DSPM vs DLP · CNAPP Guide