Query Details

Security for AI - MITRE ATLAS Detection Activity over Time

MDXDR Security For AI MITRE ATLAS 09 Detection Activity Over Time

Query

let AIAlertActivity = materialize(
    AlertInfo
    | where DetectionSource in (
        "Security for AI",
        "Microsoft Defender for AI Services"
    )
    | summarize arg_max(Timestamp, *) by AlertId
    | extend TechniqueIds = extract_all(
        @"(AML\.T\d{4}(?:\.\d{3})?)",
        tostring(AttackTechniques))
    | mv-expand TechniqueId = TechniqueIds to typeof(string)
    | where isnotempty(TechniqueId)
);
AIAlertActivity
| summarize AlertCount = dcount(AlertId),
    ObservedTechniques = dcount(TechniqueId),
    DetectionCount = dcount(Title)
    by bin(Timestamp, 1d)
| order by Timestamp asc
| render timechart

About this query

Explanation

This query is designed to analyze security alerts related to AI by using the MITRE ATLAS framework. Here's a simple breakdown of what it does:

  1. Purpose: The query tracks daily activity of AI-related security alerts that have mappings to MITRE ATLAS techniques. It focuses on counting distinct alerts, technique IDs, and detection titles over time.

  2. Data Source: It uses data from the AlertInfo table within Microsoft Defender XDR, specifically looking at alerts from "Security for AI" and "Microsoft Defender for AI Services".

  3. Process:

    • It first filters alerts to those from specified AI-related detection sources.
    • It extracts technique IDs from the alerts using a specific pattern (e.g., "AML.T####").
    • It expands these technique IDs into individual entries for further analysis.
    • It ensures only non-empty technique IDs are considered.
  4. Analysis:

    • It summarizes the data to count the number of distinct alerts, observed techniques, and detection titles each day.
    • The results are organized into daily bins and sorted by date.
  5. Output: The query generates a time chart that visually represents the daily counts of alerts, techniques, and detections over time.

  6. Risk Note: The absence of alerts doesn't necessarily mean a technique is undetectable; it might indicate gaps in detection capabilities or data coverage.

  7. Status: The query is in draft form and hasn't been validated yet, meaning it's still under review and testing.

Overall, this query helps security analysts monitor and understand the detection activity related to AI threats using the MITRE ATLAS framework, providing insights into how well AI-related threats are being detected over time.