VeriKQL by Kaushik Saha

Reference course · by Kaushik Saha

From your first query to a threat hunt

Five missions, then a case to crack. Every query in them is checked by VeriKQL before it is published, so what you copy is what compiles.

Reference This is the original five-stage course, kept to go deeper at your own pace. New to KQL? Start with the KQL Mastery Path →

Mission map: five stages, then case file 01
00Setup2 verified ✓01Basics13 verified ✓02Aggregation16 verified ✓03Advanced17 verified ✓04Threat hunting11 verified ✓★Case 0110 verified ✓00Setup2 verified ✓01Basics13 verified ✓02Aggregation & charts16 verified ✓03Advanced17 verified ✓04Threat hunting11 verified ✓★Operation Quiet Ledger10 verified ✓

✓Missions you have opened turn green. That is your browser's own history: this site runs no script and stores nothing.

63KQL queries in the course
61verified by VeriKQL
2setup commands and patterns, labelled

KQL for Microsoft Sentinel — A Hands-On Learning Path

From zero to threat hunting in Kusto Query Language — with a dataset you can run even if your Sentinel workspace is empty.


Most KQL tutorials assume logs are already flowing into SigninLogs and AuditLogs. New or quiet environments don't have that — so the queries return nothing and learning stalls. This path fixes that: Stage 00 seeds a realistic dataset with no ingestion required, and every early lab runs against it. Later stages graduate to the real tables once you have data.

Note No data? Practice anyway. Stage 00 gives you two free ways to get a working dataset in ~5 minutes — a seeded function in Sentinel/Log Analytics, or a CSV loaded into an Azure Data Explorer free cluster (no Azure subscription needed).

Table of Contents

The path at a glance

Reference anytime: operator cheatsheet · schema gotchas · Microsoft Learn links

Two ways to practise — pick one in Stage 00

You have… Use Cost
A Sentinel / Log Analytics workspace (even empty) Seed a saved function (datatable → DemoIdentityLogs) Free
No Azure subscription at all Azure Data Explorer free cluster + CSV Free — no subscription or credit card

Both produce the same DemoIdentityLogs object, so every lab works identically either way.

Who this is for

Career starters & students · SOC Tier 1–2 analysts · threat hunters · detection engineers · security architects. Stages run novice → advanced; jump in where you fit.

The learning path

Stage Folder What you learn Runs on
00 · Setup 00-setup/ Seed a dataset 2 ways (function / CSV+ADX) —
01 · Basics 01-basics/ Pipeline model, where, project, extend, let, time hygiene DemoIdentityLogs
02 · Aggregation & Viz 02-aggregation-viz/ summarize family, bin(), render, union, join DemoIdentityLogs
03 · Advanced 03-advanced/ Parsing dynamic data, modular let, ASIM, viz shaping, series ops Real tables
04 · Threat Hunting 04-hunting/ 11 MITRE-mapped hunts across identity + endpoint Real tables

Reference (use anytime)

How to use this

  1. Do Stage 00 once — you'll have DemoIdentityLogs in ~5 minutes.
  2. Work through 01 → 02, running every query and attempting the 🧪 exercises before checking answers.
  3. When you have real data (or want production patterns), continue to 03 → 04.
  4. Keep the cheatsheet and schema-gotchas open as you go.

Principles baked in

  • Runnable first. Every early query executes against seeded data — no "trust me, it works."
  • One narrative. The same five demo users carry through every example.
  • Schema-accurate. Real-table queries use only columns validated against the Microsoft table references.
  • Tier-1 sourced. Claims link to Microsoft Learn; thresholds in hunts are tunable starting points, not gospel.

Built as world-class, practice-ready training material. Contributions welcome — keep queries schema-validated and link Tier-1 sources.

Course by Kaushik Saha. Source: sentinel/kql/README.md at ea5adab001fa. Queries checked with Microsoft.Azure.Kusto.Language 12.4.1 against schema bundle 2026.10.29.