VeriKQL by Kaushik Saha

Level 5 · What did they touch? · Mission 5 of 5 · by Kaushik Saha

Level 5 bug hunt

Alert After the break-in · Idea fix it

Commands here project · where · == · tostring · dot notation · parse_json · mv-expand · all commands

Briefing

A colleague wants to see each authentication step. The checker reports two errors, but there is only one mistake: the second error follows from the first.

SigninLogs
| where UserPrincipalName == "alex.morgan@contoso.com"
| mv-expand Step = AuthenticationDetails
| project TimeGenerated, Method = tostring(Step.authenticationMethod)
✗ Broken on purpose2 problems: KS141 on line 3, KS142 on line 4

Hint: what type is AuthenticationDetails in SigninLogs?

Your turn

Fix the query so it compiles and shows each authentication step of Alex's sign-ins.

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

Show one answer
SigninLogs
| where UserPrincipalName == "alex.morgan@contoso.com"
| mv-expand Step = parse_json(AuthenticationDetails)
| project TimeGenerated, Method = tostring(Step.authenticationMethod)
✓ Verified by VeriKQLKusto.Language 12.4.1 · bundle 2026.10.29

Result on the sample · 25 rows, the first 16 shown

TimeGeneratedMethod
2026-06-10 09:58:44Password
2026-06-10 09:58:44Mobile app notification
2026-06-10 08:17:05Password
2026-06-10 08:20:36Password
2026-06-10 08:20:36Mobile app notification
2026-06-10 08:19:44Password
2026-06-10 08:19:44Mobile app notification
2026-06-10 09:08:19Password
2026-06-10 09:08:19Mobile app notification
2026-06-10 07:40:11Password
2026-06-10 08:15:10Password
2026-06-10 08:14:02Password
2026-06-10 08:24:10Password
2026-06-10 08:24:10Mobile app notification
2026-06-10 08:19:12Password
2026-06-10 07:56:42Password

Check your own query

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

Level 5 cleared

5

Level 5 clue · pinned to the incident

The attacker beat MFA by fatigue: two denied prompts, then Alex approved the third at 08:20:36. Then, as Alex, they opened Microsoft Graph PowerShell, the Azure portal and Azure Storage, admin tools Alex never uses, every sign-in rated high risk.

You can now read time ranges, collect values with make_set, and open JSON lists with parse_json and mv-expand. Level 6 brings it together: six alerts, one incident.

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.