Sami Lamppu and Thomas Naunheim, the creators of the Entra ID Attack and Defense Playbook, join me to discuss their incredible 5-year community project. We talk about the most complex attacks they’ve researched, including the “black box” token and PRT attacks, and their shocking findings related to TPM and device compliance. We also dive deep into their brand-new chapter on the new Microsoft Entra Connect Application Based Authentication model and the critical steps you must take to secure it. Subscribe with your favorite podcast player or watch on YouTube 👇 About Sami & Thomas Sami Lamppu is a Microsoft Security MVP and a Principal Cloud Security Lead at Elisa with a strong focus on the blue team side, helping organizations proactively prevent attacks. Thomas Naunheim is a Cybersecurity Architect at glueckkanja and a Microsoft Security MVP. He specializes in Microsoft Entra, identity and access management, and cloud security posture. * Sami LinkedIn - https://www.linkedin.com/in/sami-lamppu/ * Thomas LinkedIn - https://www.linkedin.com/in/thomasnaunheim/ 🔗 Related Links * Entra ID Attack and Defense Playbook - https://github.com/Cloud-Architekt/AzureAD-Attack-Defense 📗 Chapters 02:35 Origin Story of the Playbook 07:08 Overview of the Attack Chapters 09:53 Who is the Playbook For? 13:59 The Hardest Chapter to Write: Tokens 21:48 Shocking PRT & TPM Findings 24:43 NEW Chapter: Hacking Entra Connect (ABA) 29:10 How to Secure the New Sync Account 36:53 HSCAR: The Posture Analyzer Tool 45:09 Keeping the Playbook Updated & Community 53:12 What’s Next & Final Advice 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_01From the latest hacks to cool updates, join the ride, don't be late. Hey folks, welcome to another episode of EnterChat. And today I have two special guests. These are the creators, the authors of the EnterID attack and defense playbook.
SPEAKER_01It's widely used by a lot of people. And how many stars does it have on GitHub?
SPEAKER_00A little bit more than 2,400? 2,000 plus tasks. It's widely used by many folks, and we even have it integrated with Meister.
SPEAKER_01So I'm really excited to have Sami Lampu and Thomas Nordheim, who are the brains behind the playbook. Welcome to InterChat.
SPEAKER_02Thank you. It's an honor to be here. And what a great opportunity also to have a chat about the project we have been working for the last five years already. Time flies, I have to say.
SPEAKER_00Yeah, thanks for having us.
SPEAKER_01Cool. Awesome. So do you want to just give us a brief about yourself, Sami and Thomas?
SPEAKER_02Yeah, I can start. My name is Sami Lampu and I work as a principal cloud security lead in ELISA. And basically my main focus is on the blue team side. I'm helping organizations to prevent attacks on the proactive way. And that's kind of a main work I do in daily basis. Nice.
SPEAKER_00Yeah, and I'm Thomas Nonham. I'm a cybersecurity architect at Klukanya and also Microsoft Security MVP. Yeah, I'm deep in love with Microsoft Entra. Two topics close to my heart, everything related to identity access, but also cloud security. And when it comes to both topics, everything related to privilege, identity access management, but also security posture is in particular scope and focus on my race.
SPEAKER_01Awesome. So we are so lucky to have the two of you. Thomas is like royalty in the intra-community and Sami as well, putting all of this together. So what's the origin story? How did you come about this? with the playbook? And, you know, what is the playbook? We started it actually, as I said, five years ago in 2020 and during COVID times.
SPEAKER_02And I think we just found each other somewhere from social media that, hey, that guy is actually doing quite cool things around Entra. And we started to chat actually, if I remember right, Thomas, it was through Twitter on that time. Just having a brainstorming of changing ideas that what we could do on the proactive side and defensive side about how to protect that one. And that's how everything started.
SPEAKER_02That is actually my thought on that. But how do you remember that one, Thomas?
SPEAKER_00So, yeah, absolutely. It was also a crazy time in the spring, mid of 2020, because with all the COVID-19 situation, everybody moved to the lockdown. So there was no way to go to conferences, having community talks. And during that time, yeah, I had some research how attacks in Azure AD to that time, Azure AD works. there was a question, hey, how to trigger those alerts?
SPEAKER_00And one of the first topics was password spray. And I was one of the readers from Zemi Blogs and he had a lot of content around defender identity protection. And then quite soon the idea was born, hey, why not trying to have a shared research, trying to hammer some noisiness to tenants and then figure out how detection works And then maybe starting to go through the common attack scenarios and figure out
SPEAKER_00how it works and what we can do to avoid them.
SPEAKER_01Nice. And how long did that first version take for you to build out? Uh... Timeline for a typical chapter varies between three to six months, depending on the scenario.
SPEAKER_02And when we selected Password Spray to be the first chapter, we actually thought in the initial sparring that this will be very fast, something like one month. But it took literally four months on calendar time. And one of the biggest problem or challenges on that time was that we were doing all the attack simulations in our demo environments. And detections requires robust sign in history to be present on
intra-ID on that time as RAID.
SPEAKER_02So that was kind of one of the biggest challenges in the first chapter, which also affected to the timelines. In addition, we must say we have a daily job, so you must find also the time.
SPEAKER_00And during the first year with all the COVID-19 situation, it was also quite challenging to find a little bit of free time to do that. But we are in luck. Sammy and I, we are morning audits. So the perfect time for us to have a chat, to have a call, a discussion on research results or talking about what could be a potential content. That is something what we do quite in the early morning hours
before business starts.
SPEAKER_00And, yeah, that was also some nice learnings in the first chapter, how we like to collaborate, how we like to interact, how are the sparing sessions and so on. That was also one of the challenges in the first chapter, but we find a good mode how we can collaborate on that one.
SPEAKER_02And just addition that we started to do everything on Teams and having, we were sharing Word documentation on that time, but quite soon we turned to GitHub to have a better collaboration in there. But it's a funny side note as well that If I remember right, Thomas, we were working remotely totally without seeing each other three years, two and a half years, something like that, until we met live in person in Seattle,
SPEAKER_02actually, in MVP Summit.
SPEAKER_01Wow. Nice. Yeah, that's the COVID story, right, for a lot of us. So tell me about the chapters. You said Password Spray. Yeah. Can you give like a high level overview of all the chapters you have so far?
SPEAKER_00Yeah, the idea was in the beginning that we, as I already said, collect the most common attack methods. And we started with password spray, but we're also going through other content. What was also quite interesting is everything related to content grant attacks. So legit content was also one of the chapters. We did some research on tokens. That was also a tough one because we started to understand how
all the primary fish
SPEAKER_00magic works behind the scenes. How is the protection level of the different session and token artifacts in the browser? So that was also something I think one of the most intensive chapters that we had previously. And also about workload identities, so service principles and pipelines and the recent one. And I think that is already the second chapter related to EnterConnect. And we released some content around the new application-based
authentication.
SPEAKER_00So we really try to have various aspects, what could be attack or entry points to the Microsoft enterer story. And what we also did is building some appendix. And there was great contribution by the community. For example, Chris Brum did... some appendix content about containment when it comes to lateral movement from on-prem to the cloud. So we really like to cover a lot of attack scenarios.
SPEAKER_00And I think, Sammy, one of the challenges was also following the same structure, right, for each chapter.
SPEAKER_02Yeah, definitely. And if we look at each individual chapter, we try to follow the same pattern there, which is short story and simulation instructions how to simulate the attack scenario, but the strong focus is on the detection and mitigation side. And of course, one of the chapter has a different approach, which is Entra ID security config analyzer. Of course, it's not an attack scenario.
SPEAKER_02In general, more of a posture tool to highlight the possible weak configurations in Entra security configurations.
SPEAKER_01Nice. Yeah, I think we'll come to the configuration analyzer. So when someone's reading this, who is the audience that you had in mind?
SPEAKER_00I would say in general, everybody that is involved in identity and also from the security perspective. Because as Emi already said, we have this perspective about the attack scenario and also give some some content related how you can simulate the attack. So there's great content in the community, how you can simulate, for example, password spray, how you can simulate a phishing attack and so on. And we like to give some hands-on instructions for the good
guys, how you can simulate... those attacks because everybody likes also to understand what are the ways that
SPEAKER_00attackers take to start compromising an identity. So I think for everybody interested in attack scenarios, it's totally interesting. And when we're talking about mitigation, it's more the plus side. So everybody that is responsible in securing Microsoft Android, there's tons of of content there. And we don't like to rewrite Microsoft Learn content. So there's also great stuff there and also some great community
blog posts. So we make references to those existing advisories, how to mitigate the attacks. And Sammy and I, we are both big fans of KQL, the Microsoft security stack.
SPEAKER_00Yeah. So we invest a lot in figuring out, is there any way to write custom detections or maybe increase the capabilities by optimizing Defender XDR settings and so on? So you can see there's different aspects and angles that you can take for the content. And I guess there's no particular audience. So everybody... should read stuff.
SPEAKER_01Cool, yeah. And you start by first looking at how to replay it, right? Yeah, it's... I would say that the typical approach is that we identify or see something happening in our customer environments or someone from the community highlights that this attack scenario is something that would be good to invest on a research
SPEAKER_02point of view. And that's where we start having a sparring session about the topic. Would this be possible for having a chapter in the playbook? how the attack flow goes, what would be the possible detections, are there native detections available in the Microsoft Security Stack? And especially on the latest chapters, we have, as Thomas already mentioned, we have put a lot of attention and focus on the KQL side of things as well. And it's also quite important for us when we're talking about
mitigations and
SPEAKER_00describing the attack scenarios and what is the potential impact for the environment to define majorities. Because the playbook is really designed for everybody, regardless of license level or how is the majority in a doing all the mitigation stuff if they're already on the side of phishing resistant authentication for example so for us it's quite important that um we give um
depending on the majority um some some hey what are the efforts to implement those things what what are the uh the positive impact um and that's quite quite also important because otherwise people will read uh the document and say oh um There's nothing what I can do or I have already done the mitigation part. So we really like to provide some tips and recommendations for the different majorities.
SPEAKER_00Right.
SPEAKER_01Cool. Which of these chapters would you say was like the hardest for you to write? Like, you know, in terms of you couldn't find enough information and you had to do a lot of work. digging around.
SPEAKER_02I had the ball over Thomas. What is your opinion? I have one on my mind.
SPEAKER_00Honestly, it's hard to say. I would say from the detection part, it was really the story about workload identities and pipelines, because it's really hard to correlate between pipeline run, sign in from the service principle and activity, especially if in the pipeline we had to manage identity and there's no information about IP addresses and so on. So I think that was quite hard for the detection part.
I want to add that we had Joshua Sanders a lot working with us with that chapter
SPEAKER_02and is very skillful with KQL. So he did a lot of work with us on that chapter.
SPEAKER_00Yeah, and that's really important to mention. So when we're talking about writing the chapters and also the idea behind the playbook, it is something what we really like to have as a community-driven project. So everybody is open and welcome to join the project, writing chapters. We have community members that are doing the review part, people that have some suggestions how to update content and so on.
SPEAKER_00And even for us, with all the sparing between two guys, it's always helpful to have others that... Yeah, join, giving their view on this topic. So we had some familiar names that joined the project and take part as contributors. So that's quite important. But Semi, what was your favorite one? So, you know, I'm encouraged to know. Yeah.
SPEAKER_02Do you want to know favorite one or the most difficult one? Both. I would say if we just look on the timeline, adversary in the middle attacks chapter actually took six months. It was really, really hard to Even though the attack is pretty straightforward and we know how it works, but getting all the correlation working with KQL was kind of painful on that time.
But the most difficult chapter, in my opinion, had been definitely the token part. I mean, there's so much different scenarios, different angles in that specific chapter. And we needed to really have quite many sparring sessions that is this really working?
SPEAKER_02How we understand it working? And to be able to simulate and test everything, it was very time consuming.
SPEAKER_01Yeah, I mean, looking at the list, that was my pick that I thought would have been the hardest because... The PRT and even the other tokens, they're not documented because they are like a black box implementation, right? And implementation can change as well. So it might work one day and then the next, there might be some changes and it might be different the way it works. Just in the last podcast I recorded with Kian, we were talking about all of the tokens and that's a thing that
he plays with a lot
SPEAKER_01in his research. And he was talking about Rudy who publishes, you know, in the Intune side, all of how the tokens are used and goes into a lot more detail when it comes to the device side of things. Yeah, so it does take time to know how to See how all of that works, especially with devices. You need different types of devices to test with and all of that. So it's a lot of time and effort that goes into it.
And especially regarding the token, the challenge was we had some different scenarios.
SPEAKER_00So what about an unmanaged device when it uses? using a session proxy like Defender for Cloud apps? What about the access tokens in the browser on a rich client app? So as Sammy mentioned, scope is the key when you like to write a chapter or a book or something like that. And when we're talking about tokens, it explodes directly because you be like a child in a chocolate factory. There are so many things to explore. And for example, for the primary refresh token,
SPEAKER_00there's this great Microsoft Learn article, which already mentioned a lot of insights about where the keys are, what will be used for signing or encrypting. And I guess we have read this article 10, 20 times and then starting to write our own visualization, how everything is in relation to each other and what are the dependencies and And then read it again and compare it to what we try or mean that we figured out so far. So this chapter was also from visualization and to explain how
it works behind the
SPEAKER_00scenes, the most tough one, honestly. Yeah, trying to describe very complex things on a simplified way, it's always difficult.
SPEAKER_02But as Thomas mentioned, scoping is really, really important because you always find different paths on your security research, but you need to try to keep the focus on the key item you are investigating and researching on the chapter. Otherwise, it will be a never-ending story.
SPEAKER_01Yeah, so how do you decide what the scope will be when to stop?
SPEAKER_00I think we are the wrong persons to give a perfect answer to that one.
SPEAKER_01You don't know when to stop.
SPEAKER_00Yeah, but honestly, in the first weeks, it's quite okay. You try to explore what could be part of the content. And of course, sometimes Sammy and I have different directions where we go for our research. And maybe some person is more interested in the attack description. The other one is in love with everything when it comes to mitigation. And after a couple of weeks, when we figure out, okay, we are still in the research phase and we are not starting to
start the deep dive
SPEAKER_00content, then we have a shared session and then discussing, okay, what will be the expectation from the readers? So because you can describe a lot of things on the side notes, But then you'll leave the path that maybe the most people are interested in. For example, primary refresh token or refresh token replay. Of course, Defender for Cloud apps and how it is involved in the whole story and what could be additional entry points by using a session proxy is super interesting.
But for the most people that just like to know how they can protect a PRT or when
SPEAKER_00is a refresh token protected are not maybe most interested in that. And then we started, okay, let's split that one. Maybe that would be a topic for another attack scenario about unmanaged devices. So it's really also something that we like to take the view from the readers, from the audience, what would be in their particular interest. I guess, I mean, that is mostly what we do, right? Yeah, good and I agree more.
SPEAKER_01Yeah. So when you were doing the research for the PRT, right? What was the thing that you learned, knew, and what surprised you the most?
SPEAKER_00Yeah. So I guess for me, it was the most interesting part about the role of the TPM. And in a perfect world, everybody has their TPM enabled. But then we started to try to disable a TPM like an attacker. So what happens if TPM becomes unavailable? And then what is the impact for the PRT? So a user now tried to sign in. And when TPM is not available,
is there some suspicious or some user-facing impact that makes it a little bit more
SPEAKER_00suspicious? And then we figure out, for example, that the device compliance policy that checks if the TPM is available has some delay. And then we started to have some research. When is there a client side or event trigger interval for updating the device compliance status? And then you can imagine then you'll be in another rabbit hole. Okay, under which condition it will be updated or not. And so overall, we get some side notes in this chapter.
SPEAKER_00Hey, take care that device compliance updates are not in real time. And if there's a change in the... And the security posture of the device like TPM becomes unavailable. That's important. And also if TPM is out of the game and the user sign in and, for example, UPRT will be used, for example, the session key and everything else leaves the TPM and will start outside of the TPM. Even afterwards, the TPM is back in action.
SPEAKER_00I don't know if that's the same situation like, when was this chapter? Two years ago or something like that?
SPEAKER_02Yeah, two years ago. But during that time, that was one of the findings that we had and quite interesting to see.
SPEAKER_00But I guess that was once, right, of the Bing Semi?
SPEAKER_02Yeah, definitely. And we spent quite a lot of time for investigating that specific scenario Thomas described. I remember that we had multiple discussions with community folks who are very deep on the device side of things that how in the reality these compliance settings and policies are configured from a device point of view. And we added quite a lot of, or at least a few side notes to the playbook,
SPEAKER_02taking into account also admin accounts and the devices they are using, maybe to have separate policies for those ones with more strict requirements.
SPEAKER_01Cool, cool. And so what's the latest chapter? Tell us about the newest one that you added. This just came out last week, right? Yeah. two weeks ago.
SPEAKER_02Yeah, yeah, it was last week. It was actually a second chapter about EntraConnect because was it, Thomas, three years ago when we...
SPEAKER_00I like this time, yeah.
SPEAKER_02Yeah, yeah. So we started to elaborate EntraConnect three years ago because we know that there are three different accounts basically what EntraConnect is using. And on that time, The account, which is responsible for syncing all the objects from on-premises to cloud, and in some scenarios, vice versa on the back. On that time, the account was normal AD account, which was used for...
Our adversaries could also leverage that account if they get access to that account. And on that time, the account also had very high privileges to Azure AD on that time.
SPEAKER_02Sorry, I'm using Azure AD all the time. I've been working with Entrides so many years since it was born, so Azure AD is somewhere back in my memory. It's born, actually. Anyway, on that time, that specific account, as I said, huge amount of permissions, basically. If adversaries could get that account in their hands, they could do everything. Quite a lot of bad things on the EntraID side.
That was mitigated a few years back, and the permissions were shrinked down.
SPEAKER_02And now when new authentication method was introduced, We had a session with Thomas that would this actually be something that we would like to invest on the security research side of things, because many organizations are starting, even though, of course, the old methods and education methods are still in use, many organizations are supported, but many organizations are also turning into or updating their intro connect to use the new method.
SPEAKER_02So that's how we started to look on things. And I think it was your idea, Thomas, if I remember right, to look on this one.
SPEAKER_00Yeah, one of the things that rings the bell for us is when Microsoft decided to go with application-based identity. And the word application is involved. That already gives some attention because you had this topic in one of your latest episodes when it comes to application governance. We see some, how I can say that, room for improvement in many organizations. Yeah. And of course, it makes sense to go with certificates because of storing the
certificate in the
SPEAKER_00TPM. And I think the most entry point is still the on-prem environment. So absolutely, Microsoft likes to protect those credentials on the Entra Connect server side. But on the other side, we had before a user account server. that is protected by Microsoft Entra because of the directory role assignment for this directory synchronization account role. And now it's an application object. And the application object is not protected by default if it
has some sensitive API permissions.
SPEAKER_00And now we ask ourselves, hey, who are the persons in the cloud that could take over the role of this ABA, of this application-based identity for Entra Connect? And Semi already mentioned, there are people that are updating to the latest EntraConnect server version. And in particular, Microsoft is pushing the migration to this new authentication model. And therefore, we found it really important that there is some content out there to give some
SPEAKER_00attention. What could be a potential attack scenario? And what you can do with workload ID premium, but also with detection to avoid abusing those application identities by some, for example, cloud application admins.
SPEAKER_01So tell us, what are your recommendations for those sync accounts? I mean, people should go and read the playbook, definitely. But off the top of, you know, what you've recommended, what are the big things people should look at?
SPEAKER_00So, Sami already mentioned we did some work with detections. And I think there is some easy way to figure out when there is some backdooring of the application registration. For example, an attacker added a certificate or a client secret to those ones. And we have found some detection logic when, for example, a certificate is used and at the same time there's a second certificate that will
SPEAKER_00be used. And then once again, the first certificate is back to the sign-in events. Because normally, if there's a rollover by the certificates by the Android Connect, the previous one will never be used again. So there's some easy way to figure out detections. Also, who has updated the certificate because it is there. EBA himself that updates certificates. So there are detection capabilities, but we had also some great ways and simply ways to avoid those abuse.
SPEAKER_00Right, Sammy?
SPEAKER_02Yeah, that's right. And regarding the detection capabilities and hunting capabilities, we added approximately 10 KQL queries for the chapter because if attackers catch a proper account into their hands, which has, for example, hybrid identity admin permissions, those... If a hybrid identity admin, for example, is in use, we have seen that it's quite many,
quite many scenarios in quite many environments excluded from CA policies.
SPEAKER_02So in that conclusion, we take that one into account. We can basically execute this attack outside of Entra Connect server, for example. And for that reason, we created those queries to build the correlation. And then we have also, I think it was introduced somewhere on July, August, advanced auditing for EntraConnect server, which can be interested to Sentinel to get more information about,
SPEAKER_02for example, certificate activities on EntraConnect and build correlation in there.
SPEAKER_01Nice, nice. As an admin, intra-admin, what are the things they can do to, you know, secure this? Because it's fairly new, right? I know some companies are just now moving into their ConnectSync, you know, switching over to these apps and so on. What would you recommend they do? I think they should follow the golden rules and the most essential steps about
SPEAKER_00application management in Microsoft Android. So avoiding owners. So it would be a bad idea to give everybody owner permission on this Android ConnectSync service principle and application object. Also consider application admin as a control plane to zero. So really high sensitive role because then they can take over this identity as well. And of course, in a particular way, when we talk about maturity, every organization has already adopted Workload ID Premium,
SPEAKER_00and it's also on additional costs. But I guess it's around $3. And when we're talking about the limited numbers of those Android Connect Sync, identities, I would also recommend to use Workload ID Premium to have identity protection signals, to use conditional access, to restrict the usage and sign-ins from the public IP address, outgoing IP address from the Entry Connect server.
SPEAKER_00And I think with that in mind, you're already on a good majority level. And when you do some strictly monitoring addition, I think you have already some really interesting insights and mitigation capabilities. And as we said from time to time, there seems to be some hidden benefits as well, because during our research, we figured out that the tokens that will be used by Entra
Connect Sync are CAE
SPEAKER_00capable. So it seems that there will be some mechanism to revoke those tokens in real time. We were not able to simulate that during our research, but maybe that is something that Microsoft is doing at the moment in the back end. And with that in mind, you should have also a playbook in case of a compromise. So if your intro connect server has been compromised or involved in an incident to stop synchronization,
to isolate the ABA identity and make sure that there is no letter of movement path
SPEAKER_00that can be taken by an attacker.
SPEAKER_02Yeah, couldn't agree more. So Thomas described all the recommendations already. To summarize, enhanced detection capabilities, take Entra Connect advanced auditing into use. And one thing to highlight is also this conditional access policy, CEA, to mitigate the possible of the block authentication attempts outside of
SPEAKER_02interconnect IP addresses.
SPEAKER_01Yeah, that's like, yeah, in addition to ID protection, yeah, what you said, right, you can restrict with the conditional access to say this service principle should only come from this specific server or you could, you know, if it's running in the cloud, you could have that endpoint. And limit that service principle only from there, right? If someone gets access to that service principle or the cert tries to use it from outside, that can get blocked if you have the CA policy for that.
SPEAKER_01But yeah, it's a different license. It's a per app license, but you can just get it only for that one app if you're doing that move.
SPEAKER_00Yeah, and one other important thing, you should also keep in mind who creates your own ABI identity because it is an app role, so an API permission that can be granted. So app inventory, monitoring what are the applications that will be newly created could be also a good idea. But we will not give more advice. There's still a reason to read the chapter and there's more to discover.
SPEAKER_01Cool. Yes. I mean, so that's just a taste of, you know, what the depth to which Thomas and Sami have... gone through I'm like that's a lot of hours to spend to figure out how you know all of that works and to prove things and then do the detections as well on top of that right like I think that's why you there's so much wealth of knowledge and gold in there And you're just giving it away for free to everyone.
SPEAKER_01That's the insane part. And we have the AIDS car, which we spoke about, right? Entry-ID security config analyzer. So that's a special chapter.
SPEAKER_02Yeah, very special.
SPEAKER_01Yes.
SPEAKER_02Because it's not following the same pattern what typical chapters have, attack detection and mitigation part. But as I said on the introduction part, I've been working on a blue team side many years already, I think seven or eight. And During that time, I've been conducting so many Azure AD and 3D security assessments. And when we had a sparring session about this possibility,
SPEAKER_02we were thinking that nowadays, on that time... when you are evaluating Entry ID security settings, there are quite many portals you need to dig deep into, even though you are very familiar with the things. Of course, portals and Entry ID is evolving all the time, so different settings are introduced and so on. And we were thinking that Would it be possible to create kind of a one-look posture tool
which would leverage
SPEAKER_02Azure Workbooks? That was kind of an initial idea. And then everything started. We were starting to identify... The endpoints from Entry ID, what could be used. And again, spend quite a lot of time with scoping because there are a few settings behind those endpoints. But that's how everything started. And how many do you have in that today? A good question.
SPEAKER_00I guess something like, I would say 50, something like that.
SPEAKER_02Something like that.
SPEAKER_00Yeah, because as Semi already said, one of the tough questions is, what is security related from the settings? And we figure out in the playbooks or in the chapters before, we always point to the same tenant security settings that we have as a recommendation to, to review and think about that maybe the default setting by Microsoft is not the right one for your organization when you take a look on this
attack method.
SPEAKER_00So the idea was, hey, why not also giving a tool quite easy to review? And one of the key aspects from my point of view are three things. So first of all, you compare your current setting with the default by Microsoft. And our personal recommendation as part from the experience from the playbook. The second one is, and I think that was something which Semi did a great job, to find a mapping to Mitra. Because you'd like to understand what is the particular scope
or relation of this
SPEAKER_00setting to the other, to an attack technique or tactic. And if you have weakness in this area, do you have some coverage in the detection part? So really having a match between mitigation and detection mapping. And the third one is because Sammy and I are very close to the whole security stack story and have also been involved in SOC engineering and SOC projects. how we can integrate the security posture monitoring to
Microsoft Sentinel and
SPEAKER_00having, for example, capabilities to trigger an alert if someone modifies a security setting that leads into a weak security posture. So there was a lot of aspects involved. And once again, we are not the experts for everything. And designing workbooks is not my favorite one. And I guess you had also not the biggest love to this topic. So we were more than happy to welcome Marcus on this project. We did a great job there as well.
SPEAKER_02Yeah, definitely. Markus created the workbook and all the visualization for that one, which was very helpful. That's not something we do in daily basis. Yeah. Because it was quite complicated as well.
SPEAKER_01Yeah, I can imagine. And you go, you integrate, like you provide the workbook plus a few other things, right? Using the settings for these?
SPEAKER_00Yeah, the idea was, hey, let's use 100% Azure cloud native resources and the solution should be run as a cloud resource in the customer tenant. So that was the original idea. And of course, it can be a challenge to give an instruction, hey, you need to create this Azure resource, copy and paste this code and so on and so on. So we spend also a lot of time how to write it in Azure Resource Manager templates.
SPEAKER_00So that's quite easy to have a one-click deployment. So the architecture looks like that we have a logic app. A logic app collects the data from the Graph API endpoints and doing some data collection so that we can... push the data to Sentinel workspace, to a custom table. And afterwards, there's a workbook for visualization, but also analytic rules that will be triggered if there are changes in the
SPEAKER_00configuration. And the idea was also that the JSON file that defines the endpoint the recommended value and Microsoft's default configuration value is located on the GitHub repository of the EntraID and Attack and Defense Playbook so that everybody can review, contribute, and update the content. And it was also during that time the idea if there's someone else that'd like to use a monitoring tool or build a security posture tool,
SPEAKER_00they are able to use this JSON file to integrate it to their own tool. And honestly, I must say, and Sammy, I don't know how is your feeling about that. There was two challenges in the project. First of all, finding a schema for all of the graph API endpoints and how we like to use them in HSCar. And the second one is finding a good name for the product. And it was during that time that Microsoft rebrands Azure AD and we had also to rename our project as well.
SPEAKER_00So that was also too tough.
SPEAKER_02Yeah, I remember that this was one of the hardest chapters to build because so many different things included in here. I could highlight those two, what Thomas just mentioned, defining the schema, because having an aligned schema with all of the endpoint settings and data which we are getting there, and the naming of the tool, that was definitely the most difficult one.
Especially when there are three guys trying to figure out what would be the good
SPEAKER_02name and acronym for the tool. But I still remember that I spent quite a lot of time with Sentinel side of things because it wasn't easy as well. But very happy for the result that we were able to accomplish our initial goal in there.
SPEAKER_01Yeah, there's a lot in there. And I think, I mean, I worked with Thomas and we integrated a lot of HSCAR into Maester as well, the test framework. So it pulls all the updates as you make changes. They get built into Maester and you can, you know, quickly run them as a once-off through that. Now, I think with this, you know, HSCAR and also even the other chapters, one of the constant is that the cloud is changing, right?
Like, for example, we were speaking about that service principle for the sync account, right?
SPEAKER_01And there have been lots of changes. I remember, was it Thomas, you messaged me one day saying, you noticed some roles change, like you're monitoring and you're doing your research and then suddenly it changed the next day.
SPEAKER_00Yeah, it's even tough for us doing the research that Microsoft is changing stuff behind the scenes and it makes it also quite hard to compare results because if everybody is changing and... Yeah, and even for the Playbook content. So that's also a call to the community. So we are always looking for people that likes to contribute to the project to keep it up to date. Because with increasing numbers of chapters and content, it's quite hard for two guys to keep everything up to date.
SPEAKER_00And so that's also one of the... are tough on our project.
SPEAKER_02Yeah, I totally agree. I think it was last year when we updated most of the content and also included Mitre. It was end of 23 or early 24 when we included the Mitre content on all of the chapters, which was kind of a huge update from our side and huge work. to include that one. But we have at least constant grant chapter we have updated.
SPEAKER_02And now when we talk about EntraConnect, we decided because the scoping is a little bit different. We are focusing on the service principal side and the new authentication method. We will not update earlier content. We leave it as it is because the attack scenario still remains and we are focusing only on the new stuff and build totally new chapters. So that's, I think we have already eight chapters and two appendix. And as Thomas said, it's very hard to keep all up to date all the time.
SPEAKER_01Yes, yeah. And like I, as being at Microsoft, I can see the changes like Microsoft making based on research and things that folks report to MSRC and so on. Microsoft is also tweaking those. And, you know, internally we have the whole Secure Future Initiative with SFI. And that's one of the things that drove the whole app-based model for the Interconnect Sync, right? Because it was not very nice when you're using like user
account for that and then
SPEAKER_01having you exclude it from the conditional access policies and so on. So those, like I see the changes happening from inside and then you having to keep up with with all of that so how how did the community get involved like for folks who've been listening in and they've come in they've read they saw something they want to recommend changing uh is there like a discord chat that they can discuss in github what's the sort of the typical flow github is uh
SPEAKER_02I think the easiest way to contribute, if you would like to update something, just send a PR from there. And of course, we are quite active on social media, especially on LinkedIn. So, VOLOX can easily reach out us from there as well.
SPEAKER_00Yeah, and we get also some issues. So that was quite impressive to see after we integrated 8SKAR to Meester. There has a lot of feedback and also discussion because before it was more that it's the opinion by Sammy and Thomas how you should configure it. And we were increasing numbers of users. And I think Maester is really great because it's super easy to execute and you have no requirement like 8Sky in the original way to deploy Azure resources,
SPEAKER_00to have an Azure subscription and so on. So super simple to run. And there was a lot of feedback. And that also our challenge, hey, we need to give this feedback back to the original JSON file so that it also affects the original 8SCAR deployment. And that was super cool in our collaboration, Maril, that we had this sync script and that we still have a source of truth,
SPEAKER_00the 8SCAR JSON file. And yeah. Sometimes it's a little bit confusing for people that are contributing to Maester. It's not a direct change in the Maester repo, but maybe the relation that we described today, it's more clear there's also another tool that plays a role.
SPEAKER_01Exactly. And when people see a test failing, they go like, oh, but I think it's correct. And then that's where the discussion starts of, you know, should we do that or not? Like one recent one I remember is in the Authenticator app, there's a recommendation, you know, to turn on things like the geolocation and so on. And we fail people if they didn't. But then someone said, oh, we turned off Authenticator completely because we are using the
phishing resistant
SPEAKER_01stuff only in our tenant. So you're failing us, you know, just because we didn't turn it on. But yeah, we went ahead and did some additional things, right? If that's turned off, to not have the child tests fail as well.
SPEAKER_00Yeah, and we see also the benefits in Meister about what we introduced with skip conditions, that there's a relation between each of the checks. That is something what we introduced in the 8scout.json file as well. It's a tough job to integrate it to a logic app as well because logic app has not this... native relation dependency resolving and honestly the logic app can be a tough job when you like to build complex steps and relations so there are
some stuff that is only available in maester because of the complexity but it's great to see how it has a positive impact that we bring eight scar to maester and the overall quality
SPEAKER_00of eight sky as well so As always, when community works will be used in several places and find more audience, it's always great to see.
SPEAKER_01Yeah, and that's what I like about Maester as well. It's the whole community, people from different walks of life, different products as well, from exchange coming in with these different checks from exchange side of things, teams, and then bringing all of that in to like one framework that's so cool to see. The usage, you know, go through the roof every day. I'm astounded when I see those numbers.
SPEAKER_01And that's one feedback you don't get, right? Like you only have like the GitHub stars and stats to go on. But with Meister, we can actually see when someone runs it and they're using. And when, especially when the feedback comes through. Yeah, it's mostly stars, but Semi, we get also some direct feedback, right?
SPEAKER_02Yeah, actually quite a lot of direct feedback. And especially through social media, as I said already, people are reaching out and asking clarification for some things or recommendations. So I'm always more than happy to help people. Cool.
SPEAKER_01So what's next for Semi? the attack and defense playbook. What are the things you're looking into?
SPEAKER_02The next one we have, we are actually sharing a stage on the Purple Elbe event next month on Hamburg, Germany. Nice. And planning some, participate some events next year with Thomas. But we haven't decided... way to apply and what would be the next chapter. We have something on our mind regarding service principles and multi-tenant applications, but let's see,
SPEAKER_02will that be the final outcome for the next one?
SPEAKER_00I think there's an Ignite ahead, so we don't know what Microsoft will announce there and maybe we get some noise toy that we can play around and figure out how it works or we can... Yeah, think about attack scenarios. But as Sammy said, what is a great pleasure is we started with the COVID situation, 100% remote working on the content. And this year we started for the very first time to have a shared speaker session. And yeah,
SPEAKER_00in Hamburg, it will be the very first time that we are on site in a room with real people to talk about the playbook. Exactly. The one in spring this year was a virtual meetup. And it's great that we now move more in a situation that we can present our learnings to the community in on-site conferences and community events. Looking forward for that one.
SPEAKER_02Yeah, but I have to say that when we were planning the session we had back in February this year, it was pretty difficult to combine all of the cool findings in one hour session for the past five years. That was quite a tricky thing to do.
SPEAKER_01Yeah, it is, right? There's so much in there. Yeah. you had to pick your favorite babies like we did today, right? You had to pick the good ones. And speaking of Ignite, yeah, I'm sure that, I don't think there's going to be anything on AI. You can, you know, not worry about AI stuff at Ignite.
SPEAKER_00Yeah, let's see.
SPEAKER_01Cool. Awesome. Thanks so much, Thomas and Sami, for coming on Interchat. Any closing thoughts from you?
SPEAKER_02Thanks for having us. It was a pleasure to be here. And maybe a key takeaway from here is that we reserve some time for going through our playbook and some... content that interests you from there. And if there's anything you would like to update having sparring session, please reach us out.
SPEAKER_00Yeah, from my side also, thanks for having us. It was a great fun and pleasure. And maybe one recommendation or advice to the listeners on Please plug some time in the week to have research for yourself. Is it reading our playbook? Is it some other community resources? But be curious and like to learn more about how defense work and what are the attack simulation scenarios or what you can do to trigger some
things and learn
SPEAKER_00more. That's, I think, very important. Yeah. Yeah. Reserve the time and ask your boss. Yeah.
SPEAKER_01I mean, that's an awesome tip. Reserve the time. I would say one other thing for your career is to write about it, you know, share it. You do something, even if it's the same thing someone else done, but at least you tried it on your own. found something new or it's a it's the same thing but you can write it whether you do it on the thing is you have so many options today right you can write a blog post you can just write a LinkedIn post or a tweet you can do a
small video like it's endless the options that you have but I think the value you get of that out of
SPEAKER_01that is a lot more when you you know share that in addition to doing that research. So it's good for you and, you know, for the community as well. So thanks so much. I can't believe you are doing all this effort and time and then just giving it away to everyone. So we really, really appreciate it from the community for, you know, just that amount of effort that you're putting in to building out all these different chapters in the playbook. Great job.
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...