Detections

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

837 detections

Microsoft has announced new restrictions on email sending for organizations that use the default onmicrosoft domains.
A throttling system will be enforced, limiting external email delivery to a maximum of 100 recipients per organization every 24 hours. To summarize:

1. Microsoft limits onmicrosoft.com domains to 100 external emails daily.
2. Targets cybercriminals exploiting new tenants, protecting shared domain reputation.
3. Organizations must purchase custom domains, rollout phases through June 2026.

The following KQL Query shows the number of distinct external domains where your onmicosoft.com domain, has been sending emails during a day. Could be that you don't detect 100 domains x day but in any case, I would recommend to start to purchase / configure your own domains instead of use the mentioned one.
avatar
Sergio Albea@Sergio_Albea
avatar
01 | 🇨🇭 Swiss Cyber Hunters
1 year ago
2045
In May 2025, a campaign started using the Microsoft Exchange Direct Send feature to send phishing mails to organizations. This feature is designed for use by printers, scanners, cloud services and other devices that need to send messages on behalf of the company. This detection rule tries to detect the malicious mails being send via Direct Send using a couple of indicators:

- Sender email is the same as Recipient email
- SPF and DMARC both failed
- Mail is not comming in via an Exchange connector
- The sender IP address country is not a country that the user is known to login from

FYI, if you remove the country check (last line of the query), you can use the query to identify if there are legitimate mails as well. If not, you can disable the Direct Send feature in Exchange Online.
avatar
Robbe Van den Daele@RobbeVdDaele
avatar
Detections.ai Community
1 year ago
213295
This rule identifies users who clicked on URLs within emails from a specific sender. It correlates email events, URL information, and URL click events to pinpoint which users interacted with links in emails, particularly useful for tracking responses to potential phishing attempts from a compromised account.
avatar
Subash Ghimire@iamsubashg
avatar
Detections.ai Community
1 year ago
3080
This rule identifies and analyzes user interactions with URLs embedded in emails, specifically focusing on emails that are either inbound or intra-organizational. It determines which users clicked on URLs within these emails and provides a summary of this activity. This analysis is particularly useful in security contexts, where understanding user behavior regarding potentially risky links can help in identifying phishing attacks or other malicious activities.
avatar
Subash Ghimire@iamsubashg
avatar
Detections.ai Community
1 year ago
5167
This rule detects PowerShell activity on user workstations within 30 minutes of receiving an email from a known malicious sender. It aims to identify potential post-compromise activity initiated by a successful phishing attempt.
avatar
Subash Ghimire@iamsubashg
avatar
Detections.ai Community
1 year ago
4052
Possible compromise of Microsoft 365 account {{RecipientEmailAddress}} following a device code phishing campaign leveraging microsoft.com/devicelogin to obtain OAuth tokens from an attacker-controlled session.
avatar
Jeff Anzos@jeffanzos
avatar
Detections.ai Community
1 year ago
193202
This rule consolidates multiple detections related to a widespread malspam campaign delivering the Nova infostealer. It hunts for activity across email, network, DNS, and firewall logs associated with known malicious domains, IPs, and specific TTPs like suspicious archive attachments from impersonated brands.
avatar
R W@shiftyroot
avatar
Detections.ai Community
1 year ago
0150
This rule detects instances where an email with identified threats (e.g., malware, phishing) is received and a URL within that email is subsequently clicked by a user. It correlates email threat information with URL click events to identify successful user interaction with malicious links.
avatar
Ahamed Rizvan@ahamedrizvan
avatar
Detections.ai Community
1 year ago
6167
This detection identifies when a one-on-one Microsoft Teams chat is initiated with an external domain that has not been observed in previous Teams chats (past 90 days) or recent email communications (past 15 days). This may indicate a new, potentially unsolicited or suspicious contact attempting to engage with an internal user, which could represent a social engineering attempt or early-stage reconnaissance.
avatar
Luis Meneses@luismeneses
avatar
Detections.ai Community
1 year ago
293263
Detects emails delivered to user inboxes that contain both a PDF attachment and a URL identified as a phishing link. This rule is designed to identify modern QR code phishing (quishing) campaigns where the malicious URL is embedded within the PDF to bypass traditional email security scanning. The detection relies on the email security solution's ability to extract and flag URLs from attachments, including those embedded in QR codes.
avatar
test User@testuser007
avatar
Detections.ai Community
1 year ago
2211,880
This rule detects inbound emails containing URLs that are commonly used for OAuth consent phishing, where an attacker attempts to trick users into granting permissions to a malicious application.
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
190386
This detection identifies when a Microsoft Teams message containing a URL associated with a known Remote Monitoring and Management (RMM) tool was sent and subsequently clicked by the intended recipient or the original sender. The domain is not part of the organization's approved RMM solutions, indicating a potential use of Living-off-the-Land RMM (LOLRMM) techniques often employed in initial access or persistence stages by threat actors.

This activity may reflect attempted remote access, lateral movement, or data collection through unauthorized RMM deployment.
avatar
Alex ‎@ramz
avatar
Detections.ai Community
1 year ago
124141
This rule detects potential spearphishing attempts where the sender's email address is from Gmail, there are no attachments or URLs, and the subject line of the email matches the recipient's first name. This pattern is often used in highly targeted social engineering attacks to appear legitimate and bypass traditional email security controls.
avatar
Damien vd Linden@lindensec
avatar
Detections.ai Community
1 year ago
4148
This search will find all inbound emails with attachments with filenames ending .lnk, indicative of a Windows Shortcut file.
This has been observed in the Serpentin#Cloud campaign
avatar
Salten Fisk@saltenfisk
avatar
Detections.ai Community
1 year ago
0238
This query visualises total emails with Spam detections summarizing the data by email sender IP address (SenderIPv4, SenderIPv6).
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
61283
KQL Query from file: Storm 1811 SE Attack Detection
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
135137
This query can be used as a Custom Detection Rule (CDR) to trigger when a potentially malicious .SVG file has been delivered into an Inbox.
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
113250
This query visualises emails with Phish detections (High confidence) summarizing the data by Delivery Location.
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
1092
This query visualises total emails with Phish detections over time summarizing the data daily by Delivery Location.
Azure Sentinel@AzureSentinel
avatar
AzureSentinel
1 year ago
1087
KQL Query from file: Sentinel All-In-One IP ThreatHunt
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
152160
KQL Query
avatar
Steven Lim@KQLWizard
avatar
SlimKQL
1 year ago
110154
Page 32 of 40