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)
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)
Result on the sample · 25 rows, the first 16 shown
| TimeGenerated | Method |
|---|---|
| 2026-06-10 09:58:44 | Password |
| 2026-06-10 09:58:44 | Mobile app notification |
| 2026-06-10 08:17:05 | Password |
| 2026-06-10 08:20:36 | Password |
| 2026-06-10 08:20:36 | Mobile app notification |
| 2026-06-10 08:19:44 | Password |
| 2026-06-10 08:19:44 | Mobile app notification |
| 2026-06-10 09:08:19 | Password |
| 2026-06-10 09:08:19 | Mobile app notification |
| 2026-06-10 07:40:11 | Password |
| 2026-06-10 08:15:10 | Password |
| 2026-06-10 08:14:02 | Password |
| 2026-06-10 08:24:10 | Password |
| 2026-06-10 08:24:10 | Mobile app notification |
| 2026-06-10 08:19:12 | Password |
| 2026-06-10 07:56:42 | Password |
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
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.