1---2name: microsoft-sentinel3description: Use when implementing Microsoft Sentinel as SIEM/SOAR, configuring data connectors, building analytics rules, managing incidents, automating response with playbooks, or studying for SC-500 (Cloud and AI Security Engineer) or AZ-500.4---56# Microsoft Sentinel78## When to Use9- Implementing cloud-native SIEM for threat detection in Azure environments10- Connecting data sources via Sentinel data connectors11- Writing KQL analytics rules to detect security threats12- Investigating and managing security incidents13- Automating threat response with Logic App playbooks14- Preparing for SC-500 (Cloud and AI Security Engineer) or AZ-500 exam1516## Core Jobs1718### 1. Architecture: Sentinel on Log Analytics19- **Microsoft Sentinel** = cloud-native SIEM/SOAR built on **Log Analytics workspace**20- All data ingested into Sentinel is stored as **Log Analytics tables** (queryable with KQL)21- Key tables: `SecurityEvent`, `SigninLogs`, `AzureActivity`, `CommonSecurityLog`, `Syslog`, `OfficeActivity`22- Workspace design: dedicate a Log Analytics workspace to Sentinel (separate from monitoring workspace)23- Multi-workspace Sentinel: query across workspaces with workspace manager2425### 2. Data Connectors26| Connector Type | Examples | Cost |27|----------------|---------|------|28| **Azure-native** | Entra ID, Azure Activity, Defender for Cloud, Microsoft 365 | Free ingestion |29| **Microsoft 365 Defender** | Defender for Endpoint, Office 365, Teams | Free ingestion |30| **Partner connectors** | Palo Alto, Cisco, Fortinet (via CEF/Syslog) | Log Analytics ingestion cost |31| **REST API** | Custom applications, ITSM, threat intelligence | Log Analytics ingestion cost |32| **Syslog / CEF** | Linux syslog, network devices | Log Analytics ingestion cost |3334- **CEF (Common Event Format)**: standardized syslog format; Sentinel parses into structured fields35- Connector setup: enable connector → configure source → data flows into workspace tables3637### 3. Analytics Rules38| Rule Type | How it Works | Customizable |39|-----------|--------------|-------------|40| **Scheduled** | KQL query runs on schedule (every 5 min to every 24h) | Yes (KQL, threshold, grouping) |41| **Near-real-time (NRT)** | KQL query runs every ~1 minute; low latency | Yes |42| **Microsoft Security** | Forward alerts from Defender products as incidents | Partially (filter by severity) |43| **Fusion** | ML correlation of multi-stage attack signals | No (always-enabled ML) |44| **Anomaly** | ML baseline behavior; detect deviations | Partially (threshold tuning) |4546- Scheduled rule anatomy: KQL query → alert grouping → incident creation → tactics/techniques mapping47- MITRE ATT&CK mapping: tag rules with tactics (Initial Access, Lateral Movement) and techniques (T1078)48- **Alert grouping**: group multiple alerts into one incident by entity (account, IP, host)4950### 4. Incidents51- **Incident** = auto-created from analytics rule alerts (one or more alerts grouped)52- Incident lifecycle: New → Active → Closed (True Positive / False Positive / Benign)53- **Investigation graph**: visual entity relationship map; pivot from incident to related entities54- **Entity pages**: timeline of activity for specific user, IP, or host55- Triage workflow:56 1. Review incident details (severity, entities, alerts, evidence)57 2. Run investigation graph58 3. Check related incidents and bookmarks59 4. Assign to analyst; add comments60 5. Close with classification6162### 5. Workbooks63- Visual dashboards built on Sentinel data (Log Analytics tables)64- Built-in workbooks: Azure AD Sign-in logs, Azure Activity, Defender for Cloud alerts65- **MITRE ATT&CK workbook**: visualize coverage of analytics rules across tactics and techniques66- Custom workbooks: combine KQL queries with charts, grids, and parameters67- Use for: executive security dashboard, SOC analyst daily overview, compliance reporting6869### 6. Playbooks (Logic Apps)70- **Playbook** = Logic App triggered by Sentinel alert or incident; automated response71- Common automations:72 - Block user in Entra ID (disable account)73 - Isolate VM from network (Defender for Endpoint response action)74 - Create ITSM ticket (ServiceNow, Jira)75 - Send Teams/email notification to SOC76 - Enrich incident with threat intelligence (VirusTotal lookup)77- Trigger options: **Incident trigger** (on incident creation) or **Alert trigger** (on each alert)78- Use Incident trigger when you need access to all grouped alerts; Alert trigger for per-alert automation7980### 7. UEBA (User Entity Behavior Analytics)81- Establishes behavioral baseline per user and host82- Detects anomalies: unusual sign-in location, abnormal data access volume, atypical process execution83- UEBA insights appear on Entity pages and in Investigation graph84- Enriches incidents with behavior score (anomaly level)85- Requires enabling UEBA in Sentinel settings; syncs Entra ID user data8687## Key Concepts88- **Sentinel** — cloud-native SIEM/SOAR; built on Log Analytics; all data in KQL-queryable tables89- **Data connector** — integrates log source into Sentinel workspace tables90- **Analytics rule** — KQL query that fires alerts and creates incidents when threat pattern matches91- **Incident** — grouped alerts with investigation context; assigned to analyst; closed with classification92- **Playbook** — Logic App automated response; triggered by alert or incident93- **Fusion** — always-enabled ML rule correlating multi-stage attack signals across products94- **MITRE ATT&CK** — threat framework; map rules to tactics/techniques to measure detection coverage9596## Checklist97- [ ] Dedicated Log Analytics workspace created for Sentinel (separate from operational monitoring)?98- [ ] Azure-native connectors enabled (Entra ID, Azure Activity, Defender for Cloud) as baseline?99- [ ] Analytics rules created for high-priority scenarios (impossible travel, mass download, privilege escalation)?100- [ ] MITRE ATT&CK workbook reviewed to identify detection coverage gaps?101- [ ] Incident triage workflow defined (severity SLA, assignment process, closure classification)?102- [ ] Playbooks created for top 3 incident types (user block, VM isolation, ticket creation)?103- [ ] UEBA enabled and behavioral baselines established?104105## Output Format106- 🔴 **Critical** — no analytics rules enabled (Sentinel ingests data but generates no alerts)107- 🔴 **Critical** — Fusion rule disabled (only way to detect ML-correlated multi-stage attacks)108- 🟡 **Warning** — too many rules with low threshold generating alert fatigue (tune alert grouping)109- 🟡 **Warning** — no playbook for high-severity incidents (manual response only; slow reaction time)110- 🟢 **Suggestion** — map all analytics rules to MITRE ATT&CK; use MITRE workbook to find coverage gaps111112## Exam Tips113- **Sentinel is built on Log Analytics workspace** — all ingested data stored as Log Analytics tables; KQL is the query language throughout114- **Analytics rules generate alerts → incidents** — tune grouping window and entity grouping to reduce alert fatigue while maintaining fidelity115- **Playbooks = Logic Apps triggered by Sentinel** — automate: block user in Entra ID, isolate VM via Defender API, create ITSM ticket116- **Azure-native connectors are free; 3rd-party connectors incur Log Analytics ingestion cost** — plan data volume carefully for cost management117- **Fusion rule = ML-based multi-stage attack detection** — cannot be customized; always enabled; correlates low-severity signals into high-confidence incidents118- **MITRE ATT&CK mapping in analytics rules** — tracks detection coverage across tactics and techniques; use MITRE workbook to visualize gaps