Detections

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

24 detections

KQL Query
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
277242
KQL Query
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
110154
KQL Query from file: NEW Real-time Anomalous Token Detection
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
50131
KQL Query from file: Attacker in the Middle Precision Detection
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
50128
KQL Query from file: Entra Cross-Tenant Activity Monitoring
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
60126
KQL Query from file: Critical Identities OAuth Grant
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
61107
KQL Query from file: Hunting malicious oauth grant by phished user
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
7099
KQL Query
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
2095
KQL Query from file: Overprivileged Admin-Consented OAuth Applications
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
7189
KQL Query from file: CloudApp Privilege OAuth Grant
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
2088
KQL Query from file: OAuth app using the OD file picker permission
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
6081
KQL Query
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
3076
KQL Query from file: OAuth App for BEC & Phishing Detection
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
7058
KQL Query from file: Detecting Copilot Studio Bot Creation
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
6053
The query looks for users or service principals that attached an uncommon credential type to application.
As part of the Nobelium campaign, the attacker added credentials to already existing applications and used the application permissions to extract users' mails.
See How to: Use the portal to create an Microsoft Entra ID application and service principal that can access resources.
Reference - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
0046
Use this query to review OAuth applications whose behaviour has changed as compared to a prior baseline period. The following query returns OAuth Applications accessing user mail via Graph that did not do so in the preceding week.
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
0045
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
Credentials were added to an application by UserA, after the application was granted admin consent rights by UserB
The Nobelium activity group has been observed adding credentials (x509 keys or password credentials) for one or more legitimate OAuth Applications or Service Principals, usually with existing Mail.Read or Mail.ReadWrite permissions, which grants the ability to read mail content from Exchange Online via Microsoft Graph or Outlook REST. Examples include mail archiving applications.
See Customer Guidance on Recent Nation-State Cyber Attacks for more on the Nobelium campaign (formerly known as Solorigate).
See Grant tenant-wide admin consent to an application for how to add admin consent to an application.
More Nobelium-related queries can be found listed under the See also section of this document.
References:
https://msrc-blog.microsoft.com/2020/12/13/customer-guidance-on-recent-nation-state-cyber-attacks/
https://docs.microsoft.com/azure/active-directory/manage-apps/grant-admin-consent
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
6037
This will show Active Directory Security Token Service (STS) refresh token modifications by Service Principals and Applications other than DirectorySync. Refresh tokens are used to validate identification and obtain access tokens. This event is most often generated when legitimate administrators troubleshoot frequent Entra ID user sign-ins but may also be generated as a result of malicious token extensions. Confirm that the activity is related to an administrator legitimately modifying STS refresh tokens and check the new token validation time period for high values.
Query insprired by Azure Sentinel detection https://github.com/Azure/Azure-Sentinel/blob/master/Detections/AuditLogs/StsRefreshTokenModification.yaml
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
0036
As described in previous guidance, Nobelium may re-purpose legitimate existing OAuth Applications in the environment to their own ends. However, malicious activity patterns may be discernable from legitimate ones.
The following query returns OAuth Applications that access mail both directly and via Graph, allowing review of whether such dual access methods follow expected use patterns.
Reference - https://msrc-blog.microsoft.com/2020/12/13/customer-guidance-on-recent-nation-state-cyber-attacks/
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
1035
This query helps you review all OAuth applications accessing user mail via Graph. It could return a significant number of results depending on how many applications are deployed in the environment.
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
0034
Page 1 of 2