In this episode of Entra. Chat, I dive deep with cybersecurity architect Fabian Bader into his research on bypassing poorly designed Microsoft Entra’s conditional access policies and what you can do about them. We also cover the game-changing new Group Source of Authority feature that lets you finally manage synced groups in the cloud, and share insights from Fabian’s work with MSRC to secure the platform - don’t miss this one if you want to stay ahead in cloud security! Subscribe with your favorite podcast player or watch on YouTube 👇 About Fabian Bader Fabian Bader is a Cybersecurity Architect at glueckkanja, based in Hamburg, Germany. He is a well-known researcher in the Microsoft identity space, creator of the Cloud Brothers blog, and creator of the Maester and Token Tactics V2 tools. His work focuses on Microsoft Entra and the Defender suite, helping customers secure their cloud environments. LinkedIn - https://www.linkedin.com/in/fabianbader/ 🔗 Related Links * Fabian’s Blog - https://cloudbrothers.info/ * Entra Scopes - https://entrascopes.com/ * Maester - https://maester.dev/ * Token Tactics V2 - https://github.com/f-bader/TokenTacticsV2 📗 Chapters 02:19 The Story of the "Cloud Brothers" Blog 03:32 The Origin Story of Maester 07:39 Token Tactics V2 & Continuous Access Evaluation 09:43 How Conditional Access Bypasses Are Found 12:05 What is FOCI (Family of Client IDs)? 18:04 Hardening Your Conditional Access Policies 29:59 V1 vs V2 Token Endpoints Explained 38:19 Using Graph Activity Logs in Defender XDR 42:45 The New Group Source of Authority (SOA) 54:59 Workplace Ninjas US Announcement Podcast Apps 🎙️ Entra. Chat - https://entra.chat🎧 Apple Podcast → https://entra.chat/apple 📺 YouTube → https://entra.chat/youtube 📺 Spotify → https://entra.chat/spotify 🎧 Overcast → https://entra.chat/overcast 🎧 Pocketcast → https://entra.chat/pocketcast 🎧 Others → https://entra.chat/rss Merill's socials 📺 YouTube → youtube.com/@merillx 👔 LinkedIn → linkedin.com/in/merill 🐤 Twitter → twitter.com/merill 🕺 TikTok → tiktok.com/@merillf 🦋 Bluesky → bsky.app/profile/merill.net 🐘 Mastodon → infosec.exchange/@merill 🧵 Threads → threads.net/@merillf 🤖 GitHub → github.com/merill Get full access to Entra. News - Your weekly dose of Microsoft Entra at entra.news/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_00From the latest hacks to cool updates. Join the ride. Don't be.
SPEAKER_02Hey, folks, welcome to another episode of InterChat. And today I am super excited to have Fabian with me. Fabian Bader, he's a cybersecurity architect at Gloc Kanya. I hope I got the name right. Thank you. Awesome. So Fabian is, like if you've been in the interspace, you would definitely have come across him. I first came across Fabian in his blog posts. So very detailed blog posts and it's very easy to understand
the complex topics
SPEAKER_02that he shares about. And then I've struck up a friendship with Fabian over the last two years. We've been working, catching up almost every other week as we built Amazter. So we'll come to all of that. Fabian, do you want to just give us a quick intro about yourself?
SPEAKER_01Yeah, first of all, happy to be here. Thank you for having me. It's an honor to be in such a nice lineup that you have always every week here. So thank you for that. And yeah, I'm from Germany, living in Hamburg, a city in northern Germany, and helping our customers to get into Entra, but mostly Defender in recent years. And yeah, uh, also do a lot of in the identity space.
SPEAKER_01And yeah.
SPEAKER_02Yeah. We're going to be talking about all the different stuff that Fabian has created, the tools and his research is, uh, some amazing, like top-notch research that he's done. And, uh, his blog is a, like a source of wealth, um, For me, like every time you write something, it's always very exciting to read about it. So Fabian is not very frequent blogger, but when he does, there's always a lot of meat in his posts. A lot of work goes into it. So my first question is your blog.
SPEAKER_02the name. It's Cloud Brothers.
SPEAKER_01It's a bit of a funny story. So you might not know that my blog is called cloudbrothers.info. And as you can see, I'm not two or many and I don't feel like many. So why brothers? Many ask me as well. And basically it is a bit of a yeah thing of the past so i worked with two colleagues a few years back and we decided to do a blog together and if you scroll back you will
find i think two or
SPEAKER_01three blog posts by the other two and um yeah as life progresses uh People progress, they go different routes and different blogs. So Chris Broom was one of those. He now has his own blog. The other colleague don't have a blog, but stopped blogging. And at the end, it was just me. And I decided I don't want to rename again and just keep it. And so now I'm Cloud Brothers.
SPEAKER_02Awesome. Awesome. Perfect. That definitely makes sense. Yeah, so let's tell the story about Meister. So I, two, is it like two years? I think it's three years now. Maybe, I don't know. Really quickly, yes. So I came across one of Fabian's blog posts and the GitHub you had shared about sentinel pester you have created a framework for sentinel using a pester framework and using powershell for sentinel and that's when it sort of
planted the seed for me to like hey wouldn't it be good if we start using pester powershell pester as a
SPEAKER_02test framework for My initial focus was just Entra. So that's when I came up with sort of like, let's do something like this. And at that same time, the conditional access, what if API was also, they started building it. And I was like, this will be a cool thing to build where we can use conditional access and test and find out, you know, all the possible combinations. So initial focus was just conditional access. So I reached out to Fabian on Twitter right back then.
SPEAKER_02And I asked him, like, what do you think? And he was all in.
SPEAKER_01Yeah, I love the idea. So as you mentioned, Pasteur and PowerShell are always close to the heart and having something where I can now test conditional access policies automatically, it was very cool to think about this. I think I still have somewhere the original code where it was just like, no UI, just Pester, only conditional access. And I'm so happy that we got into this together because the
Pester part of it,
SPEAKER_01I would say, is not the most appealing to the eye. It's just CLI. What we now have with the UI and the HTML report that is so much more approachable to people who have never done something like that. And I think it really helps the Maester project to go forward.
SPEAKER_02Yes, yeah. So Mainster has grown so much more than what we originally intended, right? It's so huge. For those who don't know, it's a test automation framework we built. We just took existing things, put it together, but it's come such a long way from just conditional access, what if API to... like a lot of entra then thomas came along we like fabian said look it'll be good to get thomas with all of the stuff he did in the entra id security config analyzer
um so there is an upcoming uh podcast we are going to be doing with thomas and sami
SPEAKER_02as well so the watch out for that one it's going to be good So, yeah, so we sort of evolved and like I catch up with Fabian every other week we've been catching up. And so it's been fun over the last few years. I think I worked with you more than even some of my own colleagues at work because we sort of catch up frequently and discuss and, you know, work on things. Cool. And Meister, like the last time, the stats I saw, we had like almost 80,000 tenants that have run Meister.
SPEAKER_02Unbelievable, isn't it? Yes. It's crazy when you think of those numbers. And the number of times it's been run, like every time Invoke Meister is called to create a report, like it's been run nearly 3 million times, like 2.8 million or something times. It's crazy. Because everyone runs, you know, the automations. Cool. So yeah, that's fun. I'm sure we'll talk a lot more about Meister. But today we want to talk more about the stuff that you've done. There's some new research you did about conditional access.
I know you do token tactics as well, like a version two of the module and intrascope.
SPEAKER_02So tell us about that story and how it came about. You worked with Dirk as well recently.
SPEAKER_01Yeah, happy to. So I think Token Tactics V2 is something that came along a few years ago when I was looking to test a bit of the new or then new continuous access evaluation part in Entra. So the ability to block an attacker even when they already have the access token, something that was not possible before. Yeah.
Most of the tooling that was available at the time just didn't support yet
SPEAKER_01continuous access evaluation. That is why I took the tool token tactics from Stefan Boros and Bobby Koch and rewrote it for the V2 endpoint because it was all V1 endpoint in Antra. Oh, right. So I had to move it over to V2 and that is where also the name came from. So it was not meant as like the V2 of this already still maintained project, but it was more of, I wanted to have something for the V2 endpoint.
SPEAKER_02Oh, now it makes sense. Yeah, I didn't realize that was a story because for those who don't know, Intra has two token endpoints. There's a version one and a V2 endpoint, which I think it'll be good to get into that as well. I'm sure a lot of people don't really know what those are and what they mean and why does Microsoft still have version 1 and version 2. Maybe you can jump into that as well after you finish telling the story.
SPEAKER_01Yes, definitely. Let's do that. Because I think it's also very important to see that there are sometimes crucial differences in both of those, how they handle requests. And yeah, basically this is when the V2 of Token Tactics started. And since then I, yeah, maintained it and added new features. I had outside help. Of course, the community was also very nice in like putting stuff in there. And yeah, over the last...
SPEAKER_01About a half a year, a bit more. I was looking into more of the conditional access bypasses. So I think it was around Christmas last year when there was some research published where the Intune endpoint was especially called out for being a bit of a... Nasty fellow allowing bypassing the compliant device method and still accessing a
SPEAKER_01lot of the graph endpoint, especially the Azure AD graph, which is, of course, still not completely gone. And at the time it was like user impersonate. So very high permissions. If the user had high permissions, you could impersonate the complete user. And basically, yeah, move around certain conditional access policies that still enforce device compliance for maybe teams, but not for this endpoint.
SPEAKER_01And yeah, Microsoft, after initially dismissing that this was a problem, they at least now took care of it that they removed the user impersonate and narrowed the scope of what you can actually do. And of course, you will have always have those little bypasses. And those are needed because you have a bootstrap problem. For Intune, it is like, okay, you want to get something into Intune, but how you would do this if it's like not yet compliant,
SPEAKER_01but you want to have compliance. This is just not possible.
SPEAKER_02Exactly.
SPEAKER_01So it's reasonable to have those.
SPEAKER_02Correct.
SPEAKER_01Yeah. Sadly, not all of them are completely documented, which makes it a bit hard for an administrator to actually know why is certain stuff behaving like this or in another way. And that is basically where I began to look into the whole thing of How can I enumerate most of the endpoints that are available as so-called foci endpoints for somebody who is not familiar with the term?
SPEAKER_01Yeah, what is foci? Yeah, foci. The family of client IDs, it's called. And I think if you search the Microsoft Learn articles, you find one mention of it. Right. There is now a lot more research out there where you can read what it actually is, but in like a few words. Basically, normally an OAuth app can only get a refresh token for itself, but never for another OAuth app.
SPEAKER_01And with the family of client IDs, now you can get a refresh token and therefore an access token for another resource, as long as it's also in this family of client IDs. Microsoft has introduced this, as far as I understand, to allow seamless switching between different applications, like you're going from Teams to Outlook to something else on your phone, and you don't have to sign in every time. but it can be a sign in the background you don't see.
And this special handling of those refresh tokens helped me to automate the whole process of enumerating over different conditional access policies and users because
SPEAKER_01it allowed me to go over all those applications without having to sign in every time, but I could just exchange the refresh token for a new one and test, hey, can I now get a new refresh token? And if it was not possible, I was like, okay, my conditional access policy is behaving the way I want it to. And I build out a lot of different use cases like, okay, what happens if I set a conditional access policy to always
require MFA for all
SPEAKER_01applications? Or for all applications, but if you have one exclusion in there. You exclude, right. And all those different use cases, basically, I build up a little... Use case database, you would say, and stored in there, which endpoint allows me still to get a refresh token? And what kind of scopes do you get? So what kind of access to the actual resource behind it do you get? And Microsoft nowadays has not only like five resources,
it's a bit more. So it got very extensive in testing and I had to improve the token tactics part as
SPEAKER_01well, because now I had to do like parallel testing to have all those automatic stuff happen in like, not days, but at least minutes.
SPEAKER_02Right.
SPEAKER_01And at some time in the research, I also asked Dirk Jan. I think many of you are in the Entra space and the security space know this name, Dirk Jan Mollermann. And he is very active with his road tools implementation. And there he did also some testing together with me, and we did a joint talk at the Troopers Conference this summer in Heidelberg,
SPEAKER_01which was really cool, where we presented our... findings and everything and a lot of the stuff just now I think three weeks ago I got the final approval from MSRC to talk about everything and they decided okay we looked at all the stuff you send us and Most of it now is considered by design and they want to update the documentation
SPEAKER_01over the next coming weeks. And yeah, so I can release a bit more now after this, but at the time of the troopers, it was a bit fast. limited in scope what i could release but still i had like one finding where the authenticator app had special permissions and was able to access scopes that you shouldn't be able to access when you don't have device compliance and you were able like to read the telephone number of the user that is
registered as an mfa method
SPEAKER_01or list all the MFA methods that a user had registered. So there were a few things where the implementation was not as tight as Microsoft might have thought in the beginning. But in this case, they fixed it. They put in a blocker in the graph endpoint, and now you can no longer access those scopes. And yeah, as one result of the whole scanning and testing,
we released a website.
SPEAKER_01And this website is called entrascopes.com. And it's basically a long list of applications, not only FOCI, but also others that with the help of Dirk Jan, we were able to also test applications. And you can see, okay, either which scopes for a particular resource do you get? So if I use like Bing search as the application and access the MS graph, which scopes do I get?
SPEAKER_01Which resources could I access? Because they are pre-consented. And of course, we also included our research about the bypasses. So you even can filter on, hey, where are known bypasses? And then there's information in there about, okay, where is this documented? If it's documented or maybe is it fixed now? All this we now include there as well.
SPEAKER_02Right. So let's say I'm an intro admin, right? And I'm designing conditional access. What are the things that I should look out for based on the research that you found? What are the interesting things you found that when people are designing policies, they should be aware of? Yeah, I think one of the most important thing to know is, and this was documented all along,
SPEAKER_01If you have an exclusion in your conditional access policy, something like require MFA for all applications, but this application in the background, this will open a little gap where suddenly a user can bypass this control and do this only for a very narrow scope. So it's only for the AD graph and the MS graph and only for certain read operations.
SPEAKER_01But I think this is something most of the entry admins don't know. And if they add an exclusion, they don't know what happens in the background. And sometimes this... leads to, hey, now my application works, even if it didn't work before. Even if I didn't exclude it especially, but some other application was excluded somewhere. And I think to know about this, it's very important. And Microsoft now also has a very good documentation on how you can
prevent it,
SPEAKER_01so how you can close this gap. And I guess it's something where you should look into if it's something you want to do or if you are fine with that this control can be bypassed because you maybe have another mitigating control already in place. So, okay, you have require MFA and require device compliance. And for device compliance, you have some exclusions, but for MFA, you don't. Something like that.
SPEAKER_02You need a baseline where you don't have any exclusions at all, right? Like at least one thing, which in most cases is MFA, at least that you should have, where you don't have any exclusions. Are there any sort of targeted ways to do it without just doing exclusion? The exclusion is only for the app, right, that you're talking?
SPEAKER_01No, that is the bit of a curious part. The moment that you have one exclusion, there is like a catch-all exclusion for those very limited scopes. So it's, I think, user read. And this means you can read the information about the user. And this is not only for the excluded app, but actually for all the apps. So if you want to try this, you could use something like the token tactics or token tactics v2 or road tools
SPEAKER_01just to see how is your conditional access policy behaving. And I think that's also something if you really want to make sure that your conditional access policy is behaving like it should, you should give it a try from some of those tools that don't know any other bypasses, that just go through the flow that is documented and just try it. And this way you will see where this may be something
unexpected behavior that you
SPEAKER_01otherwise maybe wouldn't have seen. But as you already said, Merle, it's super important to have like one baseline policy in there that has no exclusions on an application basis for... most of the users in scope. So excluded users is not as big of a problem because they will just exclude the user and don't have this limitation I just described. And having this with like MFA is in most of the cases the best
bet because now you
SPEAKER_01have MFA as the single control that always will be required. And if you have Windows Hello for Business or other methods to sign into your machine, you already have a strong authentication and the user impact is like super minimal. Got it, yeah.
SPEAKER_02And for people who ask, like, let's say they say, okay, I do have a baseline policy that says all apps, you know, and you create, let's say, MFA, right? Like, and you don't exclude any apps. So you restrict to that point and keep it really strong. But then someone, something comes up, like some particular app or some service that needs some sort of exclusion, then is the right way to say don't exclude the app,
but then maybe exclude based on a very specific user or an account and then have
SPEAKER_02them in a different policy so you're not like compromising your overall policy and you have a different policy for that scenario yeah if it's possible and you can like not only limit it to a certain app but you can limit it to a certain number of users or maybe just a few users that actually
SPEAKER_01need it then that is definitely the way to go In reality, it always can happen that you have this one application that is not possible to exclude for only a certain number of users. And that, of course, can happen. But I think, especially for MFA, it's getting less and less. For device compliance and other controls, There are definitely exclusions that you will have to implement
if you go for like
SPEAKER_01AVD and stuff like that. There are certain cases where it's not possible without an exclusion on an application basis. And if you actually need it for MFA as well, then I... at least would try to look into the by the mitigation that Microsoft has published. And this is basically, you are using an extension attribute tagging the Azure AD graph application with it,
SPEAKER_01and then building a conditional access policy, especially for that, that then again requires MFA. But this you definitely have to test good because it will change the behavior overall. And maybe the applications that you excluded will then still be caught up in the other one because they are now using implicitly Azure ID Graph somewhere.
SPEAKER_02Which, yeah, they should not be because it's trying to get deprecated. So if you have vendors who have apps that still are using Azure ID Graph, it's a good time to get folks off that. It's one of those deprecation stories that there's a lot of work happening to try to move people off AD Graph and so on. And I think today there was a message sent a post as well about MFA overall. Microsoft did two phases of MFA for admin rollout, you know, Azure.
SPEAKER_02So the Azure portals mostly are done and, you know, finishing up. But now there's enforcement. Today, the announcement was for enforcement of Azure PowerShell and CLI and all of sort of the things that would require MFA. And most of the security folks go like, yeah, I mean, all those are sort of privileged. Usually CLI, PowerShell, you should be doing MFA, like you should not be using MFA. Basic auth, ROPC flows in that.
SPEAKER_02But now Microsoft is going to start enforcing it from October 1st. So there's a 30-day notice, the final notice. And from October 1st, Microsoft will start enforcing. And even yesterday, like two days ago, someone was asking me like, okay, it says Azure PowerShell and Azure CLI. What about this Teams CLI? And they listed a whole bunch of other CLIs. And do those also still need MFAs? And at this point, I'm like, just do MFA. Like, why are you trying to,
you know, like pigeonhole, like carve out and exclude from MFA?
SPEAKER_01It's not about like, how can I get around this? It's like, how can I get to MFA?
SPEAKER_02Yeah. If you're waiting for Microsoft to enforce things... then it's sort of like at the tail end where Microsoft is seeing a lot of compromises and that's why Microsoft is starting this enforcement because it's, you know, the responsibility of each customer to secure their thing, right? Like you have all of the different settings you need to try and waiting for all the deadline from Microsoft and then postponing those. Like Microsoft, because of what customers share as feedback, there are all these options to, you know,
SPEAKER_02extend the deadline of when it's going to be enforced and so on. But if you care about your organization, you should be doing it way before any of those deadlines that Microsoft is setting because that should be like the last resort side of things. But I've been in IT and it's hard to get convinced stakeholders and do the work and get the change and it's a lot easier to blame Microsoft and say, see, Microsoft is enforcing, so it's done.
SPEAKER_02But you should, you know, mix that into the news and say, like, we are going to do it now because Microsoft will be enforcing it. Yeah,
SPEAKER_01but what you said there, I think it holds true very much, especially like in large organizations where you have steering committees and change advisory boards. And if you are now coming in there and it's like, hey, this is the deadline we have for Microsoft and we have to do MFA now, You have saying this like for three years, but now Microsoft is making it as to do. I think it also helps a lot of folks out there to finally get something changed through those boards and get approval for that because there is
no other way.
SPEAKER_01Correct. Also, everybody's like screaming at Microsoft, like being secure by default and all that.
SPEAKER_00Yes.
SPEAKER_01So having those changes, I think it's one of the most important changes in the MFA story that we have seen, because now at least the important admin interfaces like Azure, they are protected and you cannot like bypass this anymore.
SPEAKER_02Correct, yeah. But even then, the enforcement is still only Azure. It's not like in all of the other CLIs. So you should take the opportunity, and while you're doing this, just enforce MFA for everything, like all of the CLIs, any privileged role. You should just blanket, say, MFA so that... you save yourself a lot of trouble, you know, down the line, because you're going to be doing this again another time, if not, right? So just get that done.
SPEAKER_01Yeah, 100%.
SPEAKER_02So you were talking about, you know, the endpoints, right? Token endpoints, V1, V2. That's an interesting topic, fascinating one. Can you sort of walk people through, you know, what are these endpoints and what are these tokens and what are they used for and why there are two versions? I know people who deal with apps a lot in Entra will know a little bit of these details. But for folks in general, what are these endpoints?
SPEAKER_02Why does Microsoft have these two different versions and what is better? What should they be doing when someone is onboarding an app?
SPEAKER_01Yeah, so I guess if you are a regular user of either the portal or something, you won't see this V2, V1 too often. But it's even then something you will recognize because when you sign into portalazure.com, the first thing that will happen is like it will be redirecting you to loginmicrosoftonline.com. And this is where your actual authentication happens. So you enter your username, password, 2MFA, all that stuff.
And already at this stage, it's decided if you're going to the V1 endpoint or the V2 endpoint. And both of those are actually the authentication flow endpoints where Microsoft
SPEAKER_01has published definition on how you can like requests access to certain resources. So you want to go to the Azure portal. This means you want to use the application Azure portal. And in the background, you want to have access to Azure RM, the resource manager and change something, maybe also graph and all that, but this. Let's stick to one resource, one application.
And basically with V2, there was a lot more options that you could define.
SPEAKER_01So with V1, you could say, I want this application and this resource. And with V2... When you say, I can say you're talking about an app dev, right?
SPEAKER_02When they're building the app, they'll say... you know, in their URL, they'll say, I want access to certain things or it's previously granted.
SPEAKER_01Correct, correct. And with V2, you have a lot of more options that Microsoft is giving you. Like you can add additional fields like, hey, my application supports something like continuous access evaluation. This is like a flag you can now set in this endpoint and only the V2 endpoint will understand what you are talking about. So in the background, both of those endpoints, they talk a bit of a different language. It's mostly the same,
but there are subtle differences in how they interpret certain things and how you
SPEAKER_01have to request those access information. And at the end of both of those flows, you always will get a so-called bearer token. And this is a combination of different tokens. In many cases, you will get something called an ID token, an access token, and also a refresh token. Sometimes you don't get the refresh token, but let's stick to all three and just go over them for quick measurement.
So the ID token is basically something that the application can use to say, hey, who are you?
SPEAKER_01Oh, hey, you are Fabian. The application can use the information in the ID token to identify you. There's information about the groups you are in. All that stuff can be in the ID token.
SPEAKER_02And the app can just read that and show the username, you know, their full name in the app, you know, the right-hand side. Like the app doesn't need to make another graph call to just get the display name. It's in the token that comes from.
SPEAKER_01All the important information is already in this token. You can use it as an application developer to do initial authorization information even like with that. The second token, the access token, it's currently something where you also can look into as an application, but you shouldn't do that. Jinx, right? We both said at the same time. Yeah, absolutely.
SPEAKER_01And one reason why you shouldn't is because The format of the access token, it's something that actually only the resource you are accessing, so Azure RM in our example, has to understand. So you as the application don't have to understand it. And there are even like efforts from Microsoft to encrypt the whole token. I think currently it's only implemented in a few rare cases. I have not yet seen it widely,
SPEAKER_01but basically in this access token, there's a lot of other information stored that the actual resource needs to understand who you are and what to do with it.
SPEAKER_02Correct. As an intermediate app, it's meant for the actual resource, right? If you have... you're signing in and you're going to use SharePoint resource, the token is meant for the SharePoint resource or the backend system to read the token and do things. But the app itself that's in the middle, maybe a mobile app, some developer is writing, they shouldn't read the token because at some point, maybe Microsoft might encrypt it, right? If you use the token and build some functionality, The day that Microsoft changes that format of the token or
encrypts or make any
SPEAKER_02changes, your app will fail. And then you will go like Microsoft made changes. But that's one of the things where it's not a published API or documented thing that you should look at when you're building your app. From a security research standpoint, the access token is still very, very interesting.
SPEAKER_01So the day Microsoft will encrypt it, I will be sad a bit. As a security researcher. But you should overall be happy that it... It's always signed, so you cannot change it. So that's already good.
SPEAKER_00Yes.
SPEAKER_01Yeah. And the last one you get is a refresh token. And for the refresh token, it's already true that you don't know what's in there. So this is some, I would say, random string. Of course, it's something generated by Microsoft that for them... will have some logic and they most likely can decrypt it in some way and extract information. But you as an application developer or somebody who has not access to those certificates won't be able to make any sense out of it.
But this refresh token is super important to avoid having to sign in interactively
SPEAKER_01every time because now your application can use this refresh token to ask for a new id or access token after some time has passed because normally an id or access token is about an hour lifetime and after that you have to somehow refresh it and this is where the refresh token comes in handy you can now go again to one of those endpoints v1 or v2 and say hey This is now the refresh token flow. I want to have a new access token or a complete new set of bearer tokens.
SPEAKER_01And then you will get a new set with new identifiers. But the refresh token, and this is also a very nice thing for our security folks, it will have the same session ID over the whole lifetime. So it makes it even like able to track even attacker, got a hold of such a refresh token, we can track, okay, what did they do, which resources were they accessing with it, and then from them try to see what did the user do in this
particular application
SPEAKER_01maybe even.
SPEAKER_02Cool. Yeah, so that's a really good overview of the token endpoints. So what else have you been looking into
SPEAKER_01Yeah, so the last few months were mostly this, but also one pet peeve of mine came up recently, and this was like the Defender for Identity team or the XDR team. They released a new table to us in the Defender XDR suite, and I did, I think, two years ago now, a whole blog series about the Microsoft Graph Activity Log.
This is basically all the information when somebody is accessing the MS Graph and
SPEAKER_01they are reading data from there or they are updating a resource, patching something. This log source will give you insights who did when what, or at least to some extent. And the problem for many companies was this is like a super big log because, of course, there's a lot of information in there. Many applications, or I would say most applications at some point use the Microsoft Graph to gather information now. Yes.
So you will see a lot of requests against this endpoint and in this log, every
SPEAKER_01every get, every patch will be in there.
SPEAKER_02It's crazy, right? Like if a user just opens a Word doc, they don't do anything. They just click to open a Word doc. All of that gets logged and the API calls that are made. If you press like your Windows button,
SPEAKER_01the little image that is shown of you, this will be from the Microsoft Graph. Correct.
SPEAKER_02So if someone presses the Windows key and the start menu pops up, that graph call as well yeah yeah crazy so as you can imagine very big logs very much data and um if you want to ingest it like two years ago it was something you had to do in sentinel so extra cost for you and um yeah now we have this in xtr and
SPEAKER_01As like with all XDR logs, those are included in some of the license that you have purchased from Microsoft to use XDR. I think in the preview, they don't have any mention of the exact licensing yet, but I think this will come when it moves to GA. And but now you don't have additional costs. So you already paid your license fee for, let's say, the MDE or for MDI.
And now you get this new table completely free of charge in addition to what you already have.
SPEAKER_01And this was like super cool to see. And so I did a bit of a revamp, revisited my old blog post and did a comparison also where Thomas Nolheim really was a bit faster than me. He did an awesome version and allowed me to use it then in my blog post. Right. Yeah, so there are differences in fields and what information you will get.
SPEAKER_02Between the graph API for getting the graph activity log.
SPEAKER_01Yeah, between the Sentinel forwarded data and the stuff that is in XDR. So XDR has a bit of a narrow scope. But it's still every get, every patch will be in there. So it's not like a filtering of identities or calls. It's more of, okay, you don't have the exact same columns. And I think for like what it's meant to do in the XDR space and this like threat hunting. it's already now giving us a lot of information and something
like I mentioned with
SPEAKER_01the session ID, there's also something called a unique token identifier that you can use to match. And this is available and super helpful in finding who used when what. And now we can even like go for Who is using a tool like GraphRunner and extracting all your information about the whole entry ID? You can now detect... Yeah,
SPEAKER_02you can easily now track, right, and set alerts and know when...
SPEAKER_01Why is, like, somebody from, yeah, human resources extracting all your service principles? That's not something that is normal.
SPEAKER_02Right, exactly. Yeah. Cool. Awesome. So that's with all of the activity. I remember when it was in private preview, obviously as an MVP, you had access to the graph API when they were doing the graph activity logs. So there's a lot of feedback you shared and helped improve all of that.
SPEAKER_01Yeah, that was really nice to have an early peak.
SPEAKER_02Nice.
SPEAKER_01Cool.
SPEAKER_02All right. The final topic, source of authority. Oh, yeah.
SPEAKER_01That's a big one, I think. Currently, it's not that big, but I think it will be big in the next one or two years for many companies.
SPEAKER_02So let's set the stage. What is this SOA, Source of Authority? I need to do a visual for it, but lots of people are very excited.
SPEAKER_00Oh, I'm looking forward to that.
SPEAKER_02I just posted today. Yeah, I did a visual today after a long time. on some path key stuff. So the SOA is a really interesting one. People have been waiting for a long time We have the Zero Trust workshop and we say first, then next for what people should do when thinking of Zero Trust holistically. And in the next, there are always some boxes we put and say, no, you can't do this today because we don't have that feature yet.
SPEAKER_02Like Entra doesn't support it yet. And so this group source of authority is one of it that's now become available. So what is it in your words and why is it important?
SPEAKER_01Yeah, for people who are like, what is Meryl and Fabian talking about? So basically the idea in the whole identity space is you always have some source of authority, SOA. And this is just one system. This is maybe your... payroll system or some other system that is basically saying, hey, this is exactly how a user should look like or a group look like.
SPEAKER_01And for most deployments out there for a long time, this has been Active Directory domain services. Of course, as I said, maybe you had a payroll system, but they were just writing the data to ADP. And then from there, it got distributed to other systems. But if you wanted to change a name or something, you always had to do this in AD. And with now the group SOA change ability,
SPEAKER_02So what was the problem then? Can you give an example of what cost issues? Most admins that have gone to the cloud and they configured Entra Connect and all
SPEAKER_01the groups were now synced and everything was super. And then they wanted to change something. And then they gone to the Entra portal and, hey, I want to add a user to this group. And it's like, okay, I can't do this. Why can't I do this? Oh, okay, because it's an on-prem group. So source of authority is on-prem. So the only options you were left with like is create a new group in entra. And like move everything over. But this was like super tedious.
And that is the reason why many folks were like, okay, I still have my AD.
SPEAKER_01I maintain those groups there. But for other groups like MC65 groups, I'm using the entra portal. And for the help desk, this gets super confusing. Yeah. Because one example for me practically was we had some groups and we started using
SPEAKER_02them in Intune to say, you know, assign these apps to these users who are in this group and so on. So it was now only being used by Intune and certain places in Intra, maybe in a dynamic group. And you couldn't go and make any changes. Like if you were to delete and create, you had to go and go to all the places in maybe Intune and SharePoint sites where that group was used. And then you had to switch to using the new group. It was like a lot of work.
SPEAKER_02And people were like, okay, I'll just keep going back to Unprem AD to add members in that which people don't really like doing that.
SPEAKER_01Yeah, and basically now we have this ability. I think it was just a few weeks ago that the initial preview was launched into public preview. And now you can set a little property on basically any synced group that tells, hey, now your source of authority is entra. You are now managed in the cloud. And as soon as you set this,
it gets editable in the cloud and your AD on-prem group is like completely
SPEAKER_01unhooked. Any change you do there, adding somebody, removing somebody, renaming it, whatever you do, it's just overwritten every time the sync cycle goes about because there is no automatic writeback. So that's also important to know if you do this. It basically means you are uncoupling this group completely from your AD. So if you have something that is reliant on this group in your AD, You maybe should think a bit more before doing this immediately.
But for groups where you were just waiting to move them finally to the cloud
SPEAKER_01because you don't need them anymore, that's your perfect opportunity. You can change it, and you can change it on a per-group basis. So you don't have to decide, oh, I want to do this now for everything or everything in an OU. No, you can do it in the cloud, change it. And there's even the opportunity to roll back, remove this flag again. So you can even test it before. And if there's a problem, move back and test it then a bit more.
SPEAKER_01And so far, it looks super promising. because you now have the ability to change the source of authority. And if you do it smart, you can then change your on-prem group to a universal group. And for universal groups, there is with the entra sync, even a writeback. And this means you now have full circle. If you need, for some reason, this group's still on-prem for whatever old application that
wants to query an LDAP
SPEAKER_01group or whatever it may be, you can do it this way around. Of course.
SPEAKER_02Yeah. Go ahead and finish.
SPEAKER_01Yeah, basically, I just wanted to mention, okay, if you're changing it from local to universal or global to universal, there are other implications that you should be aware where you can use the group and all that stuff. But just as a general, just if you have like this simple group, you want to move to the cloud, it's now possible and right back is possible if you change it to a universal group. Yeah.
SPEAKER_02Like in the past, I've written scripts that are running daily, which sort of look at the users in the group and there's a manual sync happening between the on-prem group and the cloud group. If someone is added to the cloud group, it adds that same person to the on-prem group and vice versa. So you can get rid of a lot of those scripts by switching to using the group source of authority so that you can manage more things in the cloud,
SPEAKER_02make life simple for you.
SPEAKER_01Yeah, and I think we now also see this trend moving forward, like Exchange just last week or two weeks ago now published, hey, you can now change the source of authority for currently on-prem managed Exchange user also to the cloud. meaning this whole last exchange server that you still had standing or even if you had it removed but you had to like use the on-prem command let's to change the
attributes this now also gets moved to the cloud and there is the ability to now do
SPEAKER_01this in exchange as well which is super exciting to see because That's definitely the way forward we should go, like move away from as the like authority of your identity being somewhere on premises to Entra ID and making the ID only something that is consuming information from Entra for those applications that still need it where you cannot move finally
SPEAKER_01complete to the cloud. So I think this change, seeing it and how it evolves now is really, really cool.
SPEAKER_02Yes. Yeah. Lots of exciting stuff to come there.
SPEAKER_01Yeah. One thing. if you change this group of SOA to look out for is to definitely make sure that it's clear to everybody that this group is no longer managed on-prem. So you can like even delete it because it's no longer needed on-prem. Of course, only if it's really no longer needed. But for Entra, it's no longer needed. So as soon as it's cloud managed, you can delete it and it won't be deleted in the cloud.
SPEAKER_01So no problem there. But there's no indicator. There's no little flag that you are seeing or description change. So if you're just moving it to the cloud and somebody is not aware of that and is still changing the group on-prem, they will be a bit disappointed that their changes never work.
SPEAKER_02Yes, yeah. Yeah, to make it cleaner, you should either do the write-back and make sure that it's syncing back again, or you should, like, you know, delete it so people won't get, you know, loose groups. You end up with, like, two different groups, and you won't know who got added in different places, right?
SPEAKER_01Yeah. One thing I also came across in my testing is... I have scoped my cloud writeback groups to a certain OU. And of course, the first time I did this and I like, I changed it to universal. I changed the SOA to the cloud and nothing was written back. And I was like, why is that? Until I was like, oh, of course I have to move this group now in the scope of the OU. Cloud Sync.
SPEAKER_01Otherwise, it will be like, I don't know it. I cannot sync it. And after doing that, writeback worked perfectly.
SPEAKER_02Cool. And you set up Cloud Sync for that, right? To do the writeback?
SPEAKER_01Correct. So currently in my environment, I have like Sync from AD to the cloud using Entra Connect. And the Cloud Sync part is just limited to group writeback at the moment. but giving me the option to move further workloads over time.
SPEAKER_02Yeah, we covered that with Dania in one of her early episodes. of being running ConnectSync and CloudSync side by side.
SPEAKER_01It's a good reference. So with Christopher Proom together, I'm doing a talk about, hey, do you still need Entra Connect? Is it still needed anymore? And this was one of the talks we watched multiple times and we even had like a little snippet out of it that we used in the talk. So... You will see it at Workplace Ninja US at the end of the year.
SPEAKER_02Yeah, that's what I wanted to share as well. So an announcement for the folks listening, both Fabian and I will be presenting about Meister at Workplace Ninjas in December. So... If you want to, you know, join in, you should register. There are going to be so many people. It's a lot of really good folks will be coming there for Bliss Ninjas.
SPEAKER_01Yeah, and it's the first time for the conference being in the US. So there were... Workplace Ninja in Switzerland and other European countries, but this year, first time in the US. And I'm really looking forward to it. I think John is doing an awesome job preparing everything. It really looks awesome. He's building up there.
SPEAKER_02Very, very exciting. Like I'm seeing all of the speakers and You're going to get not a triple dose, right? A quadruple dose of Fabian. He has four sessions that he's going to be presenting.
SPEAKER_01It's a lot of work. We'll be busy two days.
SPEAKER_02Yes. Fabian was already doing three. And I said, look, I'm doing Maester. You have to jump on. We both have to present.
SPEAKER_01Yeah, I think that's, but it was like, I couldn't say no to this because our initial release of Meister, we had to do separately. You did it in the US. I did it in Europe for the PowerShell conferences. And so, yeah, we have to do it once together. Yeah.
SPEAKER_02Nice, nice, cool. Looking, I'm definitely, so yeah, we've been working for like three years now, but I'm going to see you in person for the first time. So I definitely can't wait till December to see you in person and, you know, catch up with everyone else as well.
SPEAKER_01Yes, definitely. Looking forward to that as well.
SPEAKER_02Awesome. Thank you so much, Fabian. You've been really awesome. You have such a wealth of knowledge. All the research you do and the things you do, I really appreciate all of the researchers who sort of work with MSRC and help make Microsoft secure. So that's a huge contribution that all of you do towards the community. And I'm super appreciative of the time and effort that goes in not only the research and then,
SPEAKER_02you know, working through with MSRC and so on to, you know, raise those things. And either it ends up being changes in the product or in documentation or in guidance. You overall helped our community. So very, very much appreciated from that. everyone at Microsoft and the community as a whole.
SPEAKER_01Thank you so much. It means a lot.
SPEAKER_02Yes, absolutely. That's the least I can do, right?
SPEAKER_01Thank you. I think you do your fair share of community work as well.
SPEAKER_02That's nothing compared to all of you who do so much and Yeah, I do want to get all these people on the chat, on the podcast. So I need to get Dirk at some point and all of the other folks too. So looking forward to that.
SPEAKER_01Thank you so much for having me. It was a blast.
SPEAKER_02Cool. All right, folks. Until next time. See you again.
Microsoft is moving millions of users off SMS and onto passkeys, and most admins now have to decide which kind of passkey each group of users should get. Nishant Kaushik, CTO of the FIDO Alliance, the industry body...
AI agents are arriving in every Microsoft 365 tenant, and the questions admins ask first are what they cost to run and what it costs to secure them. In this Workplace Ninjas US special, four of the event’s speakers...
Most SaaS vendors connect to your tenant with one multitenant app and one credential, shared by every customer. Kelvin Tegelaar, founder of CyberDrain and creator of CIPP (used by well over 10,000 MSPs), sees it from...
Most Conditional Access gaps aren’t exotic. They come from reading policies the wrong way: as firewall rules with an “allow”, as a list of platforms that seems complete, as an MFA exception for the office that made...
Most tenants have the same problem: hundreds of app registrations and service principals, client secrets that were set to expire in a hundred years, permission grants nobody remembers approving, and test tenants that...