MDO Hunting - Campaign View via CampaignInfo
MDO 15 Campaign View Campaign Info
Query
// Validate columns first: CampaignInfo | getschema
CampaignInfo
| where Timestamp > ago(30d)
// Common fields (adjust to your tenant schema after getschema):
// CampaignId, ThreatType, MessageCount, RecipientCount, StartTime, EndTime
| sort by Timestamp descExplanation
This query is designed to identify and list active malicious campaigns targeting a specific tenant by using data from the CampaignInfo table in Microsoft Defender for Office 365. Here's a simplified breakdown:
-
Purpose: The query reads from the CampaignInfo table to identify ongoing malicious campaigns that are targeting the tenant.
-
Pre-requisite: Before running the query, you should check the schema of the CampaignInfo table using
CampaignInfo | getschemabecause the columns in this table can vary depending on the tenant or version. This step ensures that you adjust the query to match your specific schema. -
Query Details:
- It filters the data to include only records from the last 30 days.
- It sorts the results by the timestamp in descending order to show the most recent campaigns first.
- The query is conservative in its approach to avoid errors due to column mismatches, and it suggests extending the summarization once the schema is confirmed.
-
Triage: After identifying the campaigns, you should cross-reference them with EmailEvents and UrlClickEvents to assess the volume of emails delivered and the extent of user engagement with potentially malicious links.
-
Data Source: The query requires data from the MicrosoftThreatProtection connector, specifically the CampaignInfo data type.
-
Security Context: It focuses on tactics like Initial Access and Reconnaissance, and it relates to the technique T1566, which involves phishing.
Overall, this query helps security teams monitor and respond to phishing campaigns by providing insights into active threats targeting their organization.
Details

David Alonso
Released: July 17, 2026
Tables
Keywords
Operators
Tactics
MITRE Techniques