← Back to SOC feed Coverage →

User Email Submissions (FP) - Top P2 Sender Domains

kql MEDIUM Azure-Sentinel
T1566
CloudAppEvents
huntingmicrosoftofficial
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at Azure-Sentinel →
Retrieved: 2026-09-04T11:00:00Z · Confidence: medium

Hunt Hypothesis

This hypothesis targets potential phishing campaigns where attackers exploit trusted, high-volume sender domains to bypass user scrutiny, as evidenced by a high frequency of false positive submissions from these specific P2 domains. Proactively hunting for this pattern in Azure Sentinel allows the SOC to identify compromised or spoofed legitimate domains that adversaries leverage to deliver malicious payloads while maintaining a low profile against standard detection thresholds.

KQL Query

CloudAppEvents
| where ActionType == "UserSubmission"
| extend SubmissionType = tostring((parse_json(RawEventData)).SubmissionType), SubmissionContentType = tostring((parse_json(RawEventData)).SubmissionContentType), P2SenderDomain = tostring((parse_json(RawEventData)).P2SenderDomain)
| where SubmissionContentType == "Mail" and SubmissionType == "3"
| summarize count() by P2SenderDomain
| top 10 by count_
| project ['Sender Domain'] = P2SenderDomain, ['Emails'] = count_

Analytic Rule Definition

id: d090ed89-3c2b-4bd7-9b87-d8a5f552e174
name: User Email Submissions (FP) - Top P2 Sender Domains
description: |
  This query visualises the top 10 sender domains of emails submitted as false positives by users.
description-detailed: |
  This query visualises the top 10 sender domains of emails submitted as false positives by users.
  Query is also included as part of the Defender for Office 365 solution in Sentinel: https://techcommunity.microsoft.com/blog/microsoftdefenderforoffice365blog/part-2-build-custom-email-security-reports-and-dashboards-with-workbooks-in-micr/4411303
requiredDataConnectors:
- connectorId: MicrosoftThreatProtection
  dataTypes:
  - CloudAppEvents
tactics:
  - InitialAccess
relevantTechniques:
  - T1566
query: |
  CloudAppEvents
  | where ActionType == "UserSubmission"
  | extend SubmissionType = tostring((parse_json(RawEventData)).SubmissionType), SubmissionContentType = tostring((parse_json(RawEventData)).SubmissionContentType), P2SenderDomain = tostring((parse_json(RawEventData)).P2SenderDomain)
  | where SubmissionContentType == "Mail" and SubmissionType == "3"
  | summarize count() by P2SenderDomain
  | top 10 by count_
  | project ['Sender Domain'] = P2SenderDomain, ['Emails'] = count_
version: 1.0.0

Required Data Sources

Sentinel TableNotes
CloudAppEventsEnsure this data connector is enabled

MITRE ATT&CK Context

References

False Positive Guidance

Original source: https://github.com/Azure/Azure-Sentinel/blob/main/Hunting Queries/Microsoft 365 Defender/Email and Collaboration Queries/Submissions/User Submissions - Top email (P2) sender domains FP.yaml