# suchandanreddy/microsoft-sentinel-labs architecture

> Architecture diagram of the GitHub repository suchandanreddy/microsoft-sentinel-labs, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-04-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/suchandanreddy/microsoft-sentinel-labs
- Repository: https://github.com/suchandanreddy/microsoft-sentinel-labs

## Overview

This repository is a documentation-driven lab pack for building a Microsoft Sentinel-based security investigation workflow, not an application codebase. Its architecture is a staged path from data lake setup, to data preparation, to agentic querying, to packaging/publishing a reusable security agent.

1. **Primary purpose**
   - The repo teaches how to use Microsoft Sentinel Data Lake as the analytics backend for a security investigation scenario called **IdentityDrift**.
   - The end goal is an agent that can decide whether a suspicious sign-in is benign or an initial access event requiring containment.

2. **Top-level lab flow**
   - The six markdown labs form a pipeline:
     - onboard Sentinel Data Lake
     - create KQL jobs and sample tables
     - connect Sentinel tools to VS Code via MCP
     - build an agent in Azure AI Foundry
     - build the same class of agent in Security Copilot
     - package and publish the agent to the Security Store
   - This is a layered architecture: data platform first, tooling next, then agent orchestration, then distribution.

3. **Data foundation subsystem**
   - Lab 1 establishes the **Microsoft Sentinel Data Lake** in the Defender/Azure portals.
   - This is the core persistence and query layer for the rest of the repo.
   - It is the boundary where raw security telemetry becomes queryable investigation data.

4. **KQL job subsystem**
   - The `KQL-Jobs/` folder contains reusable job definitions organized by telemetry type:
     - `CommonSecurity_ID_Logs`
     - `SigninLogs`
     - `AADRiskyUsers`
     - `DeviceProcessEvents`
     - `SecurityAlerts`
   - These represent the lab’s data transformation layer, where fictional IdentityDrift telemetry and supporting security signals are ingested or shaped into Sentinel tables.

5. **Security signal model**
   - The scenario correlates multiple signal classes rather than relying on a single source:
     - identity access telemetry from IdentityDrift
     - Entra ID sign-in events
     - AAD risk detections
     - endpoint process execution
     - cloud/security alerts
   - The architecture is centered on cross-domain correlation: identity, access, endpoint, and cloud workload telemetry.

6. **Tooling boundary: MCP**
   - Lab 3 introduces a **Sentinel MCP server** connection for VS Code.
   - This is the integration boundary between the Sentinel data plane and AI-assisted tooling.
   - MCP acts as the tool interface the agent can use to run investigations against Sentinel data.

7. **Agent runtime in Azure AI Foundry**
   - Lab 4 builds an agent in **Azure AI Foundry** that uses Sentinel data sources through MCP.
   - This agent layer is where query orchestration and investigation logic live.
   - Its job is to sequence queries across the Sentinel tables, combine evidence, and produce a risk assessment.

8. **Agent runtime in Security Copilot**
   - Lab 5 recreates the investigation agent inside **Security Copilot**.
   - The architectural difference is the hosting/runtime context: the same investigative workflow is adapted to Copilot’s workspace and SCU-based execution model.
   - This lab emphasizes operational deployment of the agent inside Microsoft’s security operations environment.

9. **Publishing boundary**
   - Lab 6 packages the agent for distribution through the **Microsoft Security Store** via Partner Center.
   - This turns the lab output into a publishable product artifact, with a manifest and deployment package.
   - It is the handoff from internal lab solution to external marketplace delivery.

10. **Cross-cutting scenario and outcome**
   - The scenario starts with a suspicious user sign-in and expands into a multi-stage investigation:
     - location anomaly
     - MFA challenge
     - privileged Kubernetes access
     - role escalation
     - suspicious `kubectl` execution
   - The agent’s purpose is to synthesize these signals into a clear decision for security response.

11. **Relevant external services**
   - The repo depends on Microsoft portals and services that define the boundaries of each lab:
     - Defender portal for Sentinel onboarding
     - Azure portal for resource and data lake setup
     - VS Code for MCP integration
     - Azure AI Foundry for agent creation
     - Security Copilot for operational agenting
     - Partner Center / Security Store for publishing

