KQL Mastery Path · by Kaushik Saha
One SOC shift, six alerts
You are the analyst on shift at Contoso. Six alerts come in, and each one is solved with one new KQL idea on the real Microsoft Sentinel tables. By the end, you will see they were one attack.
Level 0
Your toolkit
Before the shift, learn the commands you'll use
nine cards · about three minutes each
Level 1
Read the logs
Alert A user reports a strange sign-in prompt
take · project · where · sort · top · has
Level 2
Count and compare
Alert Spray or brute force?
summarize · count · dcount · bin
Level 3
Did they get in?
Alert Failures, then a success
countif · let · arg_max · bin
Level 4
Same user, two countries
Alert Impossible travel
dynamic columns · tostring · time arithmetic · geo_distance_2points
Level 5
What did they touch?
Alert After the break-in
between · make_set · parse_json · mv-expand
Level 6
Is this one incident?
Alert Six alerts, one attacker
join · union · ATT&CK · analytics rule
How it works
- Level 0 comes first: nine short cards that explain each command, with an example and its result. Every command is also in the command reference.
- Levels 1 to 6 use those commands on real alerts. Each mission takes about five minutes.
- Every query on a page is checked by VeriKQL with Microsoft's own parser, and its result is shown on the course's sample data. You don't need a workspace.
- Each mission ends with a task: write your own query in the box and check it.
- Each level ends with a bug hunt and a clue about the incident.
Also on Learn
Reference coursethe original five stages, in depthTable librarytables, schema-true, with verified huntsCase file 01a correlated intrusion across many tablesCheck my queryany KQL, against the real schemaAll data on this page is sample data, made up for this course. The IP addresses come from ranges reserved for documentation, and the people and the company are fictional.