VeriKQL by Kaushik Saha

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

Unusual apps

Alert After the break-in · Idea make_set · in

Commands here where · == · in · sort by · summarize · make_set / make_list · all commands

Briefing

Who at Contoso uses admin tools at all? If only the IT admin does, Alex's account using them is the signal.

One idea: make_set collects the values into one list per group

SigninLogs
| where ResultType == "0"
| where AppDisplayName in ("Microsoft Graph PowerShell", "Azure Portal", "Azure Storage")
| summarize AdminApps = make_set(AppDisplayName), Addresses = make_set(IPAddress) by UserPrincipalName
✓ Verified by VeriKQLKusto.Language 12.4.1 · bundle 2026.10.29

Result on the sample · 2 rows

UserPrincipalNameAdminAppsAddresses
it.admin@contoso.com["Azure Portal","Microsoft Graph PowerShell"]["192.0.2.10"]
alex.morgan@contoso.com["Azure Storage","Microsoft Graph PowerShell","Azure Portal"]["203.0.113.77","203.0.113.45"]

Two accounts. it.admin uses PowerShell and the portal from the office. alex.morgan, in Finance, used all three, and only from the attacker's addresses.

Your turn

List each user with every different app they used today, one row per user.

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 == "0"
| summarize Apps = make_set(AppDisplayName) by UserPrincipalName
| sort by UserPrincipalName asc
✓ Verified by VeriKQLKusto.Language 12.4.1 · bundle 2026.10.29

Result on the sample · 12 rows

UserPrincipalNameApps
alex.morgan@contoso.com["Azure Storage","Office 365 Exchange Online","Office 365 SharePoint Online","Microsoft Graph PowerShell","Microsoft Teams","Azure Portal"]
ben.carter@contoso.com["Microsoft Teams","Office 365 SharePoint Online","My Apps"]
it.admin@contoso.com["My Apps","Azure Portal","Office 365 Exchange Online","Office 365 SharePoint Online","Microsoft Graph PowerShell"]
julia.santos@contoso.com["Office 365 SharePoint Online","Microsoft Teams","Office 365 Exchange Online"]
lena.fischer@contoso.com["Office 365 Exchange Online","My Apps","Office 365 SharePoint Online"]
mei.chen@contoso.com["My Apps","Office 365 Exchange Online","Microsoft Teams"]
omar.haddad@contoso.com["My Apps","Microsoft Teams","Office 365 Exchange Online"]
priya.nair@contoso.com["Office 365 Exchange Online","My Apps","Microsoft Teams"]
raj.patel@contoso.com["My Apps","Office 365 SharePoint Online","Office 365 Exchange Online"]
sam.okafor@contoso.com["Microsoft Teams","Office 365 Exchange Online","Office 365 SharePoint Online"]
sara.lind@contoso.com["My Apps","Office 365 Exchange Online","Office 365 SharePoint Online","Microsoft Teams"]
tom.becker@contoso.com["Microsoft Teams","My Apps","Office 365 Exchange Online","Office 365 SharePoint Online"]

Check your own query

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

Debrief

The account is doing what its owner never does. Next: Alex has MFA. How did the attacker get past it?

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.