Sentinel MCP, Microsoft Purview and Defender Unified SOC
This walkthrough takes a SOC engineer from connecting Microsoft Sentinel MCP Server alongside blueboard, to investigating a combined Microsoft Purview DLP + Insider Risk incident using lookup_purview_context, enabling PURVIEW_CONTENT_GUARD, and plugging in Microsoft Security Copilot under Microsoft Entra Agent ID.
Who this is for
- SOC analysts & threat hunters correlating Purview data alerts, Defender XDR endpoint telemetry, and Sentinel Graph attack paths.
- Agent engineers connecting dual-MCP agents (
sentinel.microsoft.com/mcp/*+blueboard) and Security Copilot plugins. - Board administrators (
Board.Admin) configuringPURVIEW_CONTENT_GUARDand managing agent identities.
Before you start
-
Familiarity with 05 Entity lookups, Defender hunting and Sentinel KQL and 10 Connecting AI agents and multi-agent SOC topology.
-
Optional Graph permissions if you want Purview sensitivity label enumeration or real-time
processContentDLP enforcement:PURVIEW_LABELS=1 PURVIEW_GUARD=1 ACTIONS="…" \./infra/grant-permissions.sh <board-mi-principal-id> <board-api-client-id>(Note:
lookup_purview_contextworks immediately for Purview DLP and Insider Risk alerts with the baselineSecurityAlert.Read.Allpermission;PURVIEW_LABELS=1only adds/v1.0/security/dataSecurityAndGovernance/sensitivityLabels.)
Steps
Step 1 — Connect Sentinel MCP Server + blueboard in a dual-MCP client
- Start from
templates/mcp/dual-mcp-sentinel-blueboard.json. - Authenticate both servers with secretless Entra tokens for the agent's Entra Agent ID or Managed Identity:
blueboard: token audienceapi://blueboard-<env>/.defaultsentinel-triage,sentinel-data-exploration,sentinel-graph: Sentinel MCP Entra audience
- Keep all write permissions off the agent's Entra identity. When Sentinel Graph reveals a lateral-movement path or high-value target, the agent files containment exclusively via
blueboard'srequest_action.
Step 2 — Rehearse a Purview DLP + Insider Risk investigation
-
Inspect the bundled sample fixture
templates/incidents/purview-dlp-insider-exfil.json(loaded automatically in./scripts/demo.sh up). -
Notice what
get_incidentextracts intoentities:purview_signals: bothmicrosoftDataLossPrevention(Australia Privacy Act PII) andmicrosoftInsiderRiskManagementalerts.data_assets: Azure Blob (au-customer-pii-2026-q4.parquetlabelledHighly Confidential - Crown Jewels) and SharePoint Excel file (Confidential).cloud_apps: unmanaged cloud storage app Personal Cloud Drive Sync, plus an app entity chip on the incident summary header.
-
Confirm playbook
data-exfiltration-cloudauto-attached and posted Step 1 (scope-volume) in#incidents. -
Claim the step (
claim_message) and calllookup_purview_context:{ "user": "m.chen@contoso.com", "include_labels": true } -
Review
dlp_and_insider_alertsandsensitivity_labels. Follow up with KQL fromtemplates/kql/purview-dlp-insider-ai.kqlviarun_sentinel_query(OfficeActivityforSensitivityLabelRemoved/FileDownloaded) andrun_hunting_query(CloudAppEventsfor generative AI / unmanaged cloud uploads). -
Post a structured
findingandiocmessage, settle the claim (complete_claim), and proposerevoke_sessions(neverdisable_userautomatically — insider risk scenarios often need Legal/HR alignment before account lock).
Step 3 — Enable Purview processContent guard on board posts (optional)
- Set
PURVIEW_CONTENT_GUARD=auditfirst to test Purview DLP screening on non-system messages without disrupting analysts or agents. Watchaudit_log/BlueboardAudit_CLforpurview.content_flagged. - Once tuned, switch to
PURVIEW_CONTENT_GUARD=blockso any message flagged by Purview withrestrictAccessorblockAccessis rejected before touching PostgreSQL. (Deterministic blocking of PEM private keys, JWT bearer tokens, and common API secret prefixes is always active regardless of this setting.)
Step 4 — Plug Security Copilot into blueboard
- Import
templates/security-copilot/blueboard-mcp-plugin.yamlinto Microsoft Security Copilot and configure theEndpointsetting to your Function App's/runtime/webhooks/mcpURL. - Test an analyst prompt such as "Read blueboard incident 1008 summary, call lookup_purview_context on m.chen@contoso.com, and post a handover note if any open asks remain" — Security Copilot calls the read/post tools under the signed-in analyst's
Board.*roles and respects all board approvals and audit trails.
Step 5 — Put blueboard over Microsoft Perception MCP (preview)
Microsoft Perception's MCP server (https://perception.microsoft.com/mcp, preview) runs Perception playbooks such as
Attack Investigation as asynchronous sessions. blueboard doesn't replace it: Perception investigates, blueboard
coordinates, gates and records. Details and sources are in INTEGRATIONS.md section 6.
- Register an Entra app for your MCP client with the delegated Security Copilot API permissions
Perception.Read.All,Perception.Operate.AllandPerception.Manage.All, and grant consent. For Claude, addhttps://claude.ai/api/mcp/auth_callbackas a Web redirect URI. - Configure the client from
templates/mcp/dual-mcp-perception-blueboard.json: Perception through the client's OAuth connector, blueboard with the agent's Entra token. - Try: "Claim blueboard incident 1002. Use Perception to investigate Defender incident 1002 and wait for the session. Post its summary as a finding with the session link, add any timestamped activity with add_timeline_events, then compare with get_incident_graph and request containment only for entities that aren't protected."
- Open the incident's Timeline & graph view: Perception's events show as reported by your agent, the graph shows which entities are compromised or protected, and any containment request waits in Approvals.
Treat Perception output like any agent's: it is a claim to check, not an instruction, and only a person with
Board.Approve (who didn't request it) can approve a destructive action.
What blueboard checks
| Check | Error / behaviour | Why |
|---|---|---|
Raw PEM key or JWT Bearer token posted by an agent | refusing to post raw credentials, private keys or bearer tokens to the shared board (400) | Stops accidental or prompt-injected credential dumping into shared channels. |
PURVIEW_CONTENT_GUARD=block receives restrictAccess | blocked by Microsoft Purview data security policy (403) | Prevents restricted regulated data from entering messages in PostgreSQL. |
OData filter characters (', /, ?) passed to lookup_purview_context | user must be an Entra user UPN or object id (GUID) (400) | Prevents Graph query injection. |
disable_service_principal aimed at an app listed in protected_apps | rejected by policy (<app> is a protected application / service principal) | Stops an agent from disabling blueboard-api or Microsoft Sentinel MCP. |
What is recorded in audit_log
enrich.purview_lookup(user queried, whether labels requested)purview.content_flagged(mode, policyActions returned, channel)purview.guard_error(if GraphprocessContentfails; fails closed whenblock)
Related guides
- 06 Requesting, previewing and approving containment, for the 26-action catalogue.
- 10 Connecting AI agents and multi-agent SOC topology, for Entra Agent ID setup and signed push webhooks.
- INTEGRATIONS.md and THREAT-MODEL.md (
TM-02,TM-06,TM-14,TM-25,TM-26,TM-43).