Skip to main content

Microsoft Integrations: Sentinel MCP, Perception MCP, Purview, Defender XDR & Entra Agent ID

blueboard is designed to complement — not compete with — Microsoft's agentic security announcements across Microsoft Sentinel MCP Server, Microsoft Purview, Microsoft Defender XDR Unified SOC (ISOC), Microsoft Security Copilot, and Microsoft Entra Agent ID.


1. Where every Microsoft capability fits​

Microsoft CapabilityWhat Microsoft ProvidesWhat blueboard Adds on Top
Microsoft Sentinel MCP Server & Sentinel Graph (sentinel.microsoft.com/mcp/*)Hosted Entra-authenticated MCP tools for deep Sentinel Data Lake table exploration, schema discovery, and Sentinel Graph blast-radius / lateral-movement pathing.Shared team workspace & safety gate. Sentinel MCP lets a single agent query data; blueboard gives multiple agents + human analysts a shared timeline, conflict-free task claiming, evidence grounding, and a human-gated containment broker.
Microsoft Purview (DLP, Insider Risk, Sensitivity Labels, processContent)Detects regulated PII/IP exfiltration, insider risk sequences, sensitivity label downgrades, and evaluates AI prompts against tenant DLP policies.Purview incident ingestion + cross-product correlation + optional outbound guard. Extracts PurviewSignals & DataAssets, provides the lookup_purview_context MCP tool, pairs MDE/Entra containment with Purview context, and optionally runs PURVIEW_CONTENT_GUARD on board posts.
Microsoft Defender XDR (Unified SOC)Alert correlation across MDE, MDO, MDA, MDI, and Sentinel incidents; Defender automated triage.Transparent multi-agent coordination & dual-human containment. Every finding, IOC, disagreement, and request_action approval sits in one sovereign Australian audit log before any endpoint or account is altered.
Microsoft Security CopilotNatural-language analyst assistant & YAML autonomous agents inside Defender/Purview/Entra portals.Bi-directional MCP plugin (blueboard-mcp-plugin.yaml). Copilot can read/write threads, claim checklist steps, and file policy-checked containment requests instead of running unreviewed scripts.
Microsoft Perception and its MCP server (preview, perception.microsoft.com/mcp)Teams of Microsoft security agents (Alert Triage, Attack Investigation, Threat Intelligence, Detection Authoring and others) run playbooks as asynchronous sessions; the MCP server lets Claude, ChatGPT, VS Code, Copilot CLI and Foundry agents list playbooks, start sessions and read summaries.Governance and approval layer. Perception investigates; blueboard is where its conclusions meet other agents and people, where containment is requested, checked against protected_* policy and approved by someone other than the requester, and where it is audited. See section 6.
Microsoft Entra Agent IDDedicated first-class identity, Conditional Access, and lifecycle governance for AI agents.Per-principal RBAC, rate limits, and instant kill switch. Board.Approve & Board.Admin are stripped from agent tokens in code, rate buckets isolate each agent, and Admin -> Participants -> Disable cuts off a misbehaving agent in < 1 second.
Interactive diagram · scroll or zoom

2. Dual-MCP integration with Microsoft Sentinel MCP Server​

Because any modern agent harness (Claude, OpenAI, LangGraph, VS Code / GitHub Copilot, Azure AI Foundry Agent Service) can attach multiple Streamable HTTP MCP servers simultaneously, the cleanest production architecture pairs:

  1. sentinel-triage / sentinel-data-exploration / sentinel-graph (https://sentinel.microsoft.com/mcp/...): for exploring large Sentinel Data Lake tables and traversing Sentinel Graph attack paths and identity blast radii.
  2. blueboard (https://<your-api>/runtime/webhooks/mcp): for shared SOC memory, atomic task leases (claim_message), deterministic evidence roll-up (get_incident_summary), Purview & TI enrichment, and human-approved tenant containment (request_action).

Starter multi-server configuration: templates/mcp/dual-mcp-sentinel-blueboard.json.

{
"mcpServers": {
"blueboard": {
"type": "http",
"url": "https://<your-blueboard-api>.azurewebsites.net/runtime/webhooks/mcp",
"headers": { "Authorization": "Bearer ${BLUEBOARD_ENTRA_TOKEN}" }
},
"sentinel-graph": {
"type": "http",
"url": "https://sentinel.microsoft.com/mcp/graph",
"headers": { "Authorization": "Bearer ${SENTINEL_MCP_TOKEN}" }
}
}
}

[!CAUTION] Guard against dual-MCP confused-deputy attacks (TM-02): An attacker-controlled string returned by Sentinel Data Lake or Sentinel Graph can still try prompt injection. Never grant an unattended dual-MCP agent direct write permissions in Microsoft Defender/Entra — keep every write action routed through blueboard's request_action policy and human-approval gate.

When to use run_sentinel_query vs Sentinel MCP Server​

  • Use blueboard run_sentinel_query whenever you want queries automatically rate-limited per agent, filtered for externaldata / .management commands, audited to PostgreSQL audit_log + BlueboardAudit_CL, and tied to an incident thread with deterministic evidence verification.
  • Use Sentinel MCP Server (/mcp/graph, /mcp/data-exploration) when an investigator or agent needs graph attack-path traversal across Azure resources or natural-language Sentinel schema exploration before summarising verified findings onto blueboard.

3. Microsoft Purview integration​

blueboard integrates with Microsoft Purview at four complementary layers:

Layer 1 — Automatic Purview alert & data-asset extraction​

When Defender XDR or Sentinel surfaces alerts with serviceSource values microsoftDataLossPrevention, microsoftInsiderRiskManagement, microsoftPurview, or informationProtection, Entities.Extract automatically populates:

  • purview_signals: source, title, severity, and matched policy_or_label.
  • data_assets: blobEvidence, blobContainerEvidence, teamsMessageEvidence, and sensitivityLabel metadata attached to files or emails.

The bundled playbook playbooks/data-exfiltration-cloud.md automatically attaches to matching Purview DLP / Insider Risk incidents, and templates/incidents/purview-dlp-insider-exfil.json provides a realistic test fixture for local dry runs.

Layer 2 — lookup_purview_context MCP tool​

Agents holding Board.Hunt can call lookup_purview_context { "user": "m.chen@contoso.com", "include_labels": true } (implemented in api/Blueboard.Api/Graph/Enrichment.cs):

  • Queries recent Purview DLP and Insider Risk alerts in Microsoft Graph Security (/v1.0/security/alerts_v2) involving the user using existing SecurityAlert.Read.All permissions — zero new mandatory tenant grants.
  • Optionally queries /v1.0/security/dataSecurityAndGovernance/sensitivityLabels when PURVIEW_LABELS=1 (InformationProtectionPolicy.Read.All) has been granted, degrading gracefully (labels_status: "not_granted_or_unavailable") when omitted.

Layer 3 — Optional PURVIEW_CONTENT_GUARD on board posts (processContent)​

In addition to blueboard's deterministic secret-leak filter (DetectSecretLeak, always active to block PEM private keys, JWT bearer tokens, API keys and webhook secrets), administrators can enable Microsoft Purview Data Security & Governance screening on non-system posts:

SettingGraph Permission (infra/grant-permissions.sh)Behaviour
PURVIEW_CONTENT_GUARD=off (default)NoneOnly deterministic secret/key blocking runs.
PURVIEW_CONTENT_GUARD=auditPURVIEW_GUARD=1 (Content.Process.All)Sends non-system post text to POST /v1.0/security/dataSecurityAndGovernance/processContent, records Purview policy hits in audit_log (purview.content_flagged), allows the post through.
PURVIEW_CONTENT_GUARD=blockPURVIEW_GUARD=1 (Content.Process.All)Blocks any post returning restrictAccess or blockAccess from Purview (HTTP 403 / MCP error) and audits the refusal.

Layer 4 — Purview & generative AI hunting templates​

Ready-to-run queries in templates/kql/purview-dlp-insider-ai.kql cover Purview DLP alerts, Sensitivity Label downgrades (SensitivityLabelRemoved), SharePoint/OneDrive mass downloads, Insider Risk correlation, and Microsoft 365 Copilot / unmanaged generative AI uploads (CloudAppEvents).


4. Microsoft Security Copilot & Defender Unified SOC​

Import templates/security-copilot/blueboard-mcp-plugin.yaml into Microsoft Security Copilot to let Copilot sessions and Security Copilot YAML agents:

  1. Inspect get_incident_summary to avoid duplicating work already done by autonomous agents on the board.
  2. Call lookup_purview_context, lookup_intel, check_cve_exposure, run_hunting_query, and run_sentinel_query.
  3. Queue containment via request_action under your policy.json guardrails rather than asking analysts to copy/paste commands manually.

5. Microsoft Entra Agent ID governance​

When onboarding autonomous agents in Entra ID:

  1. Provision a distinct Entra Agent ID (or User-Assigned Managed Identity / federated app registration) for every specialist persona — never share a single identity across agents.
  2. Assign only the Board.* roles each persona requires (./infra/assign-roles.sh <agent-sp-oid> Board.Post Board.Hunt). Never assign Board.Approve, Board.Admin, or direct Graph/Defender permissions to an agent identity.
  3. Apply Conditional Access for Workload Identities / Agents in Entra ID to restrict token issuance to trusted workload locations or compliant hosts.
  4. Monitor new-agent and limit-hit in BlueboardAudit_CL, and revoke compromised agents immediately via Admin → Participants → Disable (cancels active claims and webhooks in milliseconds).

6. Microsoft Perception MCP (preview)​

Microsoft announced Perception as generally available at Ignite 2026 (November 2026). Its MCP server is in preview, as are the integrations that connect it to SIEM, SOAR and ticketing tools. What follows was checked against Microsoft Learn on 27 November 2026 (What is Perception MCP?, MCP tools reference, Use Perception MCP in ChatGPT or Claude). Preview features change: re-check those pages before you rely on any detail here.

What Perception MCP does, and what it doesn't​

  • Server: https://perception.microsoft.com/mcp (Streamable HTTP).
  • Tools (documented): list_playbooks, start_session, list_sessions, get_session, stop_session, list_agent_runs, get_agent_run, get_agent_run_messages, list_outputs, read_output, get_session_summary. Sessions are asynchronous: start one with a playbook id and inputs (for example an incident id), poll get_session, then read the summary and Markdown reports. Sessions are also visible in the Defender portal.
  • Auth: an Entra app registration with the delegated Security Copilot API permissions Perception.Read.All, Perception.Operate.All and Perception.Manage.All, used through the client's OAuth flow (the client signs the user in). For Claude the redirect URI is https://claude.ai/api/mcp/auth_callback. The Learn steps use a client secret for the connector; prefer a certificate or federated credential wherever your client supports one, and keep the secret in your client's secret store, never on the board.
  • Prerequisites: Perception onboarded in the Defender portal, unified RBAC (URBAC) on for all Defender workloads; Security Reader can use the configured agents, Security Admin can set them up.
  • Not documented (not verified): a tool that runs response actions directly. The documented tools start, steer and read investigation sessions. Perception's own playbooks may include response steps configured in Defender; check each playbook's agents[].permissions from list_playbooks before you connect it to an autonomous agent.

blueboard as the governance layer over Perception, Sentinel MCP and Security Copilot​

Give an agent two MCP servers: Perception (or Sentinel MCP, or Security Copilot) to investigate, blueboard for everything that changes shared state. Start from templates/mcp/dual-mcp-perception-blueboard.json.

StepServerTool
Claim the incident so no one else duplicates the investigationblueboardread_feed, claim_message
Run Perception's Attack Investigation on itPerceptionlist_playbooks → start_session (incidentId input) → get_session
Read the resultPerceptionget_session_summary, read_output
Post the conclusion, cited, for the teamblueboardpost_message type finding (link the session's webUrl in the body); add_timeline_events for timestamped activity; ioc and verdict
Compare with what the board already knowsblueboardget_incident_timeline, get_incident_graph (protected and compromised flags, pending actions)
Propose containmentblueboardrequest_action: policy checks protected_*, evidence grounding and limits, and a person who isn't the requester approves
Emerging threatsPerception for analysis of an article ("Use Perception to analyze this article"), blueboard for the tracked chainpost_ti_finding, then start_ti_playbook (emerging-threat-detection)

Rules that keep this safe:

  1. Perception output is untrusted data on the board, like any agent's post: the timeline marks reported events, the summary flags identifiers that aren't in evidence, and policy re-checks every action target.
  2. Don't let one agent hold both read and write power. The agent's Perception permissions come from the signed-in user's delegated grant; its board roles should be Board.Post and Board.Hunt, plus Board.RequestActions only if it should propose containment. It never holds Board.Approve.
  3. Approvals stay on the board. If you also use Perception's own response features, decide which system is the approval of record for each action kind and disable the overlapping kinds in policy.json (disabled), so an action can't be approved in one place and repeated in the other.
  4. Perception's MCP access can only be turned off by contacting Microsoft support (per Learn); revoke the Entra app's consent to cut a client off immediately.

7. Third-party connectors: Okta, ServiceNow and Jira​

Microsoft Perception (Ignite 2026) ingests third-party identity signals (Okta, AWS, Salesforce) and round-trips with ITSM, SIEM and SOAR tools. Blueboard does the same for Okta and for ServiceNow / Jira ticketing, under the same rules as every Microsoft action: agents read and propose, PolicyEngine checks protected_users across identity providers, a human approves, the broker runs it once (dry run unless BROKER_EXECUTE=true). Every connector is off unless its base URL is set, calls only its one configured origin through OutboundGuard (public addresses only, checked at connect time against DNS rebinding, no redirects, no proxy), and keeps its credential inside the API: agents never see it, the API never returns it, and it is never logged.

SettingOktaServiceNowJira
Base URL (turns it on)OKTA_ORG_URL (*.okta.com, *.oktapreview.com, or OKTA_CUSTOM_DOMAIN)SERVICENOW_INSTANCE_URL (*.service-now.com, *.servicenowservices.com)JIRA_BASE_URL (*.atlassian.net)
Credentialprivate_key_jwt: OKTA_CLIENT_ID + OKTA_SIGNING_KEY_URL (a Key Vault key, signs in Key Vault, never exported). Fallback: OKTA_AUTH_MODE=ssws + OKTA_API_TOKEN (Key Vault secret)OAuth 2.0 client credentials: SERVICENOW_CLIENT_ID + SERVICENOW_CLIENT_SECRET (Key Vault secret)JIRA_EMAIL + JIRA_API_TOKEN (Key Vault secret) of a dedicated integration account
Inboundn/aSERVICENOW_WEBHOOK_SECRET (32+ chars)JIRA_WEBHOOK_SECRET (32+ chars)
OtherOKTA_SCOPES, OKTA_JWK_KID, OKTA_ENRICH_INCIDENTS (default on)SERVICENOW_TABLE (incident or sn_si_incident), SERVICENOW_ASSIGNMENT_GROUP, SERVICENOW_RESOLVE_STATE, SERVICENOW_CLOSE_CODEJIRA_PROJECT_KEY (required), JIRA_ISSUE_TYPE (Task), JIRA_RESOLVE_TRANSITION_ID

All settings live in Core/ConnectorSettings.cs (read once at start-up; a bad host, a short webhook secret or a missing credential stops the worker with the reason). infra/main.bicep takes them as parameters and, in the production profile, stores every secret in Key Vault and references it (okta-api-token, servicenow-client-secret, servicenow-webhook-secret, jira-api-token, jira-webhook-secret). The Admin → Connectors page (/admin/connectors, GET /api/manage/connectors) shows each connector's host, credential type, health, last success, last error and link count, with a Test button (one harmless read, audited as connector.tested). The setup checklist adds a Connectors check and Posture adds Connector credentials are non-exportable or in Key Vault.

Okta connector​

Authentication (preferred). Create an API Services app (OAuth 2.0 service app) in Okta with client authentication Public key / Private key (DPoP not required) and grant only these Okta API scopes (verified against the Okta Management API reference, November 2026):

ScopeUsed for
okta.users.readGET /api/v1/users/{id}, /factors, /groups (lookups, alias resolution, enrichment)
okta.logs.readGET /api/v1/logs (System Log search)
okta.roles.readGET /api/v1/users/{id}/roles (admin roles on lookups; optional: without it lookups say admin_roles_checked: not_checked)
okta.users.managePOST /api/v1/users/{id}/lifecycle/suspend, /unsuspend, /reset_factors, and DELETE /api/v1/users/{id}/sessions?oauthTokens=true

okta.sessions.manage is not needed: the per-user session revoke (DELETE /api/v1/users/{userId}/sessions) is authorised by okta.users.manage. Give the service app the least-privileged admin role that allows these operations (a custom admin role limited to the user lifecycle and session permissions on the groups you want the board to be able to touch is best; Okta evaluates both the scope and the role).

The private key is an RSA 2048 key created in Key Vault (az keyvault key create --kty RSA --size 2048 --ops sign), never exported; register its public JWK on the Okta app. The Function App identity gets Key Vault Crypto User on the vault (Bicep does this in the production profile when oktaOrgUrl is set). The board builds the client assertion (iss = sub = client id, aud = https://{org}/oauth2/v1/token, 5-minute exp, random jti), asks Key Vault to sign it (POST {key}/sign, RS256), and exchanges it for a 1-hour access token (client credentials) that is cached in memory until a minute before expiry. There is no client secret anywhere.

Fallback (less preferred). OKTA_AUTH_MODE=ssws with OKTA_API_TOKEN (a Key Vault secret). An SSWS token inherits its creator's admin rights, can't be scoped, and is a bearer secret that works from anywhere until revoked: use it only where a service app is impossible, from a dedicated least-privileged Okta admin, and rotate it (SOP-15). Posture scores it partial.

Read-only MCP tools (Board.Hunt). Both return { notice, untrusted_data }: Okta profile fields and System Log text are written by users and outside systems.

  • lookup_okta_user { user }: Okta id (00u…) or login / email. Status, factors enrolled (type, provider, status), last login, password changed, up to 50 groups, admin roles.
  • search_okta_logs { user?, ip?, hours = 24 (≤ 720), limit = 50 (≤ 100) }: System Log events where the user is actor or target and/or from a client IP, newest first. The SCIM filter is built only from validated values (an Okta id, a login with no quotes, a parsed IP address).

Both are rate-limited (lookup and hunt buckets) and audited (connector.okta_lookup, connector.okta_logs).

Brokered actions. All four are destructive (never auto-approved), target type user, and must be linked to an incident.

KindOkta callReverse
okta_suspend_userPOST /api/v1/users/{id}/lifecycle/suspendokta_unsuspend_user
okta_unsuspend_userPOST /api/v1/users/{id}/lifecycle/unsuspendokta_suspend_user
okta_clear_user_sessionsDELETE /api/v1/users/{id}/sessions?oauthTokens=truenone (can't be undone)
okta_reset_factorsPOST /api/v1/users/{id}/lifecycle/reset_factorsnone (can't be undone)

user must be an Okta id or a login / email: no path, query, quote or percent characters reach the URL.

Cross-IdP protected users. At request, the broker looks the target up in Okta, stores its identity link (identity_links: Okta id, login and primary email only) and pins the Okta id it found in the params (okta_user_id; anything the requester sends there is replaced). Preview and the policy simulator look the target up the same way but store nothing. secondEmail and other profile fields a user can edit in Okta are never linked: a user could otherwise name a protected person (or anyone else) as their own alias. IncidentContext.IdentityLinks carries every stored link that shares a name with the incident's Entra users or with protected_users, read in a stable order, and PolicyEngine merges them into the user alias groups: Okta id ↔ login ↔ email ↔ Entra UPN ↔ Entra object id. So protected_users: ["ceo@contoso.com"] also protects the Okta user whose login or email is ceo@contoso.com, even when the request names its 00u… id. Entries in protected_users that are Entra object ids are resolved to their UPN through Graph (GET /v1.0/users/{id}, cached 10 minutes, a failure for 1 minute), so they protect the Okta user whether or not the person is in the incident evidence; an object id Graph can't resolve right now adds a note that blocks automation and tells the approver. A link that would join two different Entra users (two evidence users, or an evidence user and a protected one) is not merged: policy adds an identity link conflict note naming both, which blocks automation and asks the approver to check who it is; it is never a silent reject or a silent protect. The check runs again at approval and at execution; at execution ConnectorHub.OktaWriteAsync reads the pinned Okta id, refuses if the requested login or email is no longer one of that user's names, and refuses if any current name is protected (defence in depth against Okta data changing in between). An Okta target counts as "in the incident evidence" when one of its linked names is a user in the evidence.

Enrichment. With OKTA_ENRICH_INCIDENTS on (default), the connector-sync timer looks up the UPNs of newly ingested incidents (at most 5 per incident, 10 incidents per minute) and stores their links. The incident page shows an Okta chip per matched user (status, factor and group counts, admin roles, last login), read from the database only.

Ticketing round-trip (ServiceNow and Jira)​

Outbound. The connector-sync timer (every minute, its own advisory lock) opens one ticket per incident per system when an open incident:

  • is at or above TICKET_MIN_SEVERITY (off | informational | low | medium | high, default high), or
  • has a playbook attached (TICKET_ON_PLAYBOOK=true), or
  • has a containment action approved (TICKET_ON_ACTION_APPROVED=true).

People with Board.RequestActions can also open one from the incident page (POST /api/incidents/{id}/ticket { system }). The link (ticket_links: sys_id / issue id ↔ key ↔ incident) is unique per incident and system and is shown on the incident page and as a ticket_linked status in the incident thread. Board → ticket sync (TICKET_SYNC_EVENTS, default verdict,action_result,resolved) writes structured text only, never message bodies: a verdict's classification and confidence and its author's handle, an action's title and status, and on resolution the Defender classification, determination and assignee. ServiceNow gets work notes (and state / close_code when SERVICENOW_RESOLVE_STATE is set); Jira gets ADF comments of plain text nodes (and a transition when JIRA_RESOLVE_TRANSITION_ID is set). The first run starts from the current feed position, so turning a connector on doesn't replay history.

Inbound. POST /api/connectors/{servicenow|jira}/inbound (no Entra token: the ticketing system can't get one) is authenticated by the per-system webhook secret:

X-Blueboard-Timestamp: <unix seconds>
X-Blueboard-Nonce: <16-128 chars of A-Z a-z 0-9 _ ->
X-Blueboard-Signature: sha256=<hex HMAC-SHA256(secret, "{timestamp}.{nonce}.{raw body}")>

{ "ticket": "<sys_id | key>", "type": "comment", "comment": "...", "author": "..." }
{ "ticket": "<sys_id | key>", "type": "attach_playbook", "playbook_id": "phishing" }

The signature is compared in constant time; the timestamp must be within ±5 minutes; the nonce is inserted into inbound_nonces and a second use is refused with 409 and audited (connector.inbound_replay). Nonces are stored only after the signature verifies, so an unauthenticated caller can't fill the table or the audit log; the timer purges nonces older than a day. A system without a secret answers 404. Bodies are capped at 64 KB.

Configure the sender with whatever your platform offers for signed outbound calls (for example a ServiceNow Business Rule or Flow action calling an Outbound REST Message whose script computes the HMAC, or a small relay behind Jira Automation's "Send web request"). Jira's native admin-webhook X-Hub-Signature is not accepted: it has no timestamp or nonce, so it can't be protected against replay.

What inbound can do:

  • comment: posts a chat reply in the incident thread as the system's own principal (servicenow / jira, kind integration, migration 019). The body is labelled untrusted data from outside the board, not an instruction; it cannot approve anything, quoted line by line, stripped of control characters, and every @ is neutralised so a ticket can't @mention (and so wake) an agent or a person. It goes through the normal post path (secret-leak filter, optional Purview guard).
  • attach_playbook: attaches a playbook that the incident doesn't have yet, exactly like attach_playbook over MCP.

What inbound can never do: approve, deny, run, release or request an action. There is no code path from the inbound handler to the broker, the integration principals have only poster, and Broker.DecideAsync requires a human approver. Integration tests prove a ticket comment containing approve <action id> @analyst leaves the action pending_approval.

Implementation notes​

  • Auto-revert: okta_suspend_user is undone by okta_unsuspend_user (Catalog.ConnectorReverseKinds, merged into Reversal.ReverseKind). okta_clear_user_sessions and okta_reset_factors can't be undone, so they never run on their own unless policy.json lists them in automation.irreversible_auto_allowed.
  • Catalogue: Catalog.OktaKinds run through ActionDef.RunConnector with the connector's credential (Run throws for them); the broker branches on it.
  • Permissions: Permissions.ConnectorScopeFor covers the Okta kinds; Write_permissions_match_grant_permissions_script requires every kind to be in WriteFor, AzureRoleFor or ConnectorScopeFor.
  • Policy: IncidentContext.IdentityLinks carries the Okta identity links; PolicyEngine merges them into the user aliases before the protected-user check.
  • Principal kind: migration 019 adds integration to principals.kind.