Defender XDR series · Lab 3 of 5 · Advanced

Hunting is writing the query you can defend at 03:00

Four queries, one custom detection, one suppression record and one handover note. Every query is executed by a real (if small) KQL engine against synthetic tables in your browser — the row counts the validator expects are the row counts the engine gives you, so you can check your own work instead of guessing.

Required
KQL-Lite · what is and is not here.

Supported: let, where, project / project--away / project-rename, extend, summarize … by, distinct, order by, take, count, union, join kind=… and the common string, time and aggregate functions. Not modelled: mv-expand, datatable, externaldata, make-series, render visuals, window functions and arg_max as a row picker. Computed group-by columns need an alias (by HOUR = bin(Timestamp, 1h)). A real tenant has hundreds of tables and full engine semantics.

Objectives · 100 pts

What is graded

  • 1
    Bounded counting · 10Right table, right window, no take shortcut, honest row count.
  • 2
    Cross-domain pivot · 20Identity logon → endpoint process, on the account, not on vibes.
  • 3
    AdditionalFields · 15parse_json plus a typed extension so the field is queryable.
  • 4
    Aggregation & baselines · 15bin(), dcount() and an ordering that puts the anomaly on top.
  • 5
    Custom detection · 20Turn the query into a rule with a limit, an exemption and a safe remediation setting.
  • 6
    Alert tuning · 10Suppress the known-benign pattern narrowly, with an owner and an expiry.
  • 7
    Handover · 10Save the query, file the hunting note, create the incident from evidence.
Scenario

Why you are hunting

Two Medium alerts on 2026-08-27 mentioned an unusual service account (svc_print) starting an interactive logon, then a process with a network beacon. Neither alert was severe enough to become an incident, and the SIEM owner asked whether this is a pattern or noise. You have 14 days of endpoint data, 30 days of identity data and the email tables.

Simulated "now"
2026-08-28T09:00:00Z
Retention in this lab
Endpoint 14 days · identity 30 days (real tenants differ by plan)
Rows available
Who may see the output
SOC and IT operations only; the export is redacted by default
Compliance posture.

Console replica, not Microsoft software. Offline, synthetic data, no tenant connection, no telemetry. Nothing you type leaves this browser; the audit log redacts real-looking identifiers and the evidence pack is generated locally.