Construction d'un SIEM cloud avec Sentinel

VérifiéPrudence

Ce skill couvre le déploiement de Microsoft Sentinel comme plateforme SIEM et SOAR cloud-native pour les opérations de sécurité centralisées, avec connecteurs de données, requêtes KQL et playbooks automatisés.

Spar Skills Guide Bot
SecuriteAvancé
23/07/2026
Claude CodeCursorCodex
#microsoft-sentinel#cloud-siem#kql#soar#threat-detection

Recommandé pour

Synthèse automatique

Guide le déploiement de Microsoft Sentinel comme plateforme SIEM/SOAR multicloud, avec connecteurs de données, détections KQL, playbooks Logic Apps et chasse aux menaces à grande échelle.

Points forts

  • Couvre un flux de travail complet, du provisionnement de l'espace de travail à la détection et à la réponse automatisée.
  • Fournit des exemples concrets en Azure CLI et KQL pour l'ingestion multicloud et les règles analytiques.
  • Relie les détections à MITRE ATT&CK et à des référentiels NIST, ce qui aide à structurer la modélisation des menaces.
  • Aborde la chasse aux menaces à l'échelle du pétaoctet via le lac de données Sentinel sur AWS, Azure et GCP.

Limites

  • Suppose un abonnement Azure, un espace de travail compatible Sentinel, des permissions sur les connecteurs et une bonne maîtrise de KQL.
  • Certains exemples sont incomplets ou tronqués et doivent être adaptés aux API Azure CLI et Sentinel actuelles.
  • Se concentre sur Microsoft Sentinel et ne couvre pas les environnements exclusivement AWS, la détection endpoint avec EDR ni le suivi de conformité.
Quand l'utiliser

À utiliser pour mettre en place ou faire évoluer un SOC multicloud centralisé sur Microsoft Sentinel, notamment pour les connecteurs, les détections KQL et la réponse automatisée.

Quand l'éviter

À éviter pour un environnement exclusivement AWS, pour la détection endpoint nécessitant un EDR ou pour le seul suivi de la posture de conformité.

Analyse de sécurité

Prudence
Score qualité80/100

The skill is straightforward defensive-security documentation: it provisions a Log Analytics/Sentinel workspace, ingests cloud logs, ships example KQL detections, and provides a sample Logic Apps response playbook. Nothing exfiltrates data, disables safety controls, or executes untrusted payloads. The only real risk is operational: the included automation disables user accounts without guardrails and the CLI steps require privileged Azure credentials, which warrants a 'caution' rather than 'safe' rating.

Points d'attention
  • •The SOAR playbook (Step 3) automatically disables Azure AD accounts (PATCH /v1.0/users/{id} with accountEnabled: false) on every incident with an account entity, with no approval gate, allowlist, or break-glass exclusion — legitimate IR automation, but misconfiguration or false positives could cause operational disruption, so it should be scoped, tested, and gated before production use.
  • •The az CLI commands (workspace creation, connector onboarding) assume a highly privileged Azure principal; the skill does not state least-privilege requirements, and the example AWS connector embeds a cross-account role ARN placeholder that must be tightly scoped in real deployments.
  • •No obfuscated payloads, curl|sh piping, destructive filesystem commands, or attempts to send credentials/tokens to external endpoints were found; all content is documentation, KQL queries, CLI provisioning, and Logic Apps JSON.
  • •No instruction-injection or role-manipulation attempts were present in the skill body.
Comment cette analyse est faite

Exemples

Provision Sentinel and connectors
Provision a Microsoft Sentinel workspace and enable AWS CloudTrail and Azure AD connectors using Azure CLI.
Impossible travel KQL rule
Write a Sentinel KQL analytics rule that detects impossible travel sign-ins and maps it to MITRE ATT&CK.
Automated VM isolation playbook
Design a Logic Apps playbook that automatically isolates a compromised Azure VM when a Sentinel incident fires.

