← Back to SOC feed Coverage →

Top accounts performing user submissions

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-05-18T23:00:00Z · Confidence: medium

Hunt Hypothesis

Adversaries may use compromised accounts to submit malicious payloads through user submission vectors, leveraging T1566 to exfiltrate data or execute code. SOC teams should proactively hunt for this behavior in Azure Sentinel to identify potential lateral movement or persistence tactics early.

KQL Query

CloudAppEvents
| where Timestamp > ago(30d) 
| extend Record= (parse_json(RawEventData)).RecordType 
| extend SubmissionState = (parse_json(RawEventData)).SubmissionState  
| extend UserId = (parse_json(RawEventData)).UserId
| where Record == 29 
| where ActionType == "UserSubmission" 
| summarize count() by tostring(UserId) | sort by count_ //| top 50 by count_
| render columnchart

Analytic Rule Definition

id: dda13716-d906-45c5-877d-4df46ceb39e6
name: Top accounts performing user submissions
description: |
  This query graphs top accounts performing user submissions
description-detailed: |
  This query graphs top accounts performing user submissions in Defender for Office 365
  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 Timestamp > ago(30d) 
  | extend Record= (parse_json(RawEventData)).RecordType 
  | extend SubmissionState = (parse_json(RawEventData)).SubmissionState  
  | extend UserId = (parse_json(RawEventData)).UserId
  | where Record == 29 
  | where ActionType == "UserSubmission" 
  | summarize count() by tostring(UserId) | sort by count_ //| top 50 by count_
  | render columnchart
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/Top accounts performing user submissions.yaml