<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Identity on Nicola Suter</title><link>https://nicolasuter.ch/tags/identity/</link><description>Recent content in Identity on Nicola Suter</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><copyright>© 2026 Nicola Suter</copyright><lastBuildDate>Fri, 01 Dec 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://nicolasuter.ch/tags/identity/rss.xml" rel="self" type="application/rss+xml"/><item><title>Have you heard about passkeys and AAGuids?</title><link>https://nicolasuter.ch/have-you-heard-about-passkeys-and-aaguids/</link><pubDate>Fri, 01 Dec 2023 00:00:00 +0000</pubDate><guid>https://nicolasuter.ch/have-you-heard-about-passkeys-and-aaguids/</guid><description>&lt;p&gt;With the availability of passkeys the FIDO2 standards become more accessible in the form of password managers, web-browsers and (mobile) operating systems — without the need for dedicated hardware such as FIDO2 keys.&lt;/p&gt;
&lt;p&gt;Microsoft is currently in the process of developing support for passkeys and shipping the public preview in Q1 2024:&lt;/p&gt;
&lt;figure&gt;&lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 alt=""
 src="https://nicolasuter.ch/content/images/1__pwNnOdcgBQPCEwZRTpGKNg.png"
 &gt;&lt;/figure&gt;
&lt;p&gt;While this is a very welcome addition to make passwordless authentication easily accessible without dedicated hardware such as FIDO2 security keys this also introduces new risks, especially for high value accounts — But why’s that?&lt;/p&gt;
&lt;p&gt;Let’s imagine a fictive scenario (that might become reality in the future) of a user registering a passkey with his password manager app for a Microsoft Entra account. The security of this passkey is now determined by the security measures on the password manager app.&lt;/p&gt;
&lt;figure&gt;&lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 alt=""
 src="https://nicolasuter.ch/content/images/0__7Mdx6OFRnIJ__wVbJ.jpg"
 &gt;&lt;/figure&gt;
&lt;p&gt;For the Microsoft roadmap this scenario is not (yet) applicable as Entra will only support device-bound passkeys. At the end of the day it is a similar situation as the security of the passkey depends on the device with the authenticator (passkey) on it and that’s not necessarily under the umbrella of IT security measures.&lt;/p&gt;
&lt;p&gt;Fortunately there is hope and the FIDO alliance included that critical aspect of distinguishing authenticators in their standards as we’ll find out below.&lt;/p&gt;</description></item><item><title>Have you heard of workload identity access token replay?</title><link>https://nicolasuter.ch/have-you-heard-of-workload-identity-access-token-replay/</link><pubDate>Wed, 08 Nov 2023 00:00:00 +0000</pubDate><guid>https://nicolasuter.ch/have-you-heard-of-workload-identity-access-token-replay/</guid><description>&lt;p&gt;Microsoft recently made the Microsoft Graph Activity Logs available as part of the Microsoft Entra ID diagnostic settings. This means we can use the &lt;em&gt;MicrosoftGraphActivityLogs&lt;/em&gt; Table to enrich custom detections and analytic rules.&lt;/p&gt;
&lt;p&gt;Within this post I want to elaborate closer on an attack scenario for workload identities that leverage workload identity federation and don’t have any persistent credentials or long lived secrets. But one type of credential artefacts is still theft-able — the short lived access tokens.&lt;/p&gt;
&lt;p&gt;Adversaries can try to exfiltrate the access token from the CI/CD environment such as a GitHub action and replay the token within another system to access Entra ID protected resources.&lt;/p&gt;
&lt;figure&gt;&lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 alt=""
 src="https://nicolasuter.ch/content/images/1__iTbbTvAIBrAQsd2KErnBGg.png"
 &gt;&lt;/figure&gt;
&lt;p&gt;This tactic could also be used in scenarios with App Registrations that leverage certificates or clients secrets where adversaries don’t have access to the credentials but get possession of the access token due to exposure in cleartext such as in log files or decrypted TLS traffic.&lt;/p&gt;

&lt;h3 class="relative group"&gt;Stealing and replaying workload identity access tokens
 &lt;div id="stealing-and-replaying-workload-identity-accesstokens" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#stealing-and-replaying-workload-identity-accesstokens" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h3&gt;
&lt;p&gt;To demonstrate a scenario to steal and replay an access token of a workload identity, I prepared a demo scenario with a GitHub action that acquires access tokens for the Microsoft Graph API and the Azure Resource Manager API. The pipeline leverages federated credentials (also referred to as workload identity federation).&lt;/p&gt;</description></item><item><title>Microsoft Entra Connect Sync Hardening</title><link>https://nicolasuter.ch/entra-connect-hardening/</link><pubDate>Sun, 24 Sep 2023 00:00:00 +0000</pubDate><guid>https://nicolasuter.ch/entra-connect-hardening/</guid><description>&lt;p&gt;Microsoft Entra Connect Sync (aka Azure AD Connect) allows establishing hybrid identity scenarios by interconnecting on-premises Active Directory and Entra ID (aka Azure AD) and leveraging synchronisation features in both directions. As you might already know, this brings potential for abuse of the assigned permissions to the involved service accounts and permissions of this service.&lt;/p&gt;
&lt;p&gt;On the internet are already some posts with subset of this information but I wanted to provide an actionable post with individual measures to implement. Of course should we do MFA for all admins and AD tiering but some of those steps involve more complex measures to implement and I will try to provide some individual building blocks you can use to harden the configuration of your Entra Connect service accounts.&lt;/p&gt;