12. **How to diagram it**
   - A good architecture diagram would show:
     - source telemetry feeding Sentinel Data Lake
     - KQL jobs transforming raw data into investigation tables
     - MCP exposing query access to AI tools
     - agents in Foundry/Copilot orchestrating multi-table correlation
     - a final packaging/publishing path to Security Store
   - The central data dependency is Sentinel Data Lake; the central intelligence layer is the agent.

Main entry points: [`02-Create-KQL-Jobs.md`](https://github.com/suchandanreddy/microsoft-sentinel-labs/blob/main/02-Create-KQL-Jobs.md) (KQL Jobs), [`01-Sentinel-DataLake-Onboarding.md`](https://github.com/suchandanreddy/microsoft-sentinel-labs/blob/main/01-Sentinel-DataLake-Onboarding.md) (Data Lake), [`04-Building-an-Agent-in-Azure-AI-Foundry.md`](https://github.com/suchandanreddy/microsoft-sentinel-labs/blob/main/04-Building-an-Agent-in-Azure-AI-Foundry.md) (Foundry Agent), [`05-Building-an-Agent-in-Security-Copilot.md`](https://github.com/suchandanreddy/microsoft-sentinel-labs/blob/main/05-Building-an-Agent-in-Security-Copilot.md) (Copilot Agent)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_overview["Lab flow"]
  node_readme["README<br/>entry<br/>[README.md]"]
  node_lab1["Data Lake<br/>lab"]
  node_lab2["KQL Jobs<br/>lab"]
  node_lab3["MCP Setup<br/>lab"]
  node_lab4["Foundry Agent<br/>lab"]
  node_lab5["Copilot Agent<br/>lab"]
  node_lab6["Publish Store<br/>lab"]
end

subgraph group_kql["KQL jobs"]
  node_kql_common["Common logs<br/>kql job set"]
  node_kql_signin["Signin logs<br/>kql job set"]
  node_kql_risky["Risky users<br/>kql job set"]
  node_kql_device["Device events<br/>kql job set"]
  node_kql_alerts["Security alerts<br/>kql job set"]
end

subgraph group_platforms["External platforms"]
  node_sentinel[("Sentinel Lake<br/>data platform")]
  node_defender["Defender Portal"]
  node_azure["Azure Portal"]
  node_vscode["VS Code<br/>tooling"]
  node_foundry["AI Foundry<br/>agent host"]
  node_copilot["Security Copilot<br/>agent host"]
  node_partner["Partner Center<br/>publishing"]
  node_store["Security Store<br/>marketplace"]
end

subgraph group_scenario["IdentityDrift"]
  node_identitydrift{{"IdentityDrift<br/>scenario"}}
  node_signals(("Signal model<br/>correlation model"))
end

node_readme -->|"starts with"| node_lab1
node_lab1 -->|"establishes"| node_sentinel
node_lab1 -->|"uses"| node_defender
node_lab1 -->|"uses"| node_azure
node_lab2 -->|"builds"| node_kql_common
node_lab2 -->|"builds"| node_kql_signin
node_lab2 -->|"builds"| node_kql_risky
node_lab2 -->|"builds"| node_kql_device
node_lab2 -->|"builds"| node_kql_alerts
node_kql_common -->|"loads"| node_sentinel
node_kql_signin -->|"loads"| node_sentinel
node_kql_risky -->|"loads"| node_sentinel
node_kql_device -->|"loads"| node_sentinel
node_kql_alerts -->|"loads"| node_sentinel
node_lab3 -->|"connects"| node_vscode
node_lab3 -->|"exposes"| node_sentinel
node_lab4 -->|"builds in"| node_foundry
node_lab4 -->|"queries"| node_sentinel
node_lab4 -->|"correlates"| node_signals
node_lab5 -->|"deploys in"| node_copilot
node_lab5 -->|"queries"| node_sentinel
node_lab5 -->|"correlates"| node_signals
node_lab6 -->|"packages"| node_partner
node_partner -->|"publishes to"| node_store
node_identitydrift -->|"defines"| node_signals
node_signals -->|"informs"| node_foundry
node_signals -->|"informs"| node_copilot

click node_readme "https://github.com/suchandanreddy/microsoft-sentinel-labs/blob/main/README.md"
click node_lab1 "https://github.com/suchandanreddy/microsoft-sentinel-labs/blob/main/01-Sentinel-DataLake-Onboarding.md"
click node_lab2 "https://github.com/suchandanreddy/microsoft-sentinel-labs/blob/main/02-Create-KQL-Jobs.md"
click node_lab3 "https://github.com/suchandanreddy/microsoft-sentinel-labs/blob/main/03-Sentinel-MCP-VSCode-Setup.md"
click node_lab4 "https://github.com/suchandanreddy/microsoft-sentinel-labs/blob/main/04-Building-an-Agent-in-Azure-AI-Foundry.md"
click node_lab5 "https://github.com/suchandanreddy/microsoft-sentinel-labs/blob/main/05-Building-an-Agent-in-Security-Copilot.md"
click node_lab6 "https://github.com/suchandanreddy/microsoft-sentinel-labs/blob/main/06-Publishing-Agent-to-Security-Store.md"
click node_kql_common "https://github.com/suchandanreddy/microsoft-sentinel-labs/tree/main/KQL-Jobs/CommonSecurity_ID_Logs"
click node_kql_signin "https://github.com/suchandanreddy/microsoft-sentinel-labs/tree/main/KQL-Jobs/SigninLogs"
click node_kql_risky "https://github.com/suchandanreddy/microsoft-sentinel-labs/tree/main/KQL-Jobs/AADRiskyUsers"
click node_kql_device "https://github.com/suchandanreddy/microsoft-sentinel-labs/tree/main/KQL-Jobs/DeviceProcessEvents"
click node_kql_alerts "https://github.com/suchandanreddy/microsoft-sentinel-labs/tree/main/KQL-Jobs/SecurityAlerts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_readme,node_lab1,node_lab2,node_lab3,node_lab4,node_lab5,node_lab6 toneBlue
class node_kql_common,node_kql_signin,node_kql_risky,node_kql_device,node_kql_alerts toneAmber
class node_sentinel,node_defender,node_azure,node_vscode,node_foundry,node_copilot,node_partner,node_store toneMint
class node_identitydrift,node_signals toneRose
```

## Components

### Lab flow

Documentation-driven stages from data foundation to publishing

- [README](https://github.com/suchandanreddy/microsoft-sentinel-labs/blob/main/README.md): entry · Repository overview and lab map · `README.md`
- [Data Lake](https://github.com/suchandanreddy/microsoft-sentinel-labs/blob/main/01-Sentinel-DataLake-Onboarding.md): lab · Onboard Microsoft Sentinel Data Lake · `01-Sentinel-DataLake-Onboarding.md`
- [KQL Jobs](https://github.com/suchandanreddy/microsoft-sentinel-labs/blob/main/02-Create-KQL-Jobs.md): lab · Create query jobs and sample tables · `02-Create-KQL-Jobs.md`
- [MCP Setup](https://github.com/suchandanreddy/microsoft-sentinel-labs/blob/main/03-Sentinel-MCP-VSCode-Setup.md): lab · Connect Sentinel tools to VS Code through MCP · `03-Sentinel-MCP-VSCode-Setup.md`
- [Foundry Agent](https://github.com/suchandanreddy/microsoft-sentinel-labs/blob/main/04-Building-an-Agent-in-Azure-AI-Foundry.md): lab · Build the investigation agent in Azure AI Foundry · `04-Building-an-Agent-in-Azure-AI-Foundry.md`
- [Copilot Agent](https://github.com/suchandanreddy/microsoft-sentinel-labs/blob/main/05-Building-an-Agent-in-Security-Copilot.md): lab · Recreate the agent in Security Copilot · `05-Building-an-Agent-in-Security-Copilot.md`
- [Publish Store](https://github.com/suchandanreddy/microsoft-sentinel-labs/blob/main/06-Publishing-Agent-to-Security-Store.md): lab · Package and publish the agent to Security Store · `06-Publishing-Agent-to-Security-Store.md`

### KQL jobs

Reusable Sentinel job sets by telemetry source

- [Common logs](https://github.com/suchandanreddy/microsoft-sentinel-labs/tree/main/KQL-Jobs/CommonSecurity_ID_Logs): kql job set · Shared security identity log shaping · `KQL-Jobs/CommonSecurity_ID_Logs`
- [Signin logs](https://github.com/suchandanreddy/microsoft-sentinel-labs/tree/main/KQL-Jobs/SigninLogs): kql job set · Entra sign-in telemetry jobs · `KQL-Jobs/SigninLogs`
- [Risky users](https://github.com/suchandanreddy/microsoft-sentinel-labs/tree/main/KQL-Jobs/AADRiskyUsers): kql job set · AAD risk detection jobs · `KQL-Jobs/AADRiskyUsers`
- [Device events](https://github.com/suchandanreddy/microsoft-sentinel-labs/tree/main/KQL-Jobs/DeviceProcessEvents): kql job set · Endpoint process execution jobs · `KQL-Jobs/DeviceProcessEvents`
- [Security alerts](https://github.com/suchandanreddy/microsoft-sentinel-labs/tree/main/KQL-Jobs/SecurityAlerts): kql job set · Cloud and security alert jobs · `KQL-Jobs/SecurityAlerts`

### External platforms

Microsoft services used across the labs

- **Sentinel Lake**: data platform · Core security analytics and query backend
- **Defender Portal**: portal · Sentinel onboarding surface
- **Azure Portal**: portal · Resource and data lake setup surface
- **VS Code**: tooling · Local MCP-connected investigation workspace
- **AI Foundry**: agent host · Agent authoring and orchestration runtime
- **Security Copilot**: agent host · Operational security agent runtime
- **Partner Center**: publishing · Packaging and marketplace publishing surface
- **Security Store**: marketplace · Distribution target for the packaged agent

### IdentityDrift

Security investigation scenario and signal model

- **IdentityDrift**: scenario · Suspicious sign-in investigation scenario
- **Signal model**: correlation model · Identity, endpoint, risk, and alert signals

## Connections

- README → Data Lake: starts with · Repository guide points to the lab sequence
- Data Lake → Sentinel Lake: establishes · Creates the Sentinel Data Lake foundation
- Data Lake → Defender Portal: uses · Onboarding is performed through Defender portal
- Data Lake → Azure Portal: uses · Data lake resources are configured in Azure portal
- KQL Jobs → Common logs: builds · Creates reusable query jobs and tables
- KQL Jobs → Signin logs: builds · Creates sign-in telemetry jobs
- KQL Jobs → Risky users: builds · Creates risk telemetry jobs
- KQL Jobs → Device events: builds · Creates endpoint telemetry jobs
- KQL Jobs → Security alerts: builds · Creates alert telemetry jobs
- Common logs → Sentinel Lake: loads · Shapes data into Sentinel queryable state
- Signin logs → Sentinel Lake: loads · Feeds sign-in evidence into the lake
- Risky users → Sentinel Lake: loads · Feeds risk detections into the lake
- Device events → Sentinel Lake: loads · Feeds endpoint execution evidence into the lake
- Security alerts → Sentinel Lake: loads · Feeds alert evidence into the lake
- MCP Setup → VS Code: connects · Sets up MCP-based investigation tooling
- MCP Setup → Sentinel Lake: exposes · MCP bridges tool access to Sentinel data
- Foundry Agent → AI Foundry: builds in · Agent is authored in Azure AI Foundry
- Foundry Agent → Sentinel Lake: queries · Agent uses Sentinel data for investigations
- Foundry Agent → Signal model: correlates · Combines cross-domain evidence into a risk judgment
- Copilot Agent → Security Copilot: deploys in · Same investigative pattern is hosted in Security Copilot
- Copilot Agent → Sentinel Lake: queries · Copilot agent investigates against Sentinel data
- Copilot Agent → Signal model: correlates · Uses the same signal model for assessment
- Publish Store → Partner Center: packages · Creates the distributable agent artifact
- Partner Center → Security Store: publishes to · Submits the agent to Security Store
- IdentityDrift → Signal model: defines · Scenario centers on suspicious sign-in and follow-on evidence
- Signal model → AI Foundry: informs · Foundry agent uses the signal set for reasoning
- Signal model → Security Copilot: informs · Copilot agent uses the same signal set for reasoning