name: building-cloud-siem-with-sentinel description: 'This skill covers deploying Microsoft Sentinel as a cloud-native SIEM and SOAR platform for centralized security operations. It details configuring data connectors for multi-cloud log ingestion, writing KQL detection queries, building automated response playbooks with Logic Apps, and leveraging the Sentinel data lake for petabyte-scale threat hunting across AWS, Azure, and GCP security telemetry.

' domain: cybersecurity subdomain: cloud-security tags:

  • microsoft-sentinel
  • cloud-siem
  • kql-queries
  • soar-automation
  • threat-detection version: 1.0.0 author: mahipal license: Apache-2.0 nist_ai_rmf:
  • MEASURE-2.7
  • MAP-5.1
  • MANAGE-2.4 atlas_techniques:
  • AML.T0070
  • AML.T0066
  • AML.T0082 nist_csf:
  • PR.IR-01
  • ID.AM-08
  • GV.SC-06
  • DE.CM-01 mitre_attack:
  • T1078.004
  • T1548.005
  • T1485
  • T1530
  • T1021.007

Building Cloud SIEM with Sentinel

When to Use

  • When establishing a centralized security operations center for multi-cloud environments
  • When migrating from legacy SIEM platforms (Splunk, QRadar) to cloud-native architecture
  • When building automated incident response workflows for cloud-specific threats
  • When performing large-scale threat hunting across petabytes of security telemetry
  • When integrating threat intelligence feeds with cloud security log analysis

Do not use for AWS-only environments where Security Hub and GuardDuty suffice, for endpoint detection requiring EDR capabilities (use Defender for Endpoint), or for compliance posture monitoring (see building-cloud-security-posture-management).

Prerequisites

  • Azure subscription with Microsoft Sentinel enabled on a Log Analytics workspace
  • Data connector permissions for target log sources (AWS CloudTrail, Azure Activity, GCP)
  • Logic Apps or Azure Functions for automated response playbooks
  • KQL (Kusto Query Language) proficiency for writing detection rules and hunting queries

Workflow

Step 1: Provision Sentinel Workspace and Data Connectors

Create a Log Analytics workspace optimized for security data and enable data connectors for multi-cloud ingestion.

# Create Log Analytics workspace
az monitor log-analytics workspace create \
  --resource-group security-rg \
  --workspace-name sentinel-workspace \
  --location eastus \
  --retention-time 365 \
  --sku PerGB2018

# Enable Microsoft Sentinel on the workspace
az sentinel onboarding-state create \
  --resource-group security-rg \
  --workspace-name sentinel-workspace

# Enable AWS CloudTrail connector
az sentinel data-connector create \
  --resource-group security-rg \
  --workspace-name sentinel-workspace \
  --data-connector-id aws-cloudtrail \
  --kind AmazonWebServicesCloudTrail \
  --aws-cloud-trail-data-connector '{
    "awsRoleArn": "arn:aws:iam::123456789012:role/SentinelCloudTrailRole",
    "dataTypes": {"logs": {"state": "Enabled"}}
  }'

# Enable Azure AD sign-in and audit logs
az sentinel data-connector create \
  --resource-group security-rg \
  --workspace-name sentinel-workspace \
  --data-connector-id azure-ad \
  --kind AzureActiveDirectory \
  --azure-active-directory '{
    "dataTypes": {
      "alerts": {"state": "Enabled"},
      "signinLogs": {"state": "Enabled"},
      "auditLogs": {"state": "Enabled"}
    }
  }'

Step 2: Write KQL Detection Rules

Create analytics rules using Kusto Query Language to detect cloud-specific threats. Map each rule to MITRE ATT&CK techniques.

// Detect impossible travel - sign-ins from geographically distant locations
let timeframe = 1h;
let distance_threshold = 500; // km
SigninLogs
| where TimeGenerated > ago(timeframe)
| where ResultType == 0 // Successful sign-ins only
| project TimeGenerated, UserPrincipalName, IPAddress, Location,
          Latitude = toreal(LocationDetails.geoCoordinates.latitude),
          Longitude = toreal(LocationDetails.geoCoordinates.longitude)
| sort by UserPrincipalName asc, TimeGenerated asc
| extend PrevLatitude = prev(Latitude, 1), PrevLongitude = prev(Longitude, 1),
         PrevTime = prev(TimeGenerated, 1), PrevUser = prev(UserPrincipalName, 1)
