Detections

Explore public detection logic contributed by the community across SIEM and rule languages.

3,000 detections

'Detects a Service Principal being assigned an app role that has sensitive access such as Mail.Read.
A threat actor who compromises a Service Principal may assign it an app role to allow it to access sensitive data, or to perform other actions.
Ensure that any assignment to a Service Principal is valid and appropriate.
Ref: https://docs.microsoft.com/azure/active-directory/fundamentals/security-operations-applications#application-granted-highly-privileged-permissions'
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
0049
This query helps hunting for Inbox rule changes which forward-redirect email
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
3048
'This query combines different Storage alerts with CommonSecurityLogs and AuditLogs helping analysts investigate any possible storage related attacks faster
thus reducing Mean Time To Respond'
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
1048
This query helps in reviewing top policies for admin overrides (Allow/Block)
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
0027
'Query for new sign-ins from stale/inactive accounts. UEBA filters based on ActivityInsights. Results for accounts created in the last 7 days are filtered out.'
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
8048
Author: alex verboon @alexverboon.
Blogpost: https://www.verboon.info/2020/09/hunting-for-local-group-membership-changes.
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
7045
'Identifies accounts that have been added to a PIM managed privileged group'
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
2045
This query visualises the total amount of emails subject to an admin policy with action of allow, independent of action taken, summarizing the data by type of override
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
0025
'This query looks for unfamiliar Sign-in's thats not seen recently for the given user
with azure portal login attempts and audit logs to help detect and reduce the analysis timeline for defenders'
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
1044
'This hunting query will help detect successful sign-ins from devices that are marked non-compliant along with bulk download activity.
Attackers may attempt to get a list of accounts, groups, registration details within an environment which could help in follow-on behavior.
Best practice is to block sign ins from non-complaint devices, however if allowed monitor these events to ensure they do not lead to other risky activity.
Reference: https://docs.microsoft.com/azure/active-directory/fundamentals/security-operations-devices#non-compliant-device-sign-in'
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
0044
'Looks for multiple users that had their admin role removed by a single user within a certain period.
The default threshold is 5 removals, this can be edited in the query.'
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
2044
Listing Email Remediation Actions performed via Explorer in Defender for Office 365
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
1043
'Any Alerts that fired related to a given IpAddress during the range of +6h and -3d'
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
2042
This query will find applications that have been granted Mail.Read or Mail.ReadWrite permissions in which the corresponding user recently consented to. It can help identify applications that have been abused to gain access to user email.
The actor, Nobelium, was observed modifying existing tenant application permissions to allow them to read user email through the Microsoft Graph API. See Customer Guidance on Recent Nation-State Cyber Attacks.
This query is insprired by an Azure Sentinel detection.
References:
https://msrc-blog.microsoft.com/2020/12/13/customer-guidance-on-recent-nation-state-cyber-attacks/
https://github.com/Azure/Azure-Sentinel/blob/master/Detections/AuditLogs/MailPermissionsAddedToApplication.yaml
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
2042
This query looks for users accessing multiple other users' mailboxes, or accessing multiple folders in another user's mailbox.
This query is inspired by an Azure Sentinel detection.
Reference - https://github.com/Azure/Azure-Sentinel/blob/master/Hunting%20Queries/OfficeActivity/AnomolousUserAccessingOtherUsersMailbox.yaml
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
0042
'Compares the current day to last 14 days of audits to identify new audit activities. Useful for tracking malicious activity related to user/group additions/removals by Azure Apps and automated approvals.'
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
2042
'This query look for accounts that have not been successfully logged into recently who then add or update an MFA method before logging in.
Threat actors may look to re-activate dormant accounts and use them for access by adding MFA methods in the hope that changes to such dormant accounts may go un-noticed. This query uses the Microsoft Sentinel UEBA features.
Ref: [LINK TO BLOG]'
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
0042
This query will find when a new credential is added to an application or service principal.
The Nobelium activity group was able to gain sufficient access to add credentials to existing applications with mail read permissions. They used that access to exfiltrate email.
See Customer Guidance on Recent Nation-State Cyber Attacks for more on the Nobelium campaign (formerly known as Solorigate).
Additional information on OAuth Credential Grants can be found in RFC 6749 Section 4.4 or Microsoft Entra ID audit activity reference.
For further information on AuditLogs please see Microsoft Entra ID audit activity reference.
This query was inspired by an Azure Sentinel detection.
References:
https://msrc-blog.microsoft.com/2020/12/13/customer-guidance-on-recent-nation-state-cyber-attacks/
https://docs.microsoft.com/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow
https://docs.microsoft.com/azure/active-directory/reports-monitoring/reference-audit-activities
https://github.com/Azure/Azure-Sentinel/blob/master/Detections/AuditLogs/NewAppOrServicePrincipalCredential.yaml
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
1041
' The query below identifies creation of unusual identity by the Europium actor to mimic Microsoft Exchange Health Manager Service account using Exchange PowerShell commands
Reference: https://www.microsoft.com/security/blog/2022/09/08/microsoft-investigates-iranian-attacks-against-the-albanian-government/'
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
3042
This query shows all modifications to highly sensitive active directory groups (also known as Tier 0). An example of these groups include Domain Admins, Schema Admins and Enterprise Admins.
More info can be found here:
https://docs.microsoft.com/security/compass/privileged-access-access-model#evolution-from-the-legacy-ad-tier-model
https://docs.microsoft.com/windows-server/identity/ad-ds/plan/security-best-practices/appendix-c--protected-accounts-and-groups-in-active-directory
This advanced hunting query requires Defender for Identity be deployed due to it's reliance on the IdentityDirectoryEvents table.
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
5041
This query looks for Entra ID group adds identified by Microsoft Defender for Cloud Apps. It will require an corresponding app connector in Microsoft Defender for Cloud Apps.
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
2039
Page 118 of 143