purview-dlp-policy

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

Guidance for creating Microsoft Purview Data Loss Prevention policies that detect or block risky handling of sensitive information across email, shared files, chat, and computers. Sensitive information can include personal data, financial data, intellectual property, or regulated records.

In plain words
What is it for?
Use it to design workload-specific DLP policies, set warnings or blocks, handle exceptions, onboard endpoint devices, and test policies before enforcement.
Why use it?
It reduces the chance that sensitive content is sent, shared, copied, or transferred in unsafe ways. Simulation and staged enforcement help teams tune the rules before blocking work.

Skill for Claude CodeCodex

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

Good fit Use it to design workload-specific DLP policies, set warnings or blocks, handle exceptions, onboard endpoint devices, and test policies before enforcement.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/vinayaklatthe/microsoft-security-skills/purview-dlp-policy"><img src="https://agentmods.dev/badge/skills/vinayaklatthe/microsoft-security-skills/purview-dlp-policy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,275 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.00120 $0.01275
Opus 5 $0.00060 $0.00638
Sonnet 5 $0.00024 $0.00255
Haiku 4.5 $0.00012 $0.00128

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

Security

Grade A, and why

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

How it starts

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

Microsoft Purview DLP Policy

Microsoft Purview Data Loss Prevention (DLP) detects and prevents risky sharing, transfer, or use of sensitive data across Microsoft 365 services and Windows/macOS endpoints - anchored to the Zero Trust Data pillar.

When to use

Stopping exfiltration of sensitive content (PII, financial, IP, regulated data) across email, collaboration, and endpoints with a defensible, tunable policy set.

Do not use this skill for risk-adaptive DLP keyed to Insider Risk (use purview-advanced-dlp) or for Copilot-specific exclusion (use purview-copilot-oversharing).

Pick the right starting policy per workload

Workload Start with Notes
Exchange Online Block external send of high-volume SIT matches Policy tips + override + justification
SharePoint / OneDrive Warn on external sharing of labelled content Service-side detection
Teams Warn on chat/channel post containing SITs Applies post-creation only
Endpoint (Windows/Mac) Audit USB copy, then warn, then block Needs onboarded devices + E5 Compliance
All Simulation mode for 7-14 days first No exceptions

Rule of thumb: one policy per workload, severity-tiered actions, simulation always, exceptions defined before block.

Approach

  1. Locations - Choose locations explicitly: Exchange, SharePoint, OneDrive, Teams, and Endpoint (a single policy does not cover all locations by default). Endpoint DLP requires onboarded devices and E5 Compliance. Verify: each policy lists only the locations it intends to cover; Endpoint shows onboarded device count > 0.
  2. Conditions - Match on SITs, sensitivity labels, trainable classifiers, and content volume thresholds (e.g., 5+ credit-card numbers); combine for precision. Verify: a test document matches the rule with expected confidence and volume.
  3. Actions by severity - Low = audit only; Medium = warn with override + justification; High = block + notify. Configure policy tips and incident reports. Verify: each severity branch fires the intended action in a test event.
  4. Simulation first - Run in simulation mode (7-14 days), review matches in Activity Explorer, tune false positives, then promote to enforcement. Verify: simulation report shows match volume and false-positive rate within target before enforcement.
  5. Exceptions - Define trusted recipients/domains and business-justification overrides so legitimate processes aren't blocked. Verify: documented exception list reviewed by data owner; override workflow tested.
  6. Endpoint DLP onboarding - Onboard devices via Defender for Endpoint or Intune, confirm policy reaches them, and start in audit before warn/block. Verify: endpoint policy status shows successful sync per device.
  7. Operate - Route incidents to a shared compliance mailbox; review override justifications weekly; tune monthly. Verify: incident triage SLA defined and met; tuning log maintained.

Read the full file on GitHub · 93 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 · 93 lines · 120 tokens per session scan A 61ab226b4f9b

Subscribe to this mod's changes

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

rfp-response-compliance-review

Reviews a draft proposal against the firm's configurable compliance rules — prohibited language, required disclosures, role and positioning boundaries, and procurement-submission requirements. Logs all findings to the Review Findings SharePoint list and annotates the draft document for salesperson and reviewer…

pnp/sharepoint-skills · 57 tokens

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

carta-witness-signatures

Status of witness and spousal-consent signature requests on option grants, RSAs, PIUs — who still needs to sign, and what's awaiting signature, signed, or expired. Covers one award, one company, or a whole portfolio. Read-only.

carta/plugins · 58 tokens

carta-hmrc-limits

Report a UK company's HMRC EMI/CSOP limit usage. Use when asked how much EMI allowance is left, whether the company is near the £6m EMI limit, who is close to or over their £250k individual limit, CSOP headroom, or whether a planned grant fits.

carta/plugins · 68 tokens

carta-interaction-reference-core

The non-negotiable half of Carta's AI agent interaction rules — financial precision, data provenance, the AI-computation gate, how to confirm, and trust & safety. Loaded ONCE per conversation, before any response that presents or writes Carta financial data. Sufficient on its own for write flows; a flow that also…

carta/plugins · 88 tokens

compliance-verifier

Use this agent to validate deployments against GDPR, HIPAA, SOC2, and other regulatory compliance frameworks and generate audit reports.

samibs/skillfoundry · 30 tokens