| where UserPrincipalName == PrevUser
| extend TimeDiff = datetime_diff('minute', TimeGenerated, PrevTime)
| where TimeDiff < 60
| extend Distance = geo_distance_2points(Longitude, Latitude, PrevLongitude, PrevLatitude) / 1000
| where Distance > distance_threshold
| project TimeGenerated, UserPrincipalName, IPAddress, Location, Distance, TimeDiff
// Detect AWS IAM credential abuse from CloudTrail
AWSCloudTrail
| where TimeGenerated > ago(24h)
| where EventName in ("ConsoleLogin", "AssumeRole", "GetSessionToken")
| where ErrorCode == ""
| summarize LoginCount = count(), DistinctIPs = dcount(SourceIpAddress),
            IPList = make_set(SourceIpAddress, 10)
            by UserIdentityArn, bin(TimeGenerated, 1h)
| where DistinctIPs > 3
| project TimeGenerated, UserIdentityArn, LoginCount, DistinctIPs, IPList
// Detect mass S3 object deletion (potential ransomware)
AWSCloudTrail
| where TimeGenerated > ago(1h)
| where EventName == "DeleteObject" or EventName == "DeleteObjects"
| summarize DeleteCount = count(), BucketsAffected = dcount(RequestParameters_bucketName)
            by UserIdentityArn, bin(TimeGenerated, 10m)
| where DeleteCount > 100
| project TimeGenerated, UserIdentityArn, DeleteCount, BucketsAffected

Step 3: Build SOAR Playbooks with Logic Apps

Create automated response playbooks that execute when analytics rules trigger incidents. Common actions include blocking users, isolating resources, and enriching alerts with threat intelligence.

{
  "definition": {
    "triggers": {
      "Microsoft_Sentinel_incident": {
        "type": "ApiConnectionWebhook",
        "inputs": {
          "body": {"incidentArmId": "subscriptions/@{triggerBody()?['workspaceInfo']?['SubscriptionId']}/resourceGroups/@{triggerBody()?['workspaceInfo']?['ResourceGroupName']}/providers/Microsoft.OperationalInsights/workspaces/@{triggerBody()?['workspaceInfo']?['WorkspaceName']}/providers/Microsoft.SecurityInsights/Incidents/@{triggerBody()?['object']?['properties']?['incidentNumber']}"},
          "host": {"connection": {"name": "@parameters('$connections')['microsoftsentinel']['connectionId']"}}
        }
      }
    },
    "actions": {
      "Get_incident_entities": {
        "type": "ApiConnection",
        "inputs": {"method": "post", "path": "/Incidents/entities"}
      },
      "For_each_account_entity": {
        "type": "Foreach",
        "foreach": "@body('Get_incident_entities')?['Accounts']",
        "actions": {
          "Disable_Azure_AD_user": {
            "type": "ApiConnection",
            "inputs": {
              "method": "PATCH",
              "path": "/v1.0/users/@{items('For_each_account_entity')?['AadUserId']}",
              "body": {"accountEnabled": false}
            }
          },
          "Add_comment_to_incident": {
            "type": "ApiConnection",
            "inputs": {
              "body": {"message": "User @{items('For_each_account_entity')?['Name']} disabled by automated playbook"}
            }
          }
        }
      }
    }
  }
}

Step 4: Configure Sentinel Data Lake for Long-Term Hunting

Enable the Sentinel data lake for petabyte-scale log retention and advanced threat hunting using both KQL and SQL endpoints.

// Threat hunting query: detect lateral movement across AWS accounts
let suspicious_roles = AWSCloudTrail
| where TimeGenerated > ago(7d)
| where EventName == "AssumeRole"
| extend AssumedRoleArn = tostring(parse_json(RequestParameters).roleArn)
| where AssumedRoleArn contains "cross-account" or AssumedRoleArn contains "admin"
| summarize AssumeCount = count(), UniqueSourceAccounts = dcount(RecipientAccountId)
            by UserIdentityArn, AssumedRoleArn
