Chapter 2 of 6 · Architecture

Defender for AI services, Sentinel detections, and shadow AI discovery

Optional module · Draft 4.5 hours

Chapter 2 of 6

Architecture at a glance#

The subscription plan is the first control boundary. Defender for Cloud analyzes supported AI service activity, raises AI alerts, and sends them to Defender XDR. Sentinel receives AI-related signals from its connectors and the Log Analytics workspace.

The module deploys two reusable definitions:

SurfaceRepository definitionLive authority
Defender for Cloud AI services plandefender-ai-plan.bicep and defender-ai-plan-decisions.jsonMicrosoft Defender for Cloud
Copilot jailbreak analytics rulecopilot-threat-detections.bicep and copilot-jailbreak-analytics.kqlMicrosoft Sentinel
Copilot external-IP hunting querycopilot-threat-detections.bicep and copilot-external-ip-hunting.kqlLog Analytics saved searches surfaced in Sentinel
Shadow AI decisionsshadow-ai-sanction-decisions.jsonDefender for Cloud Apps portal tags and policies

The workflow runs Bicep what-if for the two deployable surfaces. Shadow AI tagging is portal-led: the security owner starts in monitor mode, applies Sanctioned or Unsanctioned tags, and moves to blocking only through the approved change path.

Design choices and tradeoffs#

DecisionChosen approachBenefitsCosts and limitations
Defender plan rolloutSubscription-scope Bicep for Microsoft.Security/pricings name AIRepeatable plan state and extension decisionsPrompt evidence and Purview sharing need a privacy decision
Sentinel contentBicep for a scheduled analytics rule and saved searchThe SOC can deploy and review as codeConnectors and tables must already produce data
Hunting queryLog Analytics saved searchMatches how Sentinel hunting queries are storedThe starter private-range filter must be tuned
Shadow AIMonitor-first portal path with a JSON decision recordAvoids blocking a business app before reviewThe portal remains authoritative for app tags and enforcement

Architecture guidance#

Use AI threat protection in Microsoft Defender for Cloud for the plan scope, supported services, Defender XDR integration, and availability limits.

Use Enable threat protection for AI services for the AI services plan components, prompt-evidence behavior, Purview-sharing boundary, and role requirements.

Use Manage generative AI apps for your organization for Defender for Cloud Apps discovery, Generative AI filtering, and Sanctioned or Unsanctioned tagging.

Optional module

Defender for AI services, Sentinel detections, and shadow AI discovery slide deck