Level 1 · Read the logs · Mission 2 of 5 · by Kaushik Saha
Find the failures
Alert A user reports a strange sign-in prompt · Idea where
Commands here project · where · == · != · all commands
Briefing
Alex says the prompts came "at about twenty past eight". Before looking at Alex, see what failed this morning.
| TimeGenerated | UserPrincipalName | IPAddress | ResultType |
|---|---|---|---|
| 2026-06-10 07:45:44 | raj.patel@contoso.com | 198.51.100.23 | 50126 |
| 2026-06-10 08:28:33 | mei.chen@contoso.com | 192.0.2.10 | 0 |
| 2026-06-10 09:40:23 | omar.haddad@contoso.com | 192.0.2.34 | 0 |
| 2026-06-10 09:31:09 | julia.santos@contoso.com | 192.0.2.10 | 0 |
| 2026-06-10 08:03:58 | mei.chen@contoso.com | 192.0.2.10 | 0 |
| 2026-06-10 08:29:37 | priya.nair@contoso.com | 192.0.2.10 | 0 |
Sample data, made up for this course. The IP addresses come from ranges reserved for documentation, and the people and the company are fictional.
One idea: where keeps the rows that match
SigninLogs
| where ResultType != "0"
| project TimeGenerated, UserPrincipalName, IPAddress, ResultType
Result on the sample · 25 rows, the first 16 shown
| TimeGenerated | UserPrincipalName | IPAddress | ResultType |
|---|---|---|---|
| 2026-06-10 07:45:44 | raj.patel@contoso.com | 198.51.100.23 | 50126 |
| 2026-06-10 07:43:53 | lena.fischer@contoso.com | 198.51.100.23 | 50126 |
| 2026-06-10 08:17:05 | alex.morgan@contoso.com | 203.0.113.45 | 50126 |
| 2026-06-10 07:41:25 | sam.okafor@contoso.com | 198.51.100.23 | 50126 |
| 2026-06-10 10:18:00 | mei.chen@contoso.com | 192.0.2.10 | 50074 |
| 2026-06-10 08:19:44 | alex.morgan@contoso.com | 203.0.113.45 | 500121 |
| 2026-06-10 07:40:11 | alex.morgan@contoso.com | 198.51.100.23 | 50126 |
| 2026-06-10 07:46:21 | ben.carter@contoso.com | 198.51.100.23 | 50126 |
| 2026-06-10 07:40:48 | priya.nair@contoso.com | 198.51.100.23 | 50126 |
| 2026-06-10 07:45:07 | sara.lind@contoso.com | 198.51.100.23 | 50126 |
| 2026-06-10 07:46:58 | it.admin@contoso.com | 198.51.100.23 | 50126 |
| 2026-06-10 08:15:10 | alex.morgan@contoso.com | 203.0.113.45 | 50126 |
| 2026-06-10 08:14:02 | alex.morgan@contoso.com | 203.0.113.45 | 50126 |
| 2026-06-10 09:47:12 | ben.carter@contoso.com | 192.0.2.20 | 50126 |
| 2026-06-10 07:42:39 | omar.haddad@contoso.com | 198.51.100.23 | 50126 |
| 2026-06-10 08:19:12 | alex.morgan@contoso.com | 203.0.113.45 | 50126 |
!= means "is not". Every row left is a sign-in that didn't succeed. The codes you'll meet today:
| ResultType | What it means |
|---|---|
50126 |
Wrong user name or password |
50053 |
Account locked after too many wrong passwords |
500121 |
The password was right, but the MFA prompt was denied |
50074 |
MFA was required: the user was asked for a second factor (normal) |
50140 |
The "stay signed in?" prompt (normal) |
Your turn
Show only the wrong-password failures (50126), with the time, the user and the address.
Write it in the box below and check it. Then compare with one answer; others can be right too.
Show one answer
SigninLogs
| where ResultType == "50126"
| project TimeGenerated, UserPrincipalName, IPAddress
Result on the sample · 18 rows, the first 16 shown
| TimeGenerated | UserPrincipalName | IPAddress |
|---|---|---|
| 2026-06-10 07:45:44 | raj.patel@contoso.com | 198.51.100.23 |
| 2026-06-10 07:43:53 | lena.fischer@contoso.com | 198.51.100.23 |
| 2026-06-10 08:17:05 | alex.morgan@contoso.com | 203.0.113.45 |
| 2026-06-10 07:41:25 | sam.okafor@contoso.com | 198.51.100.23 |
| 2026-06-10 07:40:11 | alex.morgan@contoso.com | 198.51.100.23 |
| 2026-06-10 07:46:21 | ben.carter@contoso.com | 198.51.100.23 |
| 2026-06-10 07:40:48 | priya.nair@contoso.com | 198.51.100.23 |
| 2026-06-10 07:45:07 | sara.lind@contoso.com | 198.51.100.23 |
| 2026-06-10 07:46:58 | it.admin@contoso.com | 198.51.100.23 |
| 2026-06-10 08:15:10 | alex.morgan@contoso.com | 203.0.113.45 |
| 2026-06-10 08:14:02 | alex.morgan@contoso.com | 203.0.113.45 |
| 2026-06-10 09:47:12 | ben.carter@contoso.com | 192.0.2.20 |
| 2026-06-10 07:42:39 | omar.haddad@contoso.com | 198.51.100.23 |
| 2026-06-10 08:19:12 | alex.morgan@contoso.com | 203.0.113.45 |
| 2026-06-10 07:44:30 | tom.becker@contoso.com | 198.51.100.23 |
| 2026-06-10 08:16:31 | alex.morgan@contoso.com | 203.0.113.45 |
Check your own query
Write your query for the task above and check it against the real schema.
Debrief
Not every failure is an attack: 50074 and 50140 are everyday prompts. Some addresses fail far more than others.
Next, put the failures in time order.
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.