| where AssumeCount > 10 and UniqueSourceAccounts > 2;
suspicious_roles
| join kind=inner (
    AWSCloudTrail
    | where TimeGenerated > ago(7d)
    | where EventName in ("RunInstances", "CreateFunction", "PutBucketPolicy")
) on UserIdentityArn
| project TimeGenerated, UserIdentityArn, AssumedRoleArn, EventName, SourceIpAddress

Step 5: Integrate Threat Intelligence

Connect threat intelligence providers and create indicator-based matching rules to detect communication with known malicious infrastructure.

# Enable Microsoft Threat Intelligence connector
az sentinel data-connector create \
  --resource-group security-rg \
  --workspace-name sentinel-workspace \
  --data-connector-id microsoft-ti \
  --kind MicrosoftThreatIntelligence \
  --microsoft-threat-intelligence '{
    "dataTypes": {"microsoftEmergingThreatFeed": {"lookbackPeriod": "2025-01-01T00:00:00Z", "state": "Enabled"}}
  }'
// Match network indicators against cloud flow logs
let TI_IPs = ThreatIntelligenceIndicator
| where TimeGenerated > ago(30d)
| where isnotempty(NetworkIP)
| distinct NetworkIP;
AzureNetworkAnalytics_CL
| where TimeGenerated > ago(24h)
| where DestIP_s in (TI_IPs)
| project TimeGenerated, SrcIP_s, DestIP_s, DestPort_d, FlowType_s

Key Concepts

| Term | Definition | |------|------------| | KQL | Kusto Query Language, the primary query language for Microsoft Sentinel used to search, analyze, and visualize security data | | Analytics Rule | Detection logic in Sentinel that evaluates log data on a schedule and creates incidents when conditions match | | SOAR Playbook | Automated workflow triggered by incidents that performs response actions such as blocking accounts, enriching alerts, or notifying teams | | Data Connector | Integration module that ingests security logs from cloud services, identity providers, and third-party tools into Sentinel | | Sentinel Data Lake | Petabyte-scale storage layer providing long-term log retention with KQL and SQL query interfaces for advanced hunting | | Workbook | Interactive dashboard in Sentinel displaying visualizations of security data, trends, and operational metrics | | Watchlist | Reference data tables in Sentinel used to enrich alerts with context such as VIP user lists or approved IP ranges | | Fusion Detection | Machine learning-powered correlation engine that automatically detects multi-stage attacks across data sources |

Tools & Systems

  • Microsoft Sentinel: Cloud-native SIEM/SOAR platform built on Azure Log Analytics with AI-powered threat detection
  • Azure Logic Apps: Low-code automation platform for building SOAR playbooks triggered by Sentinel incidents
  • Microsoft Threat Intelligence: Integrated threat feeds providing IP, domain, and URL indicators for matching against security logs
  • Azure Data Explorer: High-performance analytics engine underlying Sentinel KQL queries for large-scale data exploration
  • MITRE ATT&CK Navigator: Framework for mapping Sentinel detection rules to adversary tactics and techniques

Common Scenarios

Scenario: Detecting Cross-Cloud Credential Theft Campaign

Context: An attacker compromises an Azure AD account through phishing, then uses the account to access AWS resources via federated identity. Sentinel needs to correlate the Azure sign-in anomaly with unusual AWS API activity.

Approach:

  1. Create an analytics rule detecting Azure AD impossible travel or anomalous sign-in risk
  2. Write a KQL query correlating the compromised Azure AD identity with AWS CloudTrail AssumeRoleWithSAML events
  3. Build a Fusion detection rule that links Azure AD risk events with subsequent AWS privilege escalation activity
  4. Deploy a SOAR playbook that automatically disables the Azure AD account and revokes AWS STS sessions
  5. Create a workbook showing the timeline from initial compromise through lateral movement to AWS
  6. Run a hunting query across the data lake to check for similar patterns affecting other accounts

Pitfalls: Not correlating identity across cloud providers misses the full attack chain. Setting analytics rule frequency too low (e.g., 24 hours) allows attackers hours of undetected access.

Output Format

Microsoft Sentinel SOC Operations Report
==========================================
Workspace: sentinel-workspace
Data Sources: 14 connectors active
Report Period: 2025-02-01 to 2025-02-23

DATA INGESTION:
  Azure AD Sign-in Logs:     2.3 TB (23 days)
  AWS CloudTrail:            1.8 TB (23 days)
  Azure Activity:            0.9 TB (23 days)
  Defender for Cloud Alerts: 45 GB (23 days)
  Total Ingestion:           5.1 TB

DETECTION SUMMARY:
  Active Analytics Rules: 87
  Incidents Created: 234
    Critical: 8 | High: 34 | Medium: 89 | Low: 103
  Mean Time to Detect (MTTD): 4.2 minutes
  Mean Time to Respond (MTTR): 18 minutes

TOP INCIDENT TYPES:
  Impossible Travel Detected:          42 incidents
  AWS Unauthorized API Call Pattern:   28 incidents
  Mass File Deletion in S3:            3 incidents
  Suspicious Azure AD App Registration: 12 incidents

AUTOMATION:
  Playbooks Executed: 156
  Accounts Auto-Disabled: 23
  Incidents Auto-Enriched: 198
  False Positive Rate: 12%

Du fichier au premier essai

Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.

Consulter la source et ses fichiers annexes

Ce téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.

1. Télécharger le fichier

Télécharger SKILL.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/building-cloud-siem-with-sentinel-mrx3xwdo/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.

Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.

mkdir -p '.skill-downloads/building-cloud-siem-with-sentinel-mrx3xwdo' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/building-cloud-siem-with-sentinel-mrx3xwdo/download' --output '.skill-downloads/building-cloud-siem-with-sentinel-mrx3xwdo/SKILL.md.part' && mv '.skill-downloads/building-cloud-siem-with-sentinel-mrx3xwdo/SKILL.md.part' '.skill-downloads/building-cloud-siem-with-sentinel-mrx3xwdo/SKILL.md'

2. Vérifier les prérequis

Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.

Extrait original : Prerequisites
  • Azure subscription with Microsoft Sentinel enabled on a Log Analytics workspace
  • Data connector permissions for target log sources (AWS CloudTrail, Azure Activity, GCP)
  • Logic Apps or Azure Functions for automated response playbooks
  • KQL (Kusto Query Language) proficiency for writing detection rules and hunting queries

Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.

3. Charger la skill

Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.

Claude Code
test -f '.skill-downloads/building-cloud-siem-with-sentinel-mrx3xwdo/SKILL.md' && test -s '.skill-downloads/building-cloud-siem-with-sentinel-mrx3xwdo/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/building-cloud-siem-with-sentinel' && cp -R '.skill-downloads/building-cloud-siem-with-sentinel-mrx3xwdo' '.claude/skills/building-cloud-siem-with-sentinel'

Cursor
test -f '.skill-downloads/building-cloud-siem-with-sentinel-mrx3xwdo/SKILL.md' && test -s '.skill-downloads/building-cloud-siem-with-sentinel-mrx3xwdo/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/building-cloud-siem-with-sentinel' && cp -R '.skill-downloads/building-cloud-siem-with-sentinel-mrx3xwdo' '.cursor/skills/building-cloud-siem-with-sentinel'

Codex
test -f '.skill-downloads/building-cloud-siem-with-sentinel-mrx3xwdo/SKILL.md' && test -s '.skill-downloads/building-cloud-siem-with-sentinel-mrx3xwdo/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/building-cloud-siem-with-sentinel' && cp -R '.skill-downloads/building-cloud-siem-with-sentinel-mrx3xwdo' '.agents/skills/building-cloud-siem-with-sentinel'

OpenSkills

OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.

Installation officielle d’OpenSkills
openskills install './.skill-downloads/building-cloud-siem-with-sentinel-mrx3xwdo'

openskills read 'building-cloud-siem-with-sentinel-mrx3xwdo'

La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.

Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.

openskills sync

Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.

4. Faire un premier essai

Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :

Lis .skill-downloads/building-cloud-siem-with-sentinel-mrx3xwdo/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.

Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.

Skills similaires