VeriKQL by Kaushik Saha

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

How MFA was passed

Alert After the break-in · Idea parse_json · mv-expand

Commands here project · where · == · and / or · sort by · between · tostring · dot notation · parse_json · mv-expand · all commands

Briefing

Alex's ticket said: "My phone kept asking me to approve sign-ins." Each sign-in records its steps in AuthenticationDetails: the password, then the phone prompt.

One idea: mv-expand gives each step of a list its own row

parse_json turns the text into a list, and mv-expand makes one row per step:

SigninLogs
| where UserPrincipalName == "alex.morgan@contoso.com"
| where TimeGenerated between (datetime(2026-06-10T08:19:30Z) .. datetime(2026-06-10T08:21:00Z))
| mv-expand Step = parse_json(AuthenticationDetails)
| project TimeGenerated, Method = tostring(Step.authenticationMethod), Succeeded = tostring(Step.succeeded)
| sort by TimeGenerated asc
✓ Verified by VeriKQLKusto.Language 12.4.1 · bundle 2026.10.29

Result on the sample · 6 rows

TimeGeneratedMethodSucceeded
2026-06-10 08:19:44Passwordtrue
2026-06-10 08:19:44Mobile app notificationfalse
2026-06-10 08:20:09Passwordtrue
2026-06-10 08:20:09Mobile app notificationfalse
2026-06-10 08:20:36Passwordtrue
2026-06-10 08:20:36Mobile app notificationtrue

The password was right three times. The phone prompt was denied twice, then approved at 08:20:36. This is MFA fatigue: the attacker keeps sending prompts until the user taps "approve" to make them stop.

Your turn

For every sign-in by Alex from the attacker's first address, show each step with its method and whether it succeeded.

Write it in the box below and check it. Then compare with one answer; others can be right too.

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

Result on the sample · 16 rows

TimeGeneratedMethodSucceeded
2026-06-10 08:14:02Passwordfalse
2026-06-10 08:15:10Passwordfalse
2026-06-10 08:16:31Passwordfalse
2026-06-10 08:17:05Passwordfalse
2026-06-10 08:18:41Passwordfalse
2026-06-10 08:19:12Passwordfalse
2026-06-10 08:19:44Passwordtrue
2026-06-10 08:19:44Mobile app notificationfalse
2026-06-10 08:20:09Passwordtrue
2026-06-10 08:20:09Mobile app notificationfalse
2026-06-10 08:20:36Passwordtrue
2026-06-10 08:20:36Mobile app notificationtrue
2026-06-10 08:24:10Passwordtrue
2026-06-10 08:24:10Mobile app notificationtrue
2026-06-10 09:02:41Passwordtrue
2026-06-10 09:02:41Mobile app notificationtrue

Check your own query

Write your query for the task above and check it against the real schema.

Debrief

Alex approved the third prompt. That is how the attacker got in, and why number matching and "deny and report" matter in an MFA policy. One more check: was the account flagged?

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.