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
Result on the sample · 5 rows
| TimeGenerated | AppDisplayName | IPAddress | RiskLevelDuringSignIn |
|---|---|---|---|
| 2026-06-10 08:20:36 | Office 365 Exchange Online | 203.0.113.45 | high |
| 2026-06-10 08:24:10 | Microsoft Graph PowerShell | 203.0.113.45 | high |
| 2026-06-10 09:02:41 | Azure Portal | 203.0.113.45 | high |
| 2026-06-10 09:08:19 | Office 365 SharePoint Online | 203.0.113.77 | high |
| 2026-06-10 09:58:44 | Azure Storage | 203.0.113.77 | high |
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
Result on the sample · 46 rows, the first 16 shown
| TimeGenerated | UserPrincipalName | AppDisplayName | IPAddress |
|---|---|---|---|
| 2026-06-10 09:02:23 | priya.nair@contoso.com | My Apps | 192.0.2.10 |
| 2026-06-10 09:02:41 | alex.morgan@contoso.com | Azure Portal | 203.0.113.45 |
| 2026-06-10 09:04:28 | sara.lind@contoso.com | My Apps | 192.0.2.20 |
| 2026-06-10 09:05:00 | tom.becker@contoso.com | Office 365 Exchange Online | 192.0.2.20 |
| 2026-06-10 09:05:12 | raj.patel@contoso.com | My Apps | 192.0.2.41 |
| 2026-06-10 09:05:40 | tom.becker@contoso.com | Office 365 Exchange Online | 192.0.2.20 |
| 2026-06-10 09:06:33 | it.admin@contoso.com | Azure Portal | 192.0.2.10 |
| 2026-06-10 09:06:54 | omar.haddad@contoso.com | Microsoft Teams | 192.0.2.34 |
| 2026-06-10 09:08:19 | alex.morgan@contoso.com | Office 365 SharePoint Online | 203.0.113.77 |
| 2026-06-10 09:09:04 | tom.becker@contoso.com | My Apps | 192.0.2.20 |
| 2026-06-10 09:11:08 | sam.okafor@contoso.com | Microsoft Teams | 192.0.2.10 |
| 2026-06-10 09:12:53 | ben.carter@contoso.com | Microsoft Teams | 192.0.2.20 |
| 2026-06-10 09:13:08 | lena.fischer@contoso.com | Office 365 Exchange Online | 192.0.2.20 |
| 2026-06-10 09:15:43 | mei.chen@contoso.com | My Apps | 192.0.2.10 |
| 2026-06-10 09:17:08 | it.admin@contoso.com | Microsoft Graph PowerShell | 192.0.2.10 |
| 2026-06-10 09:18:11 | sara.lind@contoso.com | Microsoft Teams | 192.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.