Germanyf-bader/DefenderAndSentinelQueries
Repository with Sentinel Analytics Rules, Hunting Queries and helpful external data sources.
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#1 Repository of the week
Microsoft Sentinel hunting queries and Analytics rules

Initially the queries and Analytics Rules in this repository were related to the Azure Attack Paths blog post. Over time, I also add new Analytics Rules that are related to other blog posts if mine.
All queries are ready to be used in Microsoft Sentinel.
HuntingQueries
- Azure VM Run Command or Custom Script execution
- Changes to Azure Lighthouse delegation
- Grant high privilege Azure AD role to identity
- Grant high privilege Microsoft Graph permissions
AnalyticsRules
- Azure VM Run Command or Custom Script execution detected
- Dangerous API permission consented
- High Privileged Role assigned
- A new Lighthouse service provider was added
- Owner added to high privileged application
- Password reset on high privileged user
- Secret added to high privileged application
External data sources
Some external data sources need additional modification or are not available through the externaldata function directly. In that case I will add them here.
| Source | Description | Modification | Reason |
|---|---|---|---|
https://mask-api.icloud.com/egress-ip-ranges.csv | Current list of all IP addresses of the iCloud Private Relay service. https://developer.apple.com/support/prepare-your-network-for-icloud-private-relay/ | Added column to distiguish between IPv4 and IPv6 | externaldata cannot fetch the CSV from Apple servers |
https://www.gstatic.com/g1vpn/geofeed | Current list of all IP addresses of the Google One VPN service. https://one.google.com/about/vpn/howitworks | Added column to distiguish between IPv4 and IPv6 | externaldata cannot fetch the CSV from Google server |
https://learn.microsoft.com/en-us/windows-hardware/drivers/ifs/allocated-altitudes | Microsoft File systems driver allocated filter altitudes | Convert from markdown to csv |
Logic Apps
Along some of my blog posts I release Logic Apps related to Microsoft Sentinel. Those
| Filename | Blogpost |
|---|---|
| SyncDfCAlertsWithSentinelIncidents-SMI.arm.json | Sync Defender for Cloud Alerts with Sentinel Incidents |
| SyncDfCAlertsWithSentinelIncidents-UMI.arm.json | Sync Defender for Cloud Alerts with Sentinel Incidents |
| AutoCloseAppleiCloudPrivateRelayIncidents.arm.json | Anonymous IP address involving Apple iCloud Private Relay |
| Template.arm.json | Empty Logic App template containing all things required for a Sentinel Incident Playbook |
Similar Projects
Discover other similar projects and AI models.
KQL Queries. Defender For Endpoint and Azure Sentinel Hunting and Detection Queries in KQL. Out of the box KQL queries for: Advanced Hunting, Custom Detection, Analytics Rules & Hunting Rules.
A repository of KQL queries focused on threat hunting and threat detecting for Microsoft Sentinel & Microsoft XDR (Former Microsoft 365 Defender).
In this repository you may find KQL (Kusto Query Language) queries and Watchlist schemes for data sources related to Microsoft Sentinel (a SIEM tool).
KQL Queries. Microsoft Defender, Microsoft Sentinel
KQL Queries. Microsoft Defender, Microsoft Sentinel
Production-ready KQL queries for Microsoft Defender XDR and Microsoft Sentinel. Focused on Threat Hunting, Detection Engineering, and MITRE ATT&CK mapping.
Microsoft 365 Advanced Hunting Queries with hotlinks that plug the query right into your tenant.