VeriKQL by Kaushik Saha

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

After the break-in

Alert After the break-in · Idea between

Commands here project · where · == · sort by · between · all commands

Briefing

The attacker has been inside Alex's account since 08:20:36. The SOC lead asks: what did they do with it?

One idea: between keeps a time range

SigninLogs
| where UserPrincipalName == "alex.morgan@contoso.com"
| where TimeGenerated between (datetime(2026-06-10T08:20:36Z) .. datetime(2026-06-10T12:00:00Z))
| sort by TimeGenerated asc
| project TimeGenerated, AppDisplayName, IPAddress, RiskLevelDuringSignIn
✓ Verified by VeriKQLKusto.Language 12.4.1 · bundle 2026.10.29

Result on the sample · 5 rows

TimeGeneratedAppDisplayNameIPAddressRiskLevelDuringSignIn
2026-06-10 08:20:36Office 365 Exchange Online203.0.113.45high
2026-06-10 08:24:10Microsoft Graph PowerShell203.0.113.45high
2026-06-10 09:02:41Azure Portal203.0.113.45high
2026-06-10 09:08:19Office 365 SharePoint Online203.0.113.77high
2026-06-10 09:58:44Azure Storage203.0.113.77high

Five sign-ins, every one rated high risk: Exchange, then Microsoft Graph PowerShell four minutes later, the Azure portal, then SharePoint and Azure Storage from the second address.

Your turn

List every sign-in by anyone between 09:00 and 10:00, with the user, the app and the address, oldest first.

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

Show one answer
SigninLogs
| where TimeGenerated between (datetime(2026-06-10T09:00:00Z) .. datetime(2026-06-10T10:00:00Z))
| sort by TimeGenerated asc
| project TimeGenerated, UserPrincipalName, AppDisplayName, IPAddress
✓ Verified by VeriKQLKusto.Language 12.4.1 · bundle 2026.10.29

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

TimeGeneratedUserPrincipalNameAppDisplayNameIPAddress
2026-06-10 09:02:23priya.nair@contoso.comMy Apps192.0.2.10
2026-06-10 09:02:41alex.morgan@contoso.comAzure Portal203.0.113.45
2026-06-10 09:04:28sara.lind@contoso.comMy Apps192.0.2.20
2026-06-10 09:05:00tom.becker@contoso.comOffice 365 Exchange Online192.0.2.20
2026-06-10 09:05:12raj.patel@contoso.comMy Apps192.0.2.41
2026-06-10 09:05:40tom.becker@contoso.comOffice 365 Exchange Online192.0.2.20
2026-06-10 09:06:33it.admin@contoso.comAzure Portal192.0.2.10
2026-06-10 09:06:54omar.haddad@contoso.comMicrosoft Teams192.0.2.34
2026-06-10 09:08:19alex.morgan@contoso.comOffice 365 SharePoint Online203.0.113.77
2026-06-10 09:09:04tom.becker@contoso.comMy Apps192.0.2.20
2026-06-10 09:11:08sam.okafor@contoso.comMicrosoft Teams192.0.2.10
2026-06-10 09:12:53ben.carter@contoso.comMicrosoft Teams192.0.2.20
2026-06-10 09:13:08lena.fischer@contoso.comOffice 365 Exchange Online192.0.2.20
2026-06-10 09:15:43mei.chen@contoso.comMy Apps192.0.2.10
2026-06-10 09:17:08it.admin@contoso.comMicrosoft Graph PowerShell192.0.2.10
2026-06-10 09:18:11sara.lind@contoso.comMicrosoft Teams192.0.2.20

Check your own query

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

Debrief

A finance user's mailbox is one thing. PowerShell and the Azure portal are admin tools. Next, check whether Alex ever uses them.

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.