VeriKQL by Kaushik Saha

Level 3 · Did they get in? · Mission 5 of 5 · by Kaushik Saha

Level 3 bug hunt

Alert Failures, then a success · Idea fix it

Commands here where · == · summarize · countif · let · all commands

Briefing

A colleague's count of the attacker's successes won't run. Two small mistakes, both very common: one in the let, one in the condition.

let Attacker = "203.0.113.45"
SigninLogs
| where IPAddress == Attacker
| summarize Successes = countif(ResultType = "0")
✗ Broken on purpose2 problems: KS005 on line 1, KS107 on line 4

Your turn

Fix the query so it compiles and counts the attacker's successful sign-ins.

Paste the query into the box, check it and fix what the checker reports. Then compare with one answer.

Show one answer
let Attacker = "203.0.113.45";
SigninLogs
| where IPAddress == Attacker
| summarize Successes = countif(ResultType == "0")
✓ Verified by VeriKQLKusto.Language 12.4.1 · bundle 2026.10.29

Result on the sample · 1 row

Successes
3

Check your own query

The broken query is in the box: check it, fix what the checker reports and check it again.

Level 3 cleared

3

Level 3 clue · pinned to the incident

They got in. 203.0.113.45 signed in as Alex Morgan at 08:20:36, after six wrong passwords and two denied MFA prompts. From 09:08 the same account comes from a second address, 203.0.113.77, still active at 09:58. The spray never got in.

You can now count matches with countif, find whole rows with arg_max, and name values with let. Level 4 asks how Alex was in Seattle at 08:12 and in Amsterdam eight minutes later.

All 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.

Mission by Kaushik Saha. Every query checked with Microsoft.Azure.Kusto.Language 12.4.1 against schema bundle 2026.10.29; every result computed on the course's sample with Kusto-Loco 1.4.9, an open-source KQL engine (credits). The story's clock reads 12:00 UTC on 10 June 2026.