Dirk-jan

Dirk-jan

@dirkjanm.io

Hacker at outsidersecurity.nl. Researches Entra ID, AD and occasionally Windows security. I write open source security tools and do blogs/talks to educate others on these topics. Blog: dirkjanm.io

2K followers66 following80 posts

The release contains a .NET Framework, a native and a BOF version that request this token without external dependencies.

It appears that Microsoft removed the discovery of all domains in a tenant through ACS, a technique that I shared at my BH/DC talks last summer (though probably not many people spotted the reference). I found it out during a live demo of course πŸ™ƒ

Next week at WWHF Mile High I'll present a major update to roadrecon, with some awesome features I wanted to add for a while! Friday 9am in track 1 for those attending πŸ˜€

I can't believe Microsoft killed one of my favorite labs in my Entra ID training 😭. The Azure CLI and Azure PowerShell are no longer FOCI clients. On a serious note: good for security!

Dirk-jan reposted

Note: Work related I do Active Directory stuff for a living. Security research to be more specific. One of my favorite niche AD topics is AdminSDHolder. It's even my vanity domain. I wrote a 159 pg book about AdminSDHolder. I'm kinda proud of it. specterops.io/resources/ad...

specterops.ioAdminSDHolder Misconceptions & Misconfigurations - SpecterOpsAdminSDHolder is an object and associated process in Active Directory Domain Services (AD DS) that helps protect specific sensitive and highly privileged accounts from being manipulated. This topic is...

Seems Microsoft is doing some app and permission cleanups and tenant restrictions lately. RIP Microsoft Planner FOCI client.

Dirk-jan reposted

Dirk-jan Mollema found one of the most severe vulnerabilities ever discovered in Microsoft Entra ID. One that could have compromised every tenant in the cloud. In this episode, we unpack the story, the stress, and the mindset behind responsible disclosure. πŸ”₯

I've been researching the Microsoft cloud for almost 7 years now. A few months ago that research resulted in the most impactful vulnerability I will probably ever find: a token validation flaw allowing me to get Global Admin in any Entra ID tenant. Blog: dirkjanm.io/obtaining-gl...

dirkjanm.ioOne Token to rule them all - obtaining Global Admin in every Entra ID tenant via Actor tokensWhile preparing for my Black Hat and DEF CON talks in July of this year, I found the most impactful Entra ID vulnerability that I will probably ever find. One that could have allowed me to compromise ...

Dirk-jan reposted

The ADSyncCertDump tool is now part of the adconnectdump tools and can be used to extract SP credentials from Entra ID connect hosts. I will cover that during my BH/DC talks today and Friday! Tool is heavily based on Shwmae by @ethicalchaos.bsky.social Link: github.com/dirkjanm/adc...

github.comGitHub - dirkjanm/adconnectdump: Dump Azure AD Connect credentials for Azure AD and Active DirectoryDump Azure AD Connect credentials for Azure AD and Active Directory - dirkjanm/adconnectdump
Dirk-jan@dirkjanm.io

Since we now can use Entra ID connect sync with a service principal, I thought I'd look into the new security measures. On hosts without a TPM, we can dump the cert+key. On hosts with TPM (second picture) we can use the key to create an auth assertion for roadtx to req tokens.

For those like me who prefer to stay in the terminal and want to call REST APIs like the Microsoft Graph without complicated commands or copy/pasting tokens: roadtx now has a graphrequest command to perform simple requests against these APIs and parse the JSON.

Got word from MSRC that the product team reevaluated their initial duplicate/not-a-vuln decision and will actually be fixing this validation flaw in EAM πŸ˜‚

Dirk-jan@dirkjanm.io

Last two weeks I talked about BYO Identity Providers in Entra ID and backdoors to External Auth Methods to bypass MFA. Only possible because MSFT doesn't implement the mandatory OIDC security measures. Slides with optional dark mode on: dirkjanm.io/talks/

Thanks for everyone who attended the talk at either x33fcon or OffensiveX. Both were amazing conferences and it was super fun to meet old and new people!

Since we now can use Entra ID connect sync with a service principal, I thought I'd look into the new security measures. On hosts without a TPM, we can dump the cert+key. On hosts with TPM (second picture) we can use the key to create an auth assertion for roadtx to req tokens.

Dirk-jan reposted

Just pushed a new versions for #AADInternals and AADInternals-Endpoint modules! Some bug fixes plus support for: 1️⃣ Microsoft Authentication Library (MSAL) 2️⃣ Token Protection 3️⃣ Continuous Access Evaluation (CAE)

Just found something super useful for my research...... In my own notes from 2023 πŸ˜… how I found it back then and why I didn't do anything with it remains a complete mystery.

Dirk-jan reposted

Spent the evening deep diving into MCPs and started a new project: roadrecon_mcp_server! This #MCP takes the web GUI output from the awesome ROADtools by @dirkjanm.io and offers tools to Claude (or your #AI agent of choice) to interact with the data: github.com/atomicchonk/...

github.comGitHub - atomicchonk/roadrecon_mcp_server: Claude MCP server to perform analysis on ROADrecon dataClaude MCP server to perform analysis on ROADrecon data - atomicchonk/roadrecon_mcp_server

Automatic browser SSO with a PRT on a victim device over an Outflank C2 implant πŸ₯° using ROADtools and some hackery from Max Grim.

It appears Microsoft quietly mitigated most of the risk of the "Intune company portal" device compliance CA bypass by restricting the scope of Azure AD graph tokens issued to this app, making them almost useless for most abuse scenarios. Thx @domchell.bsky.social for the heads up.

Normally you can't auth to Entra ID connected webapps with bearer tokens. But if Teams can open SharePoint/OneDrive with an access token, I guess so can we. roadtx now supports opening SharePoint with access tokens in the embedded browser πŸ˜€

Dirk-jan reposted

I don't know who needs to hear this, but there is no such thing as securing BYOD, especially non-mobile OSs You may limit damage your regular users can cause, but you are not keeping out an attacker when you accept a model that allows access from unknown, unmanaged devices

ROADtools update: I just released roadlib v1.0! This version drops the adal dependency, all auth flows are now implemented natively πŸŽ‰ This was mostly a personal goal, but it helps with adding new features, such as forcing MFA during device code auth independent of CA policies πŸ˜€

I'm still not seeing the mandatory Azure portal MFA we were supposed to get in October / 2nd half 2024 (depending on the source you read). Anyone know the timeline when this will *actually* be rolled out?

Since redirect URLs are tricky, roadtx now includes redirect URLs for many first-party apps and uses them automatically. Demo below shows the interactiveauth module being used for the complaint device CA bypass with the "interactiveauth" module and the "companyportal" client ID alias.

The second part of the demo shows a new module "clicodeauth". Instead of launching the managed selenium browser, it prints a URL that you can use in an external browser. This allows you to take advantage of things like SSO on managed devices. Paste back the final URL and roadtx gives you tokens πŸ˜€