Azure Sentinel / Microsoft 365 Detection Rules Library — curated KQL queries for threat detection, threat hunting, and security monitoring in Microsoft cloud environments.
A standardized, production-ready library of KQL detection rules for Microsoft Sentinel and Azure Log Analytics. Every rule includes:
| Metric | Value |
|---|---|
| Current Rules | 45 detection + 10 hunting |
| Tactics Covered | 12 of 14 |
| Techniques | 43 (v0.1–v0.5) + 10 hunting queries (v0.6) |
| Target Platform | Microsoft Sentinel / Log Analytics |
| Rule Format | Standardized KQL with MITRE ATT&CK frontmatter |
// Copy any rule directly into Sentinel Log Analytics Workspace
// Example — paste and run:
// Brute Force RDP Detection
// https://github.com/rizko-d/kql-detection-library
SigninLogs
| where TimeGenerated > ago(2h)
| where ResultType in ("50053", "50057", "50126")
...
| Rule | Technique | Severity | Data Source |
|---|---|---|---|
| Brute Force RDP | T1110 | High | SigninLogs |
| Kerberoasting Detection | T1558.003 | High | SecurityEvent 4769 |
| DCSync Detection | T1003.006 | Critical | DirectoryServiceAccess |
| Rule | Technique | Severity | Data Source |
|---|---|---|---|
| PowerShell Obfuscation | T1059.001 | Medium | DeviceProcessEvents (MDE) |
| Rule | Technique | Severity | Data Source |
|---|---|---|---|
| Scheduled Task Creation | T1053.005 | Medium | SecurityEvent 4698 |
Planned expansion to ~70 rules across:
tools/rule-validator.py — zero-dependency Python validator that checks every rule for:
python tools/rule-validator.py azure-sentinel/
ARM templates and Terraform modules for deploying rules as Sentinel Analytic Rules.
Contributions welcome! See the main repository for details.
python tools/rule-validator.pyAuthor: Rizko Febri Rachmayadi
Detection Engineering · Threat Hunting · Security Operations