Detections

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

215 detections

This rule detects suspicious user-agent strings in Microsoft Graph activity logs that are commonly associated with reconnaissance and attack tools targeting Azure AD and Microsoft 365 environments. These tools include BloodHound, ROADtools, AADInternals, and various other utilities used for enumeration, credential spraying, and other malicious activities.
avatar
Information hacker@Informationhacker
avatar
Detections.ai Community
9 months ago
350413
Detects Okta MFA device enrollment or life cycle changes that occur shortly after a successful authentication or password reset for the same user. This pattern is a strong indicator of a post-vishing account takeover, as seen in ShinyHunters campaigns.
avatar
Tim Peck@timpeck
avatar
SecOps Signals
9 months ago
191353
Detects when a new Multi-Factor Authentication (MFA) method is registered shortly after a successful sign-in from an unfamiliar or risky location. This pattern is a strong indicator of an Adversary-in-the-Middle (AiTM) attack where the threat actor, having bypassed MFA to gain initial access, immediately adds their own authentication method to establish persistence on the account.
avatar
nomit vyas@xoxo
avatar
Detections.ai Community
9 months ago
60156
This rule detects new device registrations in Azure Active Directory (AAD) that originate from an IP address not previously associated with the user's account within the last 29 days. It filters out registrations from corporate IP ranges and common mobile operating systems (iOS, Android) to reduce noise. The rule categorizes the risk level of the IP address based on historical sign-in counts, focusing on 'High Risk - New IP' events. It then enriches these events with additional sign-in details like device name, risk level during sign-in, country, and city.
avatar
Benjamin Zulliger@benscha
avatar
Detections.ai Community
1 year ago
1649842
Detects the registration of a new device or MFA authentication method in Microsoft Entra ID from an IP address geolocated to Morocco. This is a persistence tactic used by the Jingle Thief group (also tracked as Atlas Lion and STORM-0539).
avatar
Duo Tech@duotech
avatar
Detections.ai Community
1 year ago
80143
Detects the registration of a new device or MFA authentication method in Microsoft Entra ID from an IP address geolocated to Morocco or associated with specific Moroccan ASNs. This is a persistence tactic used by the Jingle Thief group (also tracked as Atlas Lion and STORM-0539).
avatar
Duo Tech@duotech
avatar
Detections.ai Community
1 year ago
1075
Detects the creation of suspicious files associated with Proof-of-Concept (PoC) exploits targeting the Windows Print Spooler Remote Code Execution Vulnerabilities, specifically CVE-2021-34527 (PrinterNightmare) and CVE-2021-1675. The rule looks for file creations within the ':\Windows\System32\spool\drivers\x64\' directory, which is a known location for files dropped by these exploits.
avatar
SigmaHQ Detections@sigmaHQ
avatar
SigmaHQ
1 year ago
0043
Monitors for successful device registration or join events in Azure AD where Multi-Factor Authentication (MFA) was not performed. This could indicate an adversary bypassing MFA to gain persistent access or escalate privileges by registering a new device.
avatar
SigmaHQ Detections@sigmaHQ
avatar
SigmaHQ
1 year ago
1034
Detects a user initiating an OAuth flow with the Microsoft Authentication Broker (MAB) client to the Device Registration Service (DRS) from multiple IP addresses within a short time window. This pattern is indicative of an adversary using a phished authorization code to begin the process of registering a malicious device in the target tenant, a key step for establishing persistence. The rule specifically looks for sessions that involve at least one browser-based request, which is common in the initial phishing stage.
Alberto Espejo@AEspejo2
avatar
Detections.ai Community
1 year ago
52160
Identifies Entra ID sign-in events where a user authenticates using a refresh token issued to the Microsoft Authentication Broker (MAB) client, targeting the Device Registration Service (DRS) with the "adrs_access" OAuth scope. This pattern is a strong indicator of an adversary using a stolen refresh token to initiate a malicious device registration flow, often with tools like ROADtx, as a step towards establishing persistence.
Alberto Espejo@AEspejo2
avatar
Detections.ai Community
1 year ago
63134
This rule detects successful device registrations to the 'Device Registration Service' in Azure Entra. It specifically looks for sign-in events where the ResourceDisplayName is 'Device Registration Service', the ErrorCode is '0' (indicating success), and the ConditionalAccessStatus is not '1' (which typically means that conditional access did not block the authentication flow for device registration).

The rule is pivotal for hunting devices registered for persistence, post-successful phishing campaign execution, where >= 1 accounts were compromised.
avatar
Aamir Muhammad@Aamir
avatar
Detections.ai Community
1 year ago
112212
This rule detects suspicious device registration activity in Azure Active Directory (now Entra ID). Specifically, it looks for a sequence of two events: first, a 'Device Registration Service' adding a device with 'CloudAccountEnabled' set to true and a specific Windows build number (10.0.19041.928) in the user agent, followed by an attempt to add registered users to the device, referencing 'urn:ms-drs:enterpriseregistration.windows.net'. This sequence could indicate an adversary attempting to register a new device to bypass conditional access policies or gain persistent access.
avatar
R W@shiftyroot
avatar
Detections.ai Community
1 year ago
2045
Detects a non-interactive sign-in using a refresh token for the Microsoft Authentication Broker client, targeting the Device Registration Service (DRS) with the 'adrs_access' scope. This specific combination of attributes is highly indicative of an adversary using tools like ROADtools to register a malicious device in the tenant following a successful OAuth phishing attack.
avatar
Kaung Khant Ko@kaungkhantko
avatar
Detections.ai Community
1 year ago
94131
Detects the successful registration of a new FIDO2/WebAuthn security key for a user account. This activity can be legitimate, but attackers who have compromised an account may register their own FIDO key to maintain persistent access. This activity should be correlated with other suspicious events, such as a recent password reset or login from an unusual location.
avatar
Jason Nelson@Jason
avatar
Detections.ai Community
1 year ago
2336
Detects Microsoft Entra ID sign-in events where a user principal authenticates using a refresh token issued to the Microsoft Authentication Broker (MAB) client, targeting the Device Registration Service (DRS) with the "adrs_access" OAuth scope. This pattern may indicate token-based access to DRS following an initial authorization code phishing or as a precursor to malicious device registration using tools like ROADtx.
avatar
test User@testuser007
avatar
Detections.ai Community
1 year ago
8179
Detects a sequence of events indicative of a new device being registered using a refresh token, a TTP associated with the ROADtools framework following an OAuth phishing attack. This sequence involves the Device Registration Service adding a device with a specific hardcoded OS version, followed by user and owner assignments, all within a short timeframe and sharing the same correlation ID.
avatar
Aaron Mog@AaronMogS2S
avatar
Detections.ai Community
1 year ago
81165
KQL Query
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
90154
KQL Query
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
150138
KQL Query from file: Detect Privilege Admin under AiTM attack
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
70127
KQL Query from file: Detecting GOLDEN SAML Attack
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
5093
KQL Query from file: Entra Passkey Addition Threat Detection
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
7092
Page 9 of 11