VeriKQL by Kaushik Saha

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

The moment they got in

Alert Failures, then a success · Idea let · top

Commands here project · where · == · and / or · top · let · all commands

Briefing

You know the brute force succeeded. For the incident report you need the exact moment, and the account.

One idea: name the address once with let

let gives the address a name, so every query in the investigation uses the same value:

let Attacker = "203.0.113.45";
SigninLogs
| where IPAddress == Attacker and ResultType == "0"
| top 1 by TimeGenerated asc
| project TimeGenerated, UserPrincipalName, AppDisplayName, RiskLevelDuringSignIn
✓ Verified by VeriKQLKusto.Language 12.4.1 · bundle 2026.10.29

Result on the sample · 1 row

TimeGeneratedUserPrincipalNameAppDisplayNameRiskLevelDuringSignIn
2026-06-10 08:20:36alex.morgan@contoso.comOffice 365 Exchange Onlinehigh

The first success: Alex Morgan, at 08:20:36, with the sign-in risk already rated high.

Your turn

Name the attacker's address with let, then show its three most recent successful sign-ins, newest first.

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

Show one answer
let Attacker = "203.0.113.45";
SigninLogs
| where IPAddress == Attacker and ResultType == "0"
| top 3 by TimeGenerated desc
| project TimeGenerated, UserPrincipalName, AppDisplayName
✓ Verified by VeriKQLKusto.Language 12.4.1 · bundle 2026.10.29

Result on the sample · 3 rows

TimeGeneratedUserPrincipalNameAppDisplayName
2026-06-10 09:02:41alex.morgan@contoso.comAzure Portal
2026-06-10 08:24:10alex.morgan@contoso.comMicrosoft Graph PowerShell
2026-06-10 08:20:36alex.morgan@contoso.comOffice 365 Exchange Online

Check your own query

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

Debrief

08:20:36 is the time the incident starts. Next, find the last time the attacker was seen on each address.

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.