purview-dspm-ai

purview-dspm-ai is a skill for Claude Code, Codex from vinayaklatthe/microsoft-security-skills. It costs 212 tokens per session (1,335 once invoked), scanned A, original, MIT.

Guidance for Microsoft Purview Data Security Posture Management for AI, which shows how sensitive data is used with AI tools such as Microsoft 365 Copilot, Security Copilot, Copilot Studio, ChatGPT, Gemini, and Claude. It covers activity visibility, data assessments, and recommended protections.

In plain words
What is it for?
Use it to review AI prompts and responses, assess what Copilot can retrieve, monitor third-party AI use, and identify sensitive files that need better protection.
Why use it?
It helps organisations see whether users are putting sensitive information into AI tools or whether AI systems can reach files they should not. This makes AI data risks easier to investigate and govern.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review AI prompts and responses, assess what Copilot can retrieve, monitor third-party AI use, and identify sensitive files that need better protection.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vinayaklatthe/microsoft-security-skills/purview-dspm-ai
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vinayaklatthe/microsoft-security-skills --skill purview-dspm-ai
Clone the repo
git clone --depth 1 https://github.com/vinayaklatthe/microsoft-security-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for purview-dspm-ai

README.md
[![agentmods](https://agentmods.dev/badge/skills/vinayaklatthe/microsoft-security-skills/purview-dspm-ai/github.svg)](https://agentmods.dev/skills/vinayaklatthe/microsoft-security-skills/purview-dspm-ai)
Your own site
<a href="https://agentmods.dev/skills/vinayaklatthe/microsoft-security-skills/purview-dspm-ai"><img src="https://agentmods.dev/badge/skills/vinayaklatthe/microsoft-security-skills/purview-dspm-ai/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for purview-dspm-ai

Your own site · 80×15
<a href="https://agentmods.dev/skills/vinayaklatthe/microsoft-security-skills/purview-dspm-ai"><img src="https://agentmods.dev/badge/skills/vinayaklatthe/microsoft-security-skills/purview-dspm-ai.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 212 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,335 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00212 $0.01335
Opus 5 $0.00106 $0.00668
Sonnet 5 $0.00042 $0.00267
Haiku 4.5 $0.00021 $0.00134

Measured 9d ago against content hash b30d11be1665, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

purview-dspm-ai scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/purview-dspm-ai/SKILL.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Microsoft Purview DSPM for AI

DSPM for AI gives visibility and control over how sensitive data is used in generative AI - Microsoft 365 Copilot, Security Copilot, Copilot Studio agents, and third-party/consumer AI apps (ChatGPT, Gemini, Claude) - and recommends protections you can apply in one click.

When to use

Securing and governing data interactions with AI as Copilot and genAI adoption grows in the tenant, especially before broad rollout.

Do not use this skill when the goal is to clean up SharePoint permissions ahead of Copilot (use purview-copilot-oversharing) or to investigate insider activity (use insider-risk-baseline).

Pick the right starting lens

Concern Start here
Are users pasting sensitive data into ChatGPT? DSPM for AI - Activity Explorer + Edge browser extension / Defender for Cloud Apps signals
What sensitive data is Copilot retrieving? DSPM for AI - Data assessments + interaction reports
Are prompts/responses violating policy? Communication Compliance for Copilot + DLP for AI
Files Copilot can reach but shouldn't DSPM for AI - unlabelled sensitive files report (then purview-copilot-oversharing)

Rule of thumb: turn on DSPM for AI first to see the risk surface, then action the one-click recommendations rather than building bespoke policies from scratch.

Approach

  1. Onboard DSPM for AI - Activate from the Purview portal; consent to the analytics it needs and confirm Audit is enabled tenant-wide. Verify: the DSPM for AI overview shows interaction counts within 24-48 hours.
  2. Run the data assessments - Execute the oversharing assessment and Copilot interactions assessment to scope risk before enforcement. Verify: assessment results identify top sites/users by sensitive interaction volume.
  3. Action one-click recommendations - Apply the recommended policies: detect risky AI interactions, extend sensitivity labels to AI, and protect data referenced by Copilot. Verify: each accepted recommendation creates a corresponding Purview policy in audit mode.
  4. Govern third-party AI - Pair with Defender for Cloud Apps to discover ChatGPT/Gemini/Claude use; apply Endpoint DLP rules to block paste of labelled content into unsanctioned AI apps. Verify: Cloud App Catalog shows AI app risk scores and DLP blocks appear in Activity Explorer.
  5. Apply DLP for AI - Use DLP policies for Microsoft 365 Copilot to exclude labelled content from Copilot processing or restrict by group; use Communication Compliance for prompt review. Verify: a test prompt referencing a labelled document is excluded or flagged.
  6. Operate - Review Activity Explorer weekly, tune false positives, and report metrics (interactions classified, recommendations accepted, blocks) to leadership.

Read the full file on GitHub · 86 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 86 lines · 212 tokens per session scan A b30d11be1665

Subscribe to this mod's changes

purview-dspm-ai is a skill published in the GitHub repository vinayaklatthe/microsoft-security-skills (173 stars, last pushed 2mo ago), licensed MIT. It adds 212 tokens to every session and 1,335 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

deepspeed

Expert guidance for distributed training with DeepSpeed - ZeRO optimization stages, pipeline parallelism, FP16/BF16/FP8, 1-bit Adam, sparse attention.

davila7/claude-code-templates · 38 tokens

skill-meta-prompt

Craft better prompts using proven optimization techniques — use when your prompt needs refinement.

nyldn/claude-octopus · 19 tokens

dashscope

DashScope (Alibaba Cloud Bailian / 阿里云百炼) integration — image generation (qwen-image-2.0-pro), text-to-speech (qwen3-tts-flash), and ASR with word-level timestamps (qwen3-asr-flash-filetrans). Use when generating images via Qwen-Image, narrating via Qwen-TTS, or transcribing with word-level timestamps via Qwen-ASR.

calesthio/OpenMontage · 93 tokens

session-rag-eval

Run and debug Chatbox session attachment RAG model evaluation with synthetic and real long-file fixtures.

chatboxai/chatbox · 25 tokens

microsoft-extensions-ai

Build provider-agnostic .NET AI integrations with Microsoft.Extensions.AI, IChatClient, embeddings, middleware, structured output, vector search, and evaluation. USE FOR: building or reviewing .NET code that uses Microsoft.Extensions.AI, Microsoft.Extensions.AI.Abstractions, IChatClient, IEmbeddingGenerator…

managedcode/dotnet-skills · 128 tokens

semantic-kernel

Build AI-enabled .NET applications with Semantic Kernel using services, plugins, prompts, and function-calling patterns that remain testable and maintainable. USE FOR: adding AI-driven prompts, plugins, or orchestration to a .NET app; reviewing kernel construction, service registration, or plugin usage; building…

managedcode/dotnet-skills · 116 tokens