Detections

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

367 detections

KQL Query
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
3059
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 when a recently created Group was added to a privileged built in domain local group or global group such as the Enterprise Admins, Cert Publishers or DnsAdmins. Be sure to verify this is an expected addition.
References: For AD SID mappings - https://docs.microsoft.com/windows/security/identity-protection/access-control/active-directory-security-groups.'
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
2046
'Identifies accounts that have been added to a PIM managed privileged group'
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
2045
'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 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
One of the indicators of compromise for the Nobelium (formerly Solorigate) campaign was that unexpected service principals have been added to privileged roles. This query looks for service principals that have been added to any role.
See Understanding "Solorigate"'s Identity IOCs - for Identity Vendors and their customers..
Reference - https://techcommunity.microsoft.com/t5/azure-active-directory-identity/understanding-quot-solorigate-quot-s-identity-iocs-for-identity/ba-p/2007610
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
0029
'Identifies when a user account was created and then added to the builtin Administrators group in the same day.
This should be monitored closely and all additions reviewed.'
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
3029
Look for adding a user to Administrators in remote desktop users via PowerShell.
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
0027
'Identifies when a user account has been added to a privileged built in domain local group or global group such as the Enterprise Admins, Cert Publishers or DnsAdmins. Be sure to verify this is an expected addition.'
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
0027
'Identifies accounts that are added to a privileged group and then quickly removed, which could be a sign of compromise.'
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
3024
This query looks for Entra ID role 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
0020
Find accounts that have been added/removed from groups in AD.
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
0018
Detects when users are added to privileged Active Directory groups. This is a critical event as it can lead to privilege escalation and unauthorized access to sensitive resources within an Active Directory environment. The rule specifically looks for Windows Event Code 4728, which indicates a member was added to a security-enabled global group, security-enabled local group, or security-enabled universal group.
Splunk Security@SplunkSecurity
avatar
Splunk Security Content
1 year ago
0035
This rule detects when a user is added to an administrative role within Office 365. While adding users to administrative roles is not inherently malicious, it is a sensitive action that warrants validation due to the elevated privileges granted. The rule specifically looks for the 'Add member to role.' event type within Office 365 and requires the role to be present in a predefined watchlist of sensitive roles.
avatar
Google SecOps@GoogleSecOps
avatar
Google SecOps Detection Rules
1 year ago
2036
Detects the creation or modification of a Windows domain group named "ESX Admins". This activity is suspicious because VMware ESXi hypervisors joined to an Active Directory domain grant full administrative access by default to members of a group with this specific name. This could indicate a potential exploitation attempt of CVE-2024-37085, which allows an attacker to elevate privileges on a domain-joined ESXi hypervisor.
avatar
SigmaHQ Detections@sigmaHQ
avatar
SigmaHQ
1 year ago
0026
The analytic identifies instances where a service principal in Azure Active Directory assigns app roles without standard admin consent. This activity is detected by analyzing Entra ID logs from the `azure_monitor_aad` data source, specifically looking for "Add app role assignment to service principal" or "Add member to role*" operations initiated by a service principal. This detection is crucial for identifying potential bypasses of administrative consent processes, which could lead to unauthorized privilege grants. If malicious, this could allow attackers to exploit automation to assign sensitive permissions without proper oversight, compromising the security of the Azure AD environment.
Splunk Security@SplunkSecurity
avatar
Splunk Security Content
1 year ago
1083
The analytic detects the creation of new accounts elevated to local administrators. It uses Windows event logs, specifically EventCode 4720 (user account creation) and EventCode 4732 (user added to Administrators group). This activity is significant as it indicates potential unauthorized privilege escalation, which is critical for SOC monitoring. If confirmed malicious, this could allow attackers to gain administrative access, leading to unauthorized data access, system modifications, and disruption of services. Immediate investigation is required to mitigate risks and prevent further unauthorized actions.
Splunk Security@SplunkSecurity
avatar
Splunk Security Content
1 year ago
1072
The following analytic detects the assignment of privileged Azure Active Directory roles to a user. It leverages Azure AD audit logs, specifically monitoring the "Add member to role" operation. This activity is significant as adversaries may assign privileged roles to compromised accounts to maintain persistence within the Azure AD environment. If confirmed malicious, this could allow attackers to escalate privileges, access sensitive information, and maintain long-term control over the Azure AD infrastructure.
Splunk Security@SplunkSecurity
avatar
Splunk Security Content
1 year ago
0057
The analytic detects the assignment of an Azure AD Privileged Identity Management (PIM) role. It leverages Azure Active Directory events to identify when a user is added as an eligible member to a PIM role. This activity is significant because PIM roles grant elevated privileges, and their assignment should be closely monitored to prevent unauthorized access. If confirmed malicious, an attacker could exploit this to gain privileged access, potentially leading to unauthorized actions, data breaches, or further compromise of the environment.
Splunk Security@SplunkSecurity
avatar
Splunk Security Content
1 year ago
0056
Page 16 of 18