ROUTETOROOT // SOC ANALYST PORTFOLIO
← BACK TO PORTFOLIO   |   GITHUB   |   CONTACT
LAB 27 // MICROSOFT SENTINEL

Cloud SIEM Detection
with Microsoft Sentinel

AZURE · LOG ANALYTICS · KQL · DEFENDER XDR · MITRE ATT&CK T1110
MICROSOFT SENTINEL KQL AZURE MONITOR AGENT INCIDENT CONFIRMED MEDIUM SEVERITY

Lab Objective

Deploy Microsoft Sentinel as a cloud-native SIEM in Azure, configure a Windows virtual machine to forward Security Events via the Azure Monitor Agent, write a custom KQL detection rule for failed login attempts (Event ID 4625), simulate a brute force attack, and investigate the resulting incident in Microsoft Defender XDR.

This lab demonstrates the complete cloud SOC pipeline — from log ingestion and detection engineering to incident triage — using the same toolstack found in enterprise security operations centers.

✓ LAB OUTCOME

Microsoft Sentinel successfully detected 30 failed login attempts from IP 64.183.42.233 targeting RTR-WinVM. 7 incidents were generated in the Defender XDR incident queue. Full detection chain validated end-to-end.

Lab Environment

SIEM PLATFORM
Microsoft Sentinel
PORTAL
Microsoft Defender XDR
LOG WORKSPACE
RTR-LAW (West US 2)
VIRTUAL MACHINE
RTR-WinVM
OS
Windows Server 2025 Datacenter
VM REGION
East US
DATA CONNECTOR
Windows Security Events via AMA
DCR
rtr-dcr-windowsevents
RESOURCE GROUP
rtr-sentinel-lab
SUBSCRIPTION
Azure Subscription 1 (Pay-As-You-Go)

The data pipeline flows from the Windows VM through the Azure Monitor Agent (AMA), governed by a Data Collection Rule (DCR), into the Log Analytics Workspace, and then into Microsoft Sentinel for detection and alerting.

🖥️
RTR-WinVM
Windows Server 2025
📡
AMA AGENT
Azure Monitor Agent
📋
DCR
Data Collection Rule
🗄️
RTR-LAW
Log Analytics Workspace
🛡️
SENTINEL
Detection & Alerting

KQL Detection Rule

A scheduled query analytic rule was created in Microsoft Sentinel to detect Windows brute force login attempts by monitoring Event ID 4625 (Failed Logon). The rule runs every 5 minutes and looks back over the last hour, alerting when 5 or more failed attempts are detected from a single account/IP combination.

RULE NAME
Failed Login Detection — Event ID 4625
RULE TYPE
Scheduled Query Rule
FREQUENCY
Every 5 minutes
LOOKBACK
Last 1 hour
THRESHOLD
≥ 5 failed attempts
SEVERITY
Medium
MITRE ATT&CK
T1110 — Brute Force   Credential Access (TA0006)
// Detect failed Windows login attempts (Event ID 4625) SecurityEvent | where EventID == 4625 | where TimeGenerated > ago(1h) | summarize FailedAttempts = count() by Account, Computer, IpAddress | where FailedAttempts >= 5
Microsoft Sentinel Analytics — Rule Active (1 Active Rule, Medium Severity)
Microsoft Sentinel Analytics showing 1 active rule — Failed Login Detection Event ID 4625

Log Analytics Verification

Before creating the detection rule, log ingestion was verified by querying the SecurityEvent table directly in Log Analytics. The query returned 10 events from RTR-WinVM timestamped within the current session, confirming the data pipeline was functioning correctly.

// Verify SecurityEvent ingestion from RTR-WinVM SecurityEvent | take 10

Results confirmed events from WORKGROUP\RTR-WinVM$ and NT AUTHORITY\SYSTEM with timestamps matching the current session — proving end-to-end connectivity from the VM through AMA, DCR, and into the Log Analytics workspace.

Brute Force Simulation

A brute force login simulation was performed against RTR-WinVM via RDP to generate real Event ID 4625 telemetry. The simulation used intentionally invalid credentials to produce failed logon events without compromising any actual accounts.

PARAMETER VALUE
Target MachineRTR-WinVM
Target IP20.127.82.236
ProtocolRDP (Port 3389)
Simulated Username.\fakeuser
Simulated Password[intentionally incorrect]
Attempts Made10 manual RDP attempts
Total Attempts Detected30 (within 1-hour lookback window)
Event ID Generated4625 — An account failed to log on

Incident Analysis

The Sentinel analytic rule triggered successfully. Multiple incidents were generated in the Microsoft Defender XDR incident queue within minutes of the simulation.

INCIDENT ID
7 (latest)
TOTAL INCIDENTS
7 generated
ALERT NAME
Failed Login Detection — Event ID 4625
STATUS
Active
SEVERITY
MEDIUM
ACTIVE ALERTS
1/1
Incident ID 5 — Attack Story view showing first activity, last activity, and alert details
Incident ID 5 Attack Story view
Incident ID 7 — Alerts tab showing Failed Login Detection alert (Medium severity)
Incident ID 7 Alerts tab

Alert Query Results — IOCs Identified

FIELD VALUE NOTES
Account .\fakeuser Local non-existent account — enumeration attempt
Computer RTR-WinVM Target machine
Source IP 64.183.42.233 External IP — attacker origin
Failed Attempts 30 Well above threshold of 5 — confirmed brute force pattern
Event ID 4625 Windows Security: An account failed to log on
Alert details — fakeuser, RTR-WinVM, IP 64.183.42.233, 30 failed attempts confirmed
Alert details showing fakeuser, RTR-WinVM, 30 failed attempts

Incident Timeline

MAY 9, 2026 — 3:06 PM UTC
First failed login attempt recorded on RTR-WinVM (Event ID 4625)
MAY 9, 2026 — 3:16 PM UTC
Sentinel analytic rule runs — alert triggered for Incident ID 7
MAY 9, 2026 — 4:06 PM UTC
Last failed login attempt recorded — attack window closes
MAY 9, 2026 — 4:11 PM UTC
Incident ID 5 created in Microsoft Defender XDR incident queue
MAY 9, 2026 — 4:21 PM UTC
Incident ID 7 created — 7 total incidents in queue, all confirmed Medium severity
MAY 9, 2026 — 4:34 PM UTC
Alert details reviewed — 30 failed attempts, fakeuser, IP 64.183.42.233 confirmed as IOCs

Findings & MITRE Mapping

The 30 failed login attempts from a single external IP targeting a non-existent local account (fakeuser) on RTR-WinVM is consistent with an automated credential brute force attack pattern. Key indicators:

MITRE FIELD VALUE
TacticCredential Access (TA0006)
TechniqueBrute Force (T1110)
Sub-techniquePassword Guessing (T1110.001)
ObjectiveGain unauthorized RDP access to RTR-WinVM

Containment & Recommendations

The following containment actions would be taken in a production environment:

Key Takeaways

Technologies & Tools

SIEM
Microsoft Sentinel
SECURITY PORTAL
Microsoft Defender XDR
QUERY LANGUAGE
KQL (Kusto Query Language)
LOG SOURCE
Windows Security Events
DATA PIPELINE
Azure Monitor Agent + DCR
VM PLATFORM
Azure Virtual Machines
ATTACK SIMULATION
Manual RDP brute force via mstsc
MITRE FRAMEWORK
ATT&CK v14 — T1110 Brute Force