↓ Skip to main content

Hi, I'm Nicola 👋

Passionate about cyber security, I build today’s defenses with Microsoft Security for tomorrow’s threats. As a security consultant, I share what I learn here through posts, my Today I Learned series, and occasionally on stage at conferences.

Defender XDR
Sentinel
Entra
KQL
Microsoft MVP badge

Recent

Kusto Advent Riddle 2026: The KQL Advent Calendar

·7 mins
24 days. 24 KQL riddles. One toy factory in trouble. Your December just got a lot more interesting. The Kusto Advent Riddle is a free KQL advent calendar for the security community. From 1 December, a new riddle opens every day. Each one is a CTF-style challenge that runs right inside the calendar, with a built-in Kusto Terminal next to it. There’s nothing to set up: sign up, open the door, write your KQL, and capture the flag riddle. Solve them all, collect badges, and sharpen your Kusto skills along the way. 🕵️ Sign-up is open! The first three warm-up challenges are already waiting for you, and on 1 December the first door opens. Sign up for the Kusto Advent Riddle The Kusto Advent Riddle challenges What is the Kusto Advent Riddle? # In short: it’s a KQL capture-the-flag, built like an advent calendar. From 1 to 24 December, a new riddle unlocks every day at 00:00 (CET). Your job is to dig through the toy factory’s logs, find the answer and submit the flag.

Federated subject recycling continued: AWS edition

·4 mins
Federated credentials reduce the risks of token exposure and leaked secrets, but they can leave dangling trust relationships too. In my previous post, I covered subject recycling in Microsoft Entra ID: how to find GitHub Actions and GitLab trusts that rely on mutable subjects and how to switch to immutable identifiers. This time, I’m looking at AWS IAM role trust policies. The question is the same: does the trust rely on an immutable identifier or a name that could be recycled? As a quick recap, here’s how mutable and immutable subjects differ: GitLab example: -"sub": "project_path:nicolonsky/ITDR:ref_type:branch:ref:main" +"sub": "project_id:715070358:ref_type:branch:ref:main" GitHub example: -"sub": "repo:nicolonsky/ITDR:ref:refs/heads/main" +"sub": "repo:nicolonsky@32899754/ITDR@715070358:ref:refs/heads/main" AWS IAM role trust policies # If you’re coming from the Microsoft world, it’s worth distinguishing three core AWS IAM concepts: Permissions policy: Defines which actions are allowed or denied on which resources. For example, s3:ListBucket allows listing objects in a bucket. The permissions are comparable to those in an Azure RBAC role. 1 2 Role trust policy: Defines who can assume a role and under which conditions. In the Microsoft world, principals always refer to Entra ID objects, such as users, groups and service principals (instances of app registrations). AWS can delegate trust directly to an external identity provider without local objects. 3 IAM role: Combines a trust policy with permissions policies. 4 Example configuration # Before using GitHub Actions or GitLab as a federated principal, add the IdP as an OIDC provider in IAM:

Kusto Advent Riddle 2026!

·2 mins
I love playing CTFs. Over the years I have learned a lot from challenges that other people built and shared for free, and I wanted to give something back to the community. So this December I’m hosting a free Kusto Advent Calendar with 24 Kusto riddles. A lot of effort has gone into building the platform and the challenges, but I learned a ton of new things along the way. The Kusto Advent Riddle is a KQL capture-the-flag in the form of an Advent calendar. From 1 to 24 December a new riddle opens every day, and all you need to solve them is the Kusto Query Language. The story takes you to the North Pole, where the IT team has to keep the toy factory running through the Christmas rush: December is here, and the toy factory is badly understaffed. Half the elves are out with reindeer flu, the Christmas rush is under way, and every department is asking for help. Santa has made a decision: this season, IT helps everyone. You’ve been handed the factory’s records for November 2026. Start by helping the business analysts understand orders and deliveries. Then join the SOC to investigate unusual sign-ins and network activity. When an incident needs a closer look, follow the evidence with the investigation team.

Exploring Defender XDR tenant governance

Managing multiple tenants in the Microsoft ecosystem has always been a challenge for enterprises. Before the Unified Security Operations Platform (USOP), Azure Lighthouse was an option for managing Microsoft Sentinel across tenants. With the move to the Defender XDR portal, the focus shifted to multitenant management through B2B accounts or granular delegated admin privileges (GDAP)1. But some organizations did not want to use B2B because of organizational policies or onboarding requirements, and GDAP access was limited to Microsoft Cloud Solution Partners (CSPs). Now that tenant governance relationships extend to Defender XDR, I wanted to explore the setup, the use cases, and the benefits for organizations with multiple tenants. Microsoft documents the setup in its guide to configuring delegated access with governance relationships.2 Tip Under the hood, Defender XDR uses the native Entra tenant governance capabilities.3 This integration makes them more accessible to security teams working primarily in Defender XDR.

Preventing subject recycling in Entra ID federated credentials

··5 mins
Dangling DNS records and OIDC redirect URIs are well-known, actively exploited security misconfigurations. While federated identity credentials reduce the risks of token exposure and leaked secrets, they can leave dangling trust relationships too. Federated credentials are usually tied to two important token claims: iss (issuer) and sub (subject). For federated credentials in GitHub Actions pipelines, the GitHub IdP issues tokens with the following claims (truncated): { "payload": { "aud": "api://AzureADTokenExchange", "iss": "https://token.actions.githubusercontent.com", "ref": "refs/heads/main", "repository": "nicolonsky/ITDR", "repository_id": "715070358", "repository_owner": "nicolonsky", "repository_owner_id": "32899754", "sub": "repo:nicolonsky/ITDR:ref:refs/heads/main" } } Regardless of whether your repository belongs to an individual or an organization, the owner and repository names are constructed from your username or organization name. Get a GitHub Action OIDC token In a JavaScript GitHub Action, @actions/core provides getIDToken to request a JWT from GitHub’s OIDC provider. You can then acquire a token with const token = await core.getIDToken(audience);. See the OIDC token documentation for @actions/core for the full example. The GitHub Actions workflow also needs the following permission: permissions: id-token: write # required to request the OIDC token