purview-advanced-dlp

purview-advanced-dlp is a skill for Claude Code, Codex from vinayaklatthe/microsoft-security-skills. It costs 107 tokens per session (1,238 once invoked), scanned A, original, MIT.

Guidance for advanced Microsoft Purview data loss prevention (DLP), which controls how sensitive information can leave an organisation. It covers risk-based rules, matching against company records, contextual conditions, and endpoint controls.

In plain words
What is it for?
Use it to extend an existing DLP programme with Adaptive Protection, Exact Data Match, contextual rules, or advanced endpoint controls.
Why use it?
It helps prevent sensitive data from being copied to USB devices, unauthorised cloud services, clipboards, or AI tools. Rules can respond to user risk and match data more precisely.

Skill for Claude CodeCodex

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

Good fit Use it to extend an existing DLP programme with Adaptive Protection, Exact Data Match, contextual rules, or advanced endpoint controls.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vinayaklatthe/microsoft-security-skills/purview-advanced-dlp
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-advanced-dlp
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-advanced-dlp

README.md
[![agentmods](https://agentmods.dev/badge/skills/vinayaklatthe/microsoft-security-skills/purview-advanced-dlp/github.svg)](https://agentmods.dev/skills/vinayaklatthe/microsoft-security-skills/purview-advanced-dlp)
Your own site
<a href="https://agentmods.dev/skills/vinayaklatthe/microsoft-security-skills/purview-advanced-dlp"><img src="https://agentmods.dev/badge/skills/vinayaklatthe/microsoft-security-skills/purview-advanced-dlp/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-advanced-dlp

Your own site · 80×15
<a href="https://agentmods.dev/skills/vinayaklatthe/microsoft-security-skills/purview-advanced-dlp"><img src="https://agentmods.dev/badge/skills/vinayaklatthe/microsoft-security-skills/purview-advanced-dlp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,238 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.00107 $0.01238
Opus 5 $0.00053 $0.00619
Sonnet 5 $0.00021 $0.00248
Haiku 4.5 $0.00011 $0.00124

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

Security

Grade A, and why

purview-advanced-dlp 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-advanced-dlp/SKILL.md · 92 lines

How it starts

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

Microsoft Purview Advanced DLP

Advanced DLP extends baseline policies with risk-adaptive and high-precision controls, notably Adaptive Protection, which dynamically adjusts DLP enforcement based on a user's Insider Risk level - so low-risk users get light controls and elevated-risk users get stricter actions automatically.

When to use

Moving from static DLP to dynamic, context-aware enforcement and high-precision matching for mature data security programs that already have classification and baseline DLP working.

Do not use this skill to design a first DLP policy from scratch (use purview-dlp-policy) or to stand up Insider Risk Management (use insider-risk-baseline).

Pick the right advanced capability

Goal Use
Dynamic enforcement keyed to user risk Adaptive Protection (IRM-driven)
High-precision match against your own records Exact Data Match (EDM) SITs
Context-aware rules (label + recipient + volume) Contextual conditions in DLP rules
Block USB / unsanctioned cloud / clipboard Advanced Endpoint DLP egress controls
Stop paste into ChatGPT / unsanctioned AI Endpoint DLP + DSPM for AI

Rule of thumb: pick one advanced capability per quarter; layering Adaptive Protection, EDM, and new Endpoint controls simultaneously makes failure attribution impossible.

Approach

  1. Confirm prerequisites - Baseline DLP in enforce mode for at least one workload; Insider Risk Management running with tuned indicators (for Adaptive Protection). Verify: IRM is producing meaningful risk levels for a pilot population.
  2. Adaptive Protection - Integrate Insider Risk Management risk levels (minor/moderate/ elevated) with DLP so low-risk users get light controls and elevated-risk users get stricter actions (e.g., block) automatically - minimising friction while focusing protection. Verify: a test user moved to elevated triggers the stricter DLP rule branch.
  3. Exact Data Match (EDM) - Use EDM SITs to match against a hashed copy of your structured data (e.g., customer records) for high-precision, low-false-positive detection. Verify: EDM schema definition uploaded, hash refresh succeeded, and test sample matches.
  4. Contextual conditions - Combine sensitivity labels, classifiers, content volume, recipient, and access scope for precise rules (e.g., "Confidential + external recipient + ≥5 SIT matches"). Verify: test events show the rule fires only on the intended combinations.
  5. Endpoint egress controls - Restrict copy to USB, upload to unsanctioned cloud/AI apps, network share, clipboard, and printing on managed endpoints. Verify: a test paste of labelled content into an unsanctioned AI app is blocked or flagged.
  6. Tune continuously - Use Activity Explorer and alerts to refine; review override justifications weekly. Verify: false-positive rate trends down month over month.

Read the full file on GitHub · 92 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 · 92 lines · 107 tokens per session scan A 43656d14df35

Subscribe to this mod's changes

purview-advanced-dlp is a skill published in the GitHub repository vinayaklatthe/microsoft-security-skills (173 stars, last pushed 2mo ago), licensed MIT. It adds 107 tokens to every session and 1,238 once invoked, about $0.0005 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

power-automate

Use when operating Microsoft Power Automate cloud flows from code — create, enable, update, list or delete via the Dataverse Web API (workflow table, category 5) with Entra ID OAuth2, plus run-history debugging. NOT designing the flow definition (that is automation-flows), NOT picking a platform by billing model (that…

ericrisco/rsc-harness · 82 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

generate-run-commands

Generate or modify run commands for the current session. Use when the user wants to set up or update run commands that appear in the session's Run button.

microsoft/vscode · 36 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

skill-writing-plans

Create zero-context implementation plans with bite-sized tasks — use for multi-step feature planning.

nyldn/claude-octopus · 21 tokens

bf-to-agents-sdk-dotnet-migration

Use when migrating a Bot Framework .NET SDK bot to Microsoft 365 Agents SDK. Triggered by projects that depend on packages: Microsoft.Bot.Builder or Microsoft.Bot.Builder.Integration.AspNet.Core that want to migrate to Agents SDK.

microsoft/Agents · 56 tokens