&lt;h3 class="relative group"&gt;Understanding the scope
 &lt;div id="understanding-thescope" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#understanding-thescope" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h3&gt;
&lt;p&gt;To understand the scope of hardening we need to have an overview of the inner workings of that service. Entra Connect uses three different kind of service accounts for the different systems:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Entra: For the connected Entra tenant, per each Entra Connect installation a cloud only account is created by the wizard: &lt;em&gt;Sync_EIDC02_bba3d8efb72a@nicoladev.onmicrosoft.com&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Active Directory: The active directory account is used to connect a forest and allows both reading and depending on the leveraged synchronisation options also modifying the objects for password reset or group write-back scenarios&lt;/li&gt;
&lt;li&gt;Synchronisation Service: Under this principal, the actual Entra Connect service is running on the server&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Each kind of service account has various interesting privileges that can be abused by attackers. While the security of the server running Entra connect is also an important aspect I want to focus more on the leveraged user accounts as they are subject to multiple well-known attack scenarios.&lt;/p&gt;</description></item><item><title>Why you should use Entra Workload Identity Federation</title><link>https://nicolasuter.ch/why-you-should-use-entra-workload-identity-federation/</link><pubDate>Thu, 07 Sep 2023 00:00:00 +0000</pubDate><guid>https://nicolasuter.ch/why-you-should-use-entra-workload-identity-federation/</guid><description>&lt;p&gt;Microsoft Entra Workload Identity Federation is a hidden gem when dealing with app registrations and service principals because it will significantly improve the security posture of your workload identities. While I already blogged about the more technical and implementation specific details in my &lt;a href="https://nicolasuter.medium.com/github-action-with-azure-ad-workload-identity-federation-fb4e9d8bbf5c" target="_blank" rel="noreferrer"&gt;GitHub Actions with Entra Workload Identity Federation&lt;/a&gt; post, I want to highlight the benefits and scenarios where you can use Workload Identity Federation to access Entra ID protected resources.&lt;/p&gt;

&lt;h2 class="relative group"&gt;Quick recap on Workload Identities
 &lt;div id="quick-recap-on-workload-identities" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#quick-recap-on-workload-identities" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Should you read this post and wonder what a Workload Identity is, here a quick recap:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A workload identity (can be either a managed identity or service principal) is &lt;strong&gt;used to access resources protected by Entra ID&lt;/strong&gt; (Azure AD) from a service or automation&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;service principal is an instance&lt;/strong&gt; of an &lt;strong&gt;app registration&lt;/strong&gt;. To leverage a service principal authentication with either a client secret, certificate, or federated credential is required.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;managed identity&lt;/strong&gt; is a Microsoft managed identity of a resource such as a Logic App, Automation Account or VM. Microsoft manages the credentials of those managed identities. This allows for secure access as the credentials are not exposed to other services.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Managed Identity is the recommended type for workload identities for workloads that live in the Microsoft Azure ecosystem. For services and automations outside of Azure, service principals (app registrations) are the only option. The usage and credential configuration is unfortunately not a simple process.&lt;/p&gt;</description></item><item><title>Provoking Defender for Identity suspicious certificate usage alerts</title><link>https://nicolasuter.ch/provoking-defender-for-identity-suspicious-certificate-usage-alerts/</link><pubDate>Tue, 11 Apr 2023 00:00:00 +0000</pubDate><guid>https://nicolasuter.ch/provoking-defender-for-identity-suspicious-certificate-usage-alerts/</guid><description>&lt;p&gt;Microsoft Defender for Identity (MDI) has announced a new capability back in February to detect suspicious certificate usage for Kerberos authentication. It is already well-known, that Active Directory Certificate Services (ADCS) is a lucrative target for adversaries to achieve persistence in Active Directory as ADCS can be easily misconfigured resulting in an easy way to exploit those misconfigurations. In this post I want to show you how easy those misconfigurations can be abused and how and when such an attempt is detected by Microsoft Defender for Identity new detection capabilities for suspicious certificate usage.&lt;/p&gt;

&lt;h2 class="relative group"&gt;What makes a vulnerable environment
 &lt;div id="what-makes-a-vulnerable-environment" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#what-makes-a-vulnerable-environment" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;To be vulnerable for the certificate abuse scenario I will demonstrate an environment needs to have the following conditions present:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;ADCS Enterprise Certification Authority (CA)&lt;/li&gt;
&lt;li&gt;CA certificate must be present in NTAuth store (default behaviour when an enterprise ADCS CA is installed)&lt;/li&gt;
&lt;li&gt;At least one domain controller needs to have a kerberos authentication certificate enrolled&lt;/li&gt;
&lt;li&gt;At least one vulnerable certificate template that meets one of the following criteria&amp;rsquo;s:&lt;br&gt;
– “specify subject name in the request” flag enabled AND granting enroll permissions to low privileged principals like domain users or domain computers (or equivalent)&lt;br&gt;
– grants modify permissions to low privileged principals like domain users or computers (or equivalent)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The first three conditions are usually present in a standard Active Directory deployment and provide key functionality for other services. Certificate templates are also a standard thing, but there it really comes down to the (mis)configuration and hardening. Specterops documents those very well and provides tools to check for potential misconfigurations¹.&lt;/p&gt;</description></item></channel></rss>