Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

Entra.Chat

Entra.Chat artwork

Stop Leaving the Door Open: The Entra ID Hardening Checklist Security Experts Actually Use

Apr 18, 20261 hrAudioEpisode 56
ShareXLinkedInFacebookWhatsAppEmail

Microsoft Entra security is evolving and the way organizations think about identity protection needs to evolve with it. In this episode, I’m joined by Sean Metcalf, one of the foremost identity security experts in the industry, whose work has helped shape how many organizations approach securing both Active Directory and Microsoft Entra. Sean shares the hardening steps many teams still overlook, and why advances in AI are making it easier for both defenders and attackers to work faster than ever before. From MFA and application controls to protecting privileged accounts and reducing unnecessary exposure, this conversation offers a practical look at where strong identity security starts and why getting the fundamentals right matters more than ever. Subscribe with your favorite podcast player or watch on YouTube 👇 About Sean Metcalf Sean Metcalf is the Identity Security Architect at TrustedSec and a renowned expert in Microsoft identity security. He holds the rare Certified Master in Active Directory certification and has spoken at major security conferences including Black Hat, DEF CON, and BlueHat on how to defend cloud and hybrid environments. LinkedIn - https://www.linkedin.com/in/seanmmetcalf/ 🔗 Related Links * Securing Entra ID Administration: Tier 0 - https://trustedsec.com/blog/securing-entra-id-administration-tier-0 * Managing Privileged Roles in Microsoft Entra ID: A Pragmatic Approach - https://trustedsec.com/blog/managing-privileged-roles-in-microsoft-entra-id-a-pragmatic-approach * Improve Entra ID Security More Quickly - https://adsecurity.org/?p=4825 * Microsoft Graph Skill - https://graph.pm 📗 Chapters 00:04:05 AI and the Evolution of Attacks 00:06:42 The Importance of Hardening Fundamentals 00:12:03 Securing Entra ID Quickly 00:16:24 Protecting Tokens with VBS and TPM 00:19:58 Restricting Consent and Guest Users 00:23:40 Managing Rogue Tenants 00:27:36 Cloud Admin Workstation Strategies 00:34:14 Delegated Admin Privileges 00:44:32 The Danger of Application Permissions 00:57:06 Artemis Mission Trivia 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_01We'll be right back.

SPEAKER_00Hey folks, welcome to another episode of EntraChat. And today I have an awesome, awesome, awesome person here, Sean Metcalf from TrustedSec. He is the, what did you say, Sean? The Identity Security Architect. Identity Security Architect. That title, I think, doesn't emphasize, you know, how much you know and share and do for the community. We are going to talk all about hardening from Entra to, you know, just general overall security in this context.

SPEAKER_00So, Sean, welcome to Entra Chat.

SPEAKER_02Thank you for having me, Meryl.

SPEAKER_00Awesome. Sean, you do these sessions every year. I attended your sessions. You've spoken at Black Hat and all various times. Tell us a little bit for the people who don't know you, you know, the intra-audience. I know, like, you don't need an introduction for the security folks, but just tell for, you know, the intra-admins and others who are hearing you for the first time, just share a little bit about yourself.

SPEAKER_02So I'm wearing, I'm actually wearing my blue hat shirts.

SPEAKER_00Nice.

SPEAKER_02I don't know if you can see it, but yeah, I figured that would be a good intro into who I am and what I do. So I've spoken at a number of conferences, as Merrill has said, ICAT, RSA, AFCon, multiple B-sides, troopers. I actually spoken. at the Microsoft internal blue hat conference before, and that's why I'm wearing the shirt. And so I have done a lot of focus on identity security when it comes to Microsoft. So Microsoft identity security is my wheelhouse,

SPEAKER_02which means I've worked a lot with Active Directory since it came out. And I pivoted over to Azure AD in 2017. I actually did a talk at DEF CON, one of the first talks on cloud security at DEF CON, on basically attacking Azure AD and how best to defend it. So that was 2017. So we're coming up on 10 years since then. So it's been a long time that I've been looking at cloud security and really trying to understand what are the things that attackers are doing and how environments are

SPEAKER_02configured. that lead those attackers to be able to do those things. Certified Master and Active Directory. So I have that certification. It's no longer one that anyone can get. So I will always be one of about 100 that have the Active Directory MCM certification. But yes, I... Really love talking to people about EntraID security. I love talking about Active Directory security and certainly the hybrid security that incorporates both of those identity platforms.

SPEAKER_00Awesome. Yeah, that MCM certification was like for the elite of the elite, right? Like they had this crazy exam. You had to be there in person and they gave you like 48 hours.

SPEAKER_02It was a nine-hour lab that had lots of things wrong with it. And that was that was insane.

SPEAKER_00It was insane, yeah.

SPEAKER_02It had a 10% pass rate, I believe.

SPEAKER_00I have huge respect for anyone who's an MCM, even though it's been, I think, more than 15, 20 years since I think they… It's been quite a while since Microsoft Learning shut

SPEAKER_02it down. They thought the pass rate was too low.

SPEAKER_00But it was super unique. Cool. Sean, like in the context of today, we have Anthropic releasing Mythos and the Project Glasswing and they're going to find vulnerabilities have found in the operating systems. I'm sure they'll point it at Entra and the tokens and, you know, all the different things and people are going to be doing very interesting things. And your message about all this, what you did manually, like more people are going to be able to do that as well in the future.

SPEAKER_00I mean, it's just going to evolve, right? Even if it's not glass-winged. this pattern of using AI to do stuff is going to just keep on going. Like I see people like Nathan McNulty using it and doing things like calling into internal APIs and pass keys, like trying to work out how it does and using the LLMs to, you know, do a lot of the heavy lifting, which used to be limited to a few people before. And now, you know, everyone can do it. So in that context, securing intra,

SPEAKER_00securing and, you know, focusing on hardening, I think is going to become a bigger part of every admin's thing. Like before it would be like, they would leave it to the security folks to do a lot of it. And, you know, you do your pen test and then tell me how to fix it. But I think the more and more it's going to become everyone's responsibility. Like, what do you think? How do you see it all panning out?

SPEAKER_02Yeah, absolutely. So it has been for many years where smart people have focused on a system, whether that was Active Directory, whether it's intra-ID, whether it's Oracle, whatever it is, and have focused on that system and said, OK, well, what if we change the way that we interact with it in a way that it wasn't really meant to interact? And so that's where we see a number of Kerberos vulnerabilities in Active Directory. We've seen a number of Token manipulation with EntraID, certainly Durkian Malema has been at the forefront of a lot of that.

And so now we're seeing this effectively level setting of capability because of the

SPEAKER_02LLMs, because of these AI systems. And so one of the things that I thought was a really interesting... Interesting thing was a quote by a physicist, a scientist, and he said that the AI that we have today is effectively like a tape recorder. So it has recorded a number of things that it has heard and learned and understood, and And then we play it back and it basically plays back some of the information that it's identified in a unique way, in a way that the person who is asking it to do so is getting that back.

So a lot of times the LLMs are taking what has already been identified and trying

SPEAKER_02some things that are very similar to that. almost like a fuzzing type approach where you try a few different approaches that you know about and you try some things that maybe shouldn't work anyway. And so with this, we're able to really have the ability to test things at scale. Because instead of having a person bang at a system for eight hours a day, 40 hours in a week, we can go ahead and have an LLM bang at it 24-7 until it finds something that's interesting. And I think that's what we're seeing with Mytho's what we're seeing with Nightwing are the others.

And so it's going to be more important than ever to harden these systems because if you're requiring MFA and the LLM is trying to identify ways to authenticate with a

SPEAKER_02username and password, And it finds that you can authenticate with the username and password to enter ID in one of those legacy authentication methods. Then MFA isn't useful in that context. So it's important to ensure that there's hardening that's in place that goes, all right. Authentication works this way, and MFA has to happen in order for that authentication to actually pass through to the final system. It's important to ensure that we're not letting users just go ahead and click and

SPEAKER_02consenting to applications, which is somehow all of a sudden a new threat, which is not a new threat. I think I spoke about it in 2019 at Black Hat. So we are in a situation here where what's old is new and we're going to see the same thing, I think, with LLMs.

SPEAKER_00Yes. Yeah. Like you raised so many different points. Yeah. What's old is new? Like the CLI is like the new thing now and everyone is back again on building CLIs. I saw like Microsoft posted they're hiring some of the guys who built like Bubble Tea and some of the other terminal UI development stuff. They've joined the GitHub co-pilot team and all the new innovation is happening in the GitHub co-pilot CLI and, you know, other CLI. But also, yeah, I use agents for a lot of my dev work and it's insane how like

I give it one task,

SPEAKER_00it goes, okay, let me plan it. And then it says, oh, this, I'll need a few people to work on different things. So it spins off sub-agents. So it's not even like one person, you're comparing it to like one person spending eight hours. like me with one agent it's like a whole team and each person is going doing research on different things coming back with it then it creates a plan then it gives a different set of devs to go write different things and test different things and come out so like it is insane how much productivity

happens in those and a lot of the things like you do a lot of research right it's more about like trying things out fails a lot of dead ends and then you find this one thing and like The agents are tuned to that brute forcing of things that used to be like,

SPEAKER_00I'll write some code and I need to take the kids somewhere. Like there are so many interruptions in my day, but you can have now the agent, you know, going ahead even without that. So I think it's all of those things that compound what we are going to see. So what can we do now, right? It feels very daunting, but what can admins do now? And I think a lot of what you've been sharing over the past so many years are going to become like table stakes, like everyone has to do.

SPEAKER_00Like you would share this message, but in reality, I've seen Very few enterprises do, you know, all the things that, you know, that you've been sharing. And that's why you had to get up and again, keep repeating the same thing, right? Even something as basic as do MFA for everyone, no exceptions. It's still like, I see very rarely that happening. There's always, always exclusions to even just doing MFA. Basic MFA and like, you know, we've been telling to do phishing resistant for a while. And I think a lot of, you know, those things as well.

SPEAKER_00So in that context, and like you have shared so many gems, what are the things that you're seeing now, you know, that you think admins should start looking at when it comes to Entra and, you know, what they can do?

SPEAKER_02Right. Well, as you mentioned, AI is such a productivity accelerator, and it's something that really can't be ignored at this point in time. However, it's also something that is prone to hallucinate and to come up with things that just don't exist, like pointing it at the Microsoft Graph API. And saying, OK, give me all the graph endpoints. Give me all the things that I could actually interact with. And there's things that it comes up with and they just don't exist. And then when you search for it, you can't find it. So learn how to better prompt for those things within AI.

SPEAKER_02So just to. point that out as you were discussing the success of it, which is great.

SPEAKER_00We call out to that. I made a graph skill at graph.pm that is a skill that is grounded in the open API spec. So you give that to the agent, it'll only come up with the APIs that are part of the spec. Yeah. I haven't seen that.

SPEAKER_02I'll definitely have to check that out. No, that's great because that really helps because you're the expert in that area. So you can tune things in that area and we can leverage that and take advantage of the expertise, which is another great thing about AI is the ability to leverage expertise that's out there and get a better understanding of how things are done. It's pretty good at putting together some PowerShell code to get stuff together. But like I said, when it comes to something that's new – that it hasn't seen before hasn't existed before it's doesn't

always come up with things that are that are useful and so that's what i've run against with my experience with with ai and research but to answer your question i did a talk at besides nova last year uh in and i believe it was november october november and uh

SPEAKER_02my talk was about the 10 ways to uh secure entry id more quickly Because we were seeing in our assessments, we do Microsoft 365 entry ID security assessments at TrustedSec, and we identify what the issues are and how best to secure the environment. So we're looking at the things that attackers take advantage of and then really harden those things, make recommendations about how to harden them, lock those items down, such as employee app consent, which is one of the big ones. And Microsoft has changed the defaults around that,

SPEAKER_02which is good, because that was something that definitely needed to get done. There are so many foundational things that are table stakes now. You're absolutely right. MFA is something that we see, even if it's deployed broadly to the user community within an organization, which we want to see. Unfortunately, there's almost always a conditional access policy that says if you're on the corporate network, you don't have to MFA. And yet we've been talking about assume breach for, I don't know, 20 years now, it seems like. And so having that exclusion...

Conditional access policies are an area that we dive into and look at regularly. And one of the things that's always interesting about it is the title of the

SPEAKER_02conditional access policy sounds great. Wow, they're doing this thing that I haven't seen done before. That's awesome. And then you actually open up the policy and you see that it is doing the thing that would be great, but there's an exclusion. or it only includes a certain group of users, and that group includes 200 people. So there are things that should be deployed more broadly, like MFA, like making sure the app consent policies are locked down, leverage conditional access in order to control who can access different

SPEAKER_02applications. It's probably a good idea to ensure that you're geofencing just so that the easy attacks are not so easy anymore. If you don't have people that travel all over the world, then maybe you should geofence through conditional access just to the United States. Maybe you want to ensure that when you have HR connecting to the HR system, that they always have to MFA, even when they're coming from a managed compliant device, which is sort of the core basic tenet of building this zero trust kind of

SPEAKER_02understanding, because that's really what we're talking about, is understanding how things are configured, how are they best to how they best lock down, how to best protect and secure the environment. I'm working on an assessment currently with a pretty high profile customer and they have a lot of things in place that are really good, but there are some things that they can always do better. And that's the thing we need to constantly understand and, and, realize the attack surface changes. It's like click fix. The initial click fix was,

SPEAKER_02well, take this from your browser, which was automatically copied to the clipboard, and go ahead and do a win run to run and then control V to paste. And then a lot of organizations started locking down the run, that hot click, hot fix or keys for the run command.

SPEAKER_00Run command.

SPEAKER_02And now they switched over to different ones. One of those things where it's difficult to really stay in front of it if you're trying to play the day-by-day or week-by-week game. But really, if you're locking things down and the user doesn't have admin rights and the user has to authenticate with MFA, if we can have some better security around those table stakes, around those fundamental items, we can get to a better place.

SPEAKER_00When someone hears something you said, like, oh, when you access the HR system, you need to MFA again. Like there are different experiences, right? And it depends on what you experience. Like people would think, oh, I need to, the user would need to now get a text or they need to get a prompt on the phone and approve. And like that action takes like anywhere up to a minute. But like I'm on my Mac with the keyboard with Touch ID or with Windows with Hello for Business. Doing an MFA is just like it takes a couple of like one second or two second to do that. Right. So it like all of these things lay on top of each other as you

move to phishing resistant with this with passkeys platform SSO and you have the fundamentals in

SPEAKER_00place. You can actually do those sorts of things, but if you are still doing only SMS-based MFA, you can't even comprehend doing that, you know, frequent MFAs during the day, right?

SPEAKER_02Right. Well, it's like the VBS system within Windows, the virtualization-backed security, where you We've had that since Windows 10, which is going back to 2015. So it's been over 10 years now since Windows 10 introduced this capability. And a number of computers came out with TPMs as standard hardware soon after that. And there are many that already had that. So we're looking at almost 10 years of having TPMs. And we have the capability now by joining or hybrid joining

ENTRA and getting a

SPEAKER_02primary refresh token that can be secured by the TPM itself, which is what these companies should be doing. What every organization should be doing is turning on VBS, leveraging those TPMs to protect that primary refresh token, that PRT, which really does lock down and make things more difficult. And that's why attackers are trying to join their own devices because they know that the PRT is getting protected by the trusted platform module, that TPM. Yeah. So we are seeing attackers adapt to the security capability and

such with the

SPEAKER_02application consent. Microsoft reduced the amount of time around device code authentication. So we're seeing that the cat and mouse continues. But Organizations should not fall into that mentality of, oh, well, we're going to miss the thing that matters. Focus on the core fundamentals, the security that's baked into the system. Make sure that you're leveraging these security capabilities and continue to empower the business.

SPEAKER_00Yeah, exactly. And like with things like TPM, you can enforce with Intune and conditional access, right, to say you can't join if you don't have the right TPM and things. And it's been there for like at least more than six years that you could do those enforcement and the TPMs have gotten better like the there used to be a version difference with 1.2 and 2 and all of that but I think a lot of those laptops don't even exist anymore the the lease period is also over so you don't have much excuse to do those

things right so

SPEAKER_00Yeah. So I think overall what you're saying is like the fundamentals are the things that we still, and you are still seeing it, right, in the assessments that you do daily. Still seeing it, yes.

SPEAKER_02Still seeing it. And we are evolving what our recommendations are as well, just like you are, as the attackers are coming up with newer approaches, new recommendations. But again, a lot of these things, like leveraging VBS on Windows through the TPM and for those primary refresh tokens. That's something that has evolved through the recommendation because it was a situation where the PRT wasn't entirely protected by the TPM. But now it is and has been for many years now. So that's something that really makes it harder and frustrates

the attacker because they're not able to just extract that token as easily as they were able to before.

SPEAKER_02Granted, there's other things that they can go after and and attack the browser to get other capability. But the evolution of the security capability in the platforms, I mean, it's great to see the Mac have, what is it, FileVault that's similar to the VBS in Windows. So now we have some parity across platforms that are commonly used in enterprise environments that are accessing cloud resources.

SPEAKER_00Absolutely. Awesome. So going into things like the more advanced ones that you've been sharing, like what, if you want to go through your top 10 things, how would you go down that list, like in 2026? I would definitely change some of the default behaviors that Microsoft has had in

SPEAKER_02intro for a while now, making sure that users can't just, like I said, they can't consent to applications. It's best to let Microsoft manage that. There's an option for that there where it says let Microsoft basically determine if it's a Microsoft-approved vendor, a Microsoft-approved application, because typically these applications aren't actually verified. And so, therefore, they don't have any real company behind them that's being used. Making sure that guest users don't have the same or effectively the same rights as

SPEAKER_02standard users. Making sure that guest users can't invite other guest users. There are some things that have been tightened up, and now we have capabilities within the logs to see... actual PowerShell capability or graph API access and capability. So we have that now, but we want to make sure that that's actually flowing into the SIM. Microsoft has a lot of capability when it comes to logging. Some of that, actually quite a bit of that depends on the licensing that's involved. And what can be confusing is identifying what the log source is

based on the license capability to ensure that those logs are actually getting

SPEAKER_02ingested into the SEM itself. So that's something that needs to be understood and recognized.

SPEAKER_00With the logs, Sean, there's a lot, as you said, like if you go to the diagnostic logs where you can export that list, like from five years ago to now, it's been expanding. There are so many different ones. There is like the graph activity log that was added a year or two ago and so many of them. And they're like huge volumes like graph activities like every time someone in the org goes and views a document it writes it right because everything is a graph activity like every single thing they do it's all written like you type

something and then it saves it's a version update and graph updates like there are things that spin up

SPEAKER_00so like It's huge. And when people turn it on, it's massive. How do you how do they stay on top of this? Like what are the recommendations you provide? Because they can't really store all of this. Or is that what you recommend when it comes? So I don't have specific recommendations around logging or at least dealing with the logs.

SPEAKER_02That's something that's going to be depending on the log configuration. The easy answer is to leverage Sentinel and let Sentinel ingest those logs because Sentinel actually knows what Microsoft logs are there. And you can, you know, click through and basically get those logs configured very easily. Right. I got to pull up my cheat sheet of recommendations called me out on that. I can't remember them all off the top of my head, but certainly there are basically users can typically register

applications. So they should not be able to register applications because there's really no need for them to. And when a user registers an application, they become an owner of that application.

SPEAKER_02So if that application is then added to, or if that application then has some permissions that need to be consented to by the global admin, to really give it highly privileged application permissions, then that standard regular user now has control over an application that has tremendous application permissions. And we see this on a regular basis. So I believe it's the application developer role that provides the ability to register applications. So that's a better approach to it instead of just letting all

the users do that. Microsoft has always provided the ability for users to be able to create non-admin

SPEAKER_02users to create tenants, but only in the past couple of years provided the ability to control that. that should be set to restrict non-admin users from creating tenants because there's no need for them to do that. I tested this out. I created another tenant. And I was like, wow, I didn't know you could do this. And then it becomes like completely unmanaged because there's no insight into this other tenant.

SPEAKER_00Yes. And until last week, until a week or two ago, Microsoft introduced tenant governance. So now you can do a discovery. You have to go and do it yourself. So you hit discovery and It'll now show you like one of a customer is working. They had like 700 tenants in there.

SPEAKER_02I'm not surprised. So now you can at least find that. That's wonderful. I'm glad about that because I was trying to figure out how to find the tenant that I created other than the fact that I knew that it was there and I couldn't find it. So it was one of those things that I'm glad is there.

SPEAKER_00Yeah. Go ahead. No, I mean, yeah. So seeing the tenant and then at least knowing who, because that's the other part of it. Even before you would see tenants and then you wouldn't even know who the GA is. And like I would work with some customers who would be like, We have these tenants and we don't know who it is. Or the worst case is when I was actually working at a customer site before I joined Microsoft, somebody had created a tenant with their personal credit card and two or three

SPEAKER_00people have GAs and they're actually using it in part of their business. for some of the stuff they did and some they had onboarded some apps and people from the co-op tenant were going in as guests into the other tenant and then suddenly they discovered we there is this tenant and there are apps and people are using it and the people who set it up had left the org and they are still the GA so when you open a ticket with Microsoft they go like yeah I mean we can only give this tenant to the GA right do you know the email address of the GA?

SPEAKER_00And we're like, no, we don't. So it was like the hacks that we had to do was luckily they had used the corporate email address for that GA account.

SPEAKER_02So at least you could create that email address.

SPEAKER_00We had to do a password recovery. And then we had the exchange team monitor all the emails that came for even the ones that didn't exist. And then they found that out. And that was how we were able to, we sort of did a reverse hack to get into that tenant. Because obviously Microsoft is not just going to give a tenant that belongs to someone else to, just because they have the company name in the name of the tenant. Right. Yeah, so like that can happen. Even tenant governance doesn't solve it when someone uses their

own personal credit

SPEAKER_00card, spins up something outside and everyone starts using it. So like discovering all the shadow IT and what people do is going to be an important thing as well.

SPEAKER_02Right, absolutely. Absolutely. So another thing to do is to set guest user access restrictions. So the guest user access is restricted to properties and memberships of their own directory objects, which is the most restrictive. There's no real reason for guest objects or guest users to be able to query the environment, perform reconnaissance, and really understand what's going on with it. We see commonly the Microsoft default is left the way it is for joining devices. So there's no MFA required.

SPEAKER_02You could just go ahead and join devices. Our recommendation is to require MFA. Certainly that can be done through device properties, but it's better to do through conditional access.

SPEAKER_00Right. Yeah, there are two places you can tweak those settings to, because there's now that CA option to say just for registering, you can set up for that action, you can set up the different policies of where they can do. Do you limit where people can register from versus... Do they have to come into the office to register versus they can...

SPEAKER_02I mean, ideally, users aren't registering their own devices, right? That would be the better way of it. So I always like to oppose things as we have okay, we have good, better, best, you know? And so one of the things I talk a lot about is your global admins should not be interacting with EnterID from their same web browser and that they are also browsing Facebook and Twitter and whatever else on.

SPEAKER_02So that's a bad configuration. So what is okay is to have a second web browser that they use. So use Chrome for web browsing, use Edge for administration. So that's an okay way to do it. It's better than using the standard web browser. But better than that, which is a good way to do it, is to have a server that you already pee into, and then you go ahead and do your administration on that cloud admin server. So that's a better way to do it. That's the good way to do it.

The best way to do it is to have a separate physical hardware device that's another

SPEAKER_02laptop where all that administration is being performed on. So I think in the realm of what's OK, what's better, what's best, the default is not great because, you know, it's just a username and password. Better is making sure that MFA is required. Better than that is making sure that there are certain locations where they can be allowed to join devices. But the best way to do it is to use something like autopilot. So no one really has to do any of that joining. It just kind of automatically happens.

SPEAKER_02And then you basically have your provisioning system or admins. that can join devices if they need to take care of something or fix it.

SPEAKER_00Absolutely. Yeah, like I have on my desk this laptop. It's like very new it looks new because I don't use it much but yeah that's like the dedicated device for doing any of the admin stuff that I need to do yeah I mean Microsoft do share like the whole privileged access workstation model and you know how you separate things out and even have different tenants and different identities completely and yeah it's a wholly fully locked down machine in that like

SPEAKER_00no software can get on it That doesn't come from IT.

SPEAKER_02Right. So it's the clean source principle, right?

SPEAKER_00So, yeah, like, but it's expensive, right? Like you need to give people two devices and whole infrastructure, everything to maintain.

SPEAKER_02Everything has to be separated for that.

SPEAKER_00Exactly. So you need the organization to really understand that they do need that because it's a huge investment to set up. Like people are struggling just doing like one environment with and setting up autopilot and all of that, right? And having to maintain a completely separate one and making sure they're all like isolated from each other all the way through from admins to operations is a huge undertaking.

SPEAKER_02It absolutely is.

SPEAKER_00Will we see things like that? you know, becoming more mainstream with all of what... I hope so.

SPEAKER_01I really hope so.

SPEAKER_02I mean, I really think that if we can get admins to stop using their same browser or even using the private mode of the same browser and switching to something else, another system, that could be a VDI. It could be preferably an admin server. It could be an Azure VDI itself, but something that's different than the standard user computer because that's too easily compromised and it's too easy to extract the bare token

out of the browser.

SPEAKER_02It's too easy to extract tokens out of memory. It's too easy to get those things off that computer. So ideally, we move that off of that system and are using something different to do administration of. Of course, the question that I get after talking about that is always, OK, so if we're doing that for our cloud admins, what about Active Directory? And how about the fact that they're the same people? And so that's where it does get complicated because then it's like, all right,

SPEAKER_02ideally, again, the best way to do it is that they have an on Microsoft account that's not synchronized from their on-prem directory environment in their entry ID environment, the entry ID tenant. And they have their global admins are using that on Microsoft account that's not synchronized, that has its own MFA and everything. And they're using a separate system, call it a cloud admin platform. or virtual server that they're using that they RDP into, and they're using that. That's great. Now we have to look at what the Active Directory folks are doing.

And that's going to be that same situation, but it's even a tougher one because really... The only true answer for directory administration is that separate system itself,

SPEAKER_02that separate physical system. And depending on what Microsoft documentation you read, if you read the tiered model approach, then that's a separate physical system. If you look at RAMP, then it could be a separate tenant entirely. But that does get complicated. IntraID is a lot easier because you can kind of cordon off that environment and work with that more easily. So it is a little bit easier with Intra.

SPEAKER_00Absolutely. Yeah, I don't look much into the AD side of the house as part of my thing. Like I can try, it's just the web, right? It's the endpoint that you have. And then like there's so many ways to isolate things and put them away and secure it. Whereas with AD, it's like all the ports open and everything. You need everyone to be able to connect to it.

SPEAKER_02And Intune has gotten so much better as well.

SPEAKER_00Yes, doing that, securing that, right? So, yeah, like those are some of what have been Microsoft messaging is to move to the cloud and do a cloud join device, move the device from talking to AD all the time to a cloud join. Then you have like a smaller tunnel or a smaller thing that it has to go and hit versus like having all the ports open to your on-prem AD. to all the devices, from all the devices in the org. So you can start securing AD,

SPEAKER_00I guess, in that way as well by doing those practices so that, you know, not all 10,000, 40, 80, or 100,000 devices, you know, talking back to all your AD servers and having it wide open. Those things definitely help as well. I think one of the big things that we often see as well that isn't really as talked about as much is the delegated admin privileges that's been around for a while for

SPEAKER_02partners. And so we see those with our larger customers and they don't seem to understand or recognize that there's delegated administration that happens in the cloud world, which effectively outsources administration, even if they already have the capability on-premises in their environment as well. So we say, just like Microsoft does, shift to granular delegated admin privileges. Use GDAP. It's much better. It works better. Make sure that you have a provider that supports that and is understanding of what that means.

SPEAKER_02Because otherwise, you end up with this tremendous capability, like having a global administrator that you've outsourced and you don't realize that you've outsourced them.

SPEAKER_00Yes. Yeah. And that's a huge area and there's a lot less visibility and some, it just comes to a billing relationship. Like even the MSP or whoever they buy it from, they don't really know that just by buying it from them, they suddenly have access to it. And what's even worse, like some, we had Mark Rudd and was sharing, like he was trying to secure a tenant. And then he suddenly saw a service principal that had like, like all the permissions, right? Like GA level permissions. And he was like, where did this service principal come from?

SPEAKER_00Like who owned it? And it's like, they are one of the corporate tenants and it was deployed through the admin, through the whoever they purchased the tenant from as part of managing the tenants. They do it. I mean, they do it because the majority of the customers, they deploy, they buy things and then they get locked out and they can't get in. So they went, oh, let's, you know, deploy a service principal that we control, which has full read, write, and then it can get people back into their tenants.

And like, they're just doing the work for themselves to reduce the support cases they get.

SPEAKER_00But if you are, being managed by someone, you know, you are looking after your own security, you need to really go and see it. And it's not very easy to know about those sorts of service principles. You go look in the roles, you won't see it listed as a global admin. It's just an app with app read-write-all and direct read-write-all and all of those, the high privileges. As a non-technical or non-security person,

SPEAKER_00wouldn't even, you know, go looking for it and you know when it gets created and you don't even know when it's used. The logging is just an auth that comes in. So, yeah, there is a lot of, you know, knowledge and education that needs to go in for people to understand that it's there. So this person I was talking to, like they were doing security consulting for others, but in one of their tenants that they had just bought, it had the same thing. So it can be anyone, right?

SPEAKER_00Yeah. Especially now when you have hundreds of tenants in the org, doing it for every one of them is, again, a huge effort and undertaking.

SPEAKER_02Absolutely.

SPEAKER_00There's definitely a lot for admins to stay on top of. Yeah. And so the last thing, I've got one more thing that I want to say is important. Yes, please.

SPEAKER_02And that is understanding which roles are the most important. Microsoft has tagged a bunch of them as privileged. Yeah. That leaves some room to understand what that means because global administrator and global reader are both tagged privileged. And they're not the same thing. So at TrustedSec, we went through and identified nine that we say are tier zero roles. And then we have tier one roles that we've also identified. So we have a blog post that we did that went through and identified that and

SPEAKER_02Talked about what to do. I went ahead and wrote a PowerShell script that will go ahead and query and identify what accounts are actually members of the tier zero or tier one roles, as well as which ones are eligible. That's the other thing that I find very interesting and makes things challenging for the administrator is if you want to see who are all my global admins, you can query the membership of it and it'll show you who's currently an administrator. But then you have to query a different way in order to identify who's eligible, who could be a global administrator.

SPEAKER_02So it's very important to ensure that our tier zero admins, whether they're active or they're eligible as admins, are using these separate systems for administration and are using MFA and are using, have a better understanding of what their rights are and how those rights have impact to the environment.

SPEAKER_00Yes. Yeah. Like that's one thing I had trouble with, the whole privileged roles and the others. And I even made an infographic about that because there's no one API that says, you know, get me a list of all the admins who are eligible and privileged. In Meister, we actually have the code get empty role member. So then you give the role, it returns both eligible and privileged users. And the code for that is like multiple lines, because if it's a free tenant, you can't call into that other API.

SPEAKER_00which returns the privilege role. So you need to check the licensing and then make the different API calls to figure all that out. So, yeah, so that PowerShell has all those different, that logic in there to get that. And there's probably in the docs, it said to read one of those, it put the read write as the permission. And for a long time, we were all using that. And then I had to get the right read permission to be able to read that because... With Meister, we want to only have read permissions to read your security config and,

SPEAKER_00you know, report on it.

SPEAKER_02Yeah, I keep running into situations where the Entra PowerShell module commandlets have some capability that the graph one doesn't. And then graph one has, so get MG user and get Entra user. There's differences between the two of them. And it's almost like what it was with the Azure AD and the MSOL modules because there's not parity between them. Yeah. I bang my head against the wall occasionally because then AI is like, oh, yeah, go ahead and use the intro module. And I'm like, no, it doesn't have that property in it.

SPEAKER_00Yeah, it's definitely a challenge. And it's easy with the LLMs now. They're getting better at it. And they're training the LLMs on the graph docs as well. So they're getting more up to date. So that definitely helps. Sean, what are the examples you've seen of some really well-implemented techniques? company like organizations that you've been to who are doing the right things and having intra secured well like how do you like sort of

Like in code, we say you get code smell like bad and it's a good, healthy thing.

SPEAKER_00What are the things you've seen? Because it might not be just technical, right? It might be the approach to how they approach things. What are the signs that you look for? And how do you know, like, you know, this is being done well? Because I feel a lot more to do with how they approach than maybe even the technical skills and like knowing that later.

SPEAKER_02Well, looking at the default permissions and seeing how they're configured gets a pretty good idea of where they're thinking and what their mentality is. Getting the membership of those tier zero roles and identifying, okay, are they active all the time? Are they using PIM, but just having gone through the process because we see that There's a lifecycle of using PIM. It used to be that when you had PIM and you turned it on, you turned it on for specific roles. And then Microsoft shifted that from specific roles to all the roles.

And then what PIM would do is if there were accounts that were already active as

SPEAKER_02global admins, then they would remain active within PIM. And they would just be permanent members basically within PIM. And so what we see a lot of the time is the ones that are really on top of things have just their two emergency access break glass accounts that are members of Global Administrator and any other members are eligible. And then same thing with with a privileged role administrator, privileged authentication administrator and so on. It's a hybrid identity administrator and a number of others.

SPEAKER_02They all have those broken down. I've seen some that have a good understanding of it and they're using role assignable groups that are like global administrator. And that's the role assignable group. And then they have the eligible members in that. And that is a group that is a member of it's eligible within PIM. I'm not the biggest fan of that because that requires additional queries and additional things to look at, like the owner of the role assignable group. But it's a way to manage things.

SPEAKER_02And so I guess in their mind, if they just have that group there, they can query the membership of the group and know who the global administrator potentials are. I think that if you have a good handle on that, then it could be a decent way to do it. Again, it's not my preferred approach just because there's different queries that have to be done. Yeah, there can be nested groups and it gets crazy going through all of that. Right. The other thing that I find, even in really well-secured environments, so when they have Their role is configured.

SPEAKER_02They're using PIM. All of them are eligible. They're not using role assignable groups. They have a good understanding. Their second administrator, that's the other thing, they have administrative accounts that are the ones that are members of these roles, not their standard user accounts. We look through all of them. We don't see any regular user accounts. The defaults are changed for the most part. They have control over the external users. They have control over SharePoint because the defaults and how SharePoint access and sharing could be done for both SharePoint and OneDrive.

SPEAKER_02It can expose data within the environment. So they have control over the external user access through SharePoint, through OneDrive capability, that sharing capability, as well as with Teams. But just about all of them always have a mistake, an oversight, an area that they just missed. And I'd say 90% of the time it has to do with application permissions. So there's an application that has what we call a tier zero permission privilege

SPEAKER_02that's defined in that, like directory read write all, like the directory role read write. Some of those are the ones that really provide global admin type capability. I like the one where It has the ability to set the permission for itself or anything else. I forget right now what the permission is, but there's four of them that we focus on. And through those, we can really have a good understanding of what those applications have capabilities through. And then, of course, the application administrator and the cloud application

administrator has control,

SPEAKER_02global control over those applications. So those are escalation paths as well. So they might have global administrator handled, privileged role administrator handled, privileged authentication administrator handled. Those are all tightly controlled, but not the application administrator or not the cloud application administrator. And then they have an application that has all these privileges, all the privileges under the sun, has these capabilities. The application administrator is a standard user account. That account gets popped.

SPEAKER_02The attacker then identifies what capabilities that account has. Oh, it's an application administrator, and there's applications here that have privileged rights. So now we can look at those applications. We can add a credential to it and then impersonate that application. So that's the area that is One of the ones that I think is often overlooked, and even for assessments that are out there, often overlook that as well. The assessments are almost always going to look at the membership. Hopefully they look at eligible too and show the whole picture

of what that looks like.

SPEAKER_02But the application permissions are a big thing that need to be part of a comprehensive security audit.

SPEAKER_00It's not easy. Like with the Microsoft Zero Trust Assessment, which I'm a part of, we do that because to do that, you need to get all the service principles in the tenant. And with the larger tenants, you end up with 3 million, 4 million service principles. And now with agents, it's just going to be even more.

SPEAKER_02I've seen it expand with agents, yes.

SPEAKER_00So to scan that, to download that, like Zero Trust Assessment on some of our bigger customers, it runs for... like 24 hours and 30 hours and it goes for a longer time because it just has to use graph and pull down all that because only after that we can analyze all the permissions to see you know to find that one needle in the haystack with those privileged permissions so and do those detail analysis so there are like there is a defender for cloud apps and others if you're licensed that you can

SPEAKER_00go more easily see some of those. But yeah, doing those assessments, it takes time. And for me, that's one of the smells I get when they run the assessment with those big orgs, it goes over eight hours. And if they complain saying like PIM times out, then I know that org is actually doing the right thing because they are running it with PIM. Because for this assessment, you have no option but to turn off PIM to run for that particular run. Yeah, we've run into that also. Yeah. It needs to go over eight hours, right?

SPEAKER_00So that's a sign already in my mind, like, yes, they are doing some of those fundamentals because they have a policy of like nothing gets excluded from PIM and they need to get the right approvals to say, yes, we'll do this as a once-off thing.

SPEAKER_02Right. And I'm a big fan of approval-based PIM, especially for those tier zero roles. I mean, it's important to ensure that another person knows that this person is going in and doing something. A place that I worked many, many years ago on the Active Directory team, we actually had an approach where you could go ahead and add yourself to a group that would then give you the rights that you needed in the environment in order to administer domain controllers. But before you did that, you would basically put in a message to the team, an email message to the team saying,

SPEAKER_02hey, I'm going in. And so we have it monitored. And if there was an alert on that change of that group membership, but we didn't see that email go through, then we go ahead and remove it and then figure out what was going on. So I think something similar with PIM, because the capability is there, makes a lot of sense, especially for... global admin, those tier zero roles. I would prefer to see that more and more. But then again, I really want to see more PIM be eligible. So it's, again, this crawl, walk, run approach to security that we see. Because the other thing is,

SPEAKER_02if it has to have approval, even if someone compromises that account and tries to PIM it up, it's not going to work for them.

SPEAKER_00Yeah. they need to compromise two people, right, in the organization at the same time, which does raise the bar for the talk. Right. Awesome. Sean, it feels like we can just keep on talking about this topic.

SPEAKER_02Yeah, I love talking to you, Emeril. Emeril is great. Yeah, it's like the stuff you're talking about, you know, apps and permissions.

SPEAKER_00And it's for me, like I used to struggle as I used to be an intra-admin. And this was back in the 2016, 17, like it was all brand new. And apps would come up with permissions like even like Salesforce and at that time, right? So not everyone knew about all the granular permissions and they would ask for, oh yeah, we want mail read write all because our plugin will, you know, send emails for the CRM stuff that they need.

SPEAKER_00I have, the admin had to educate the security teams because, like, I couldn't say, no, it was a security, I was just the intra-admin, right? So I would call the security architect and the folks who are reviewing it and tell them, because they would say, yeah, give the permission, right? Because they didn't know.

SPEAKER_02Because they don't know, exactly. They come from the firewall world and that space, and this was like 10, 15 years ago, so. I would back channel and tell them, look, these are the things you're doing.

SPEAKER_00They can, you can, that app can read the CEO's emails and, you know, all of those different things. So I had to educate them and then they would push back. And like, so we had to do those sorts of things. And It was easy as an admin to not be bothered because doing that was a lot of effort and people are not happy. The business was not happy because they are bringing in money and then you're telling them that they can't use this cool plugin that everyone

else is using to accelerate their work and you know bring revenue into the org so it it's not an easy thing as an admin to fight and i i see a lot of admins they just give up that fight they're like it's not my job it's you know someone else is like why should i put in all that effort when no one would even appreciate it because it's not your

SPEAKER_00job right you're not security at least at that time The Entra orgs admins would be under like the N365 orgs who manage all, because that's how Entra went into orgs. You know, you roll out Exchange and SharePoint. So that, and I'm sure it happens even today, right? Where the admins know, Entra admins know like this is highly privileged. They just say a little bit, but then it's not, something they want to be involved in because it's a very hard thing in a lot of businesses to approve.

SPEAKER_00So it's not like the entradmins don't want to do it. It's just a very difficult thing for them to keep fighting against. And it takes a toll on you, right? You just

SPEAKER_01Absolutely.

SPEAKER_00Post things and, you know, these things come out. So do you look at it from that angle and how do you approach it? Always depends on the maturity of the org and how much they value security, et cetera, right? But I think if someone is engaging you, they already value it.

SPEAKER_02Yeah, I mean, there is that perspective, that there is already some buy-in for security and a security approach. The environments that I've seen that are really well secured, typically it comes down to the administrators believe they're part of security. Whether they report to the, they both report to the same manager or not. When the admins feel like they're responsible for security, the security environment is way better. So the environments that I see that are very well secured,

there's that partnership that happens between administration and security.

SPEAKER_02So those that are the admins of the environment are partnering with the security side and understanding and sharing information and sharing knowledge. And it's not a situation where security is throwing something over the fence to the admins and the admins have to deal with it. It's this understanding of and sharing of knowledge. I mean, when I worked on Active Directory and Active Directory was pretty new, I had to inform security of how these things worked and what was a good way to do it and what was a bad way to do it. What was an insecure way to do it? There's better ways to do it.

SPEAKER_02It's one of those things where Yes, the administrator should inform the security folks of, hey, this is not a great idea. Yes, you can hire another company to come in and tell you that. And that's fine. I'll tell them the same thing. They'll tell you the same thing. And then it'll get fixed because that often is how that happens. But the history is cyclical. You know, we see the cycle of things where with Active Directory, we had applications that needed domain admin or needed some high level rights in the environment. And so they were given those rights.

SPEAKER_02We've been seeing the same thing with applications. And of course, now it's a totally different ballgame because before, in order to get your application into a company, you needed salespeople. You needed to You needed to show and demo and they had to then install the software and install a license key and do all these things. Nowadays, it's just available. There's these applications by like XYZ Corporation. Who knows what that is? But it's requiring directory read write all. So do we allow them to have that or not? And so it ends up happening where there's a lot of applications.

I was starting to put together a list of the applications that required all these

SPEAKER_02big rights, and I think I lost it in a system upgrade because I replaced my laptop. But I need to do that again. Start looking at these applications that need these very highly privileged rights and try to figure out, do they need those rights? Are those required? And it's contingent upon the administrators to be able to inform security of how best to do this, because you are the ones with knowledge. The administrators have the knowledge and have the understanding, and they can better empower the security of their environment.

SPEAKER_00Absolutely. Because security folks will be spread across so many different technologies and stacks. They wouldn't know between, you know, Entra and Workday and like each one what their different permission models are, etc. So where there's a lot of collaboration between those teams, it really, you get a better outcome. for the organizations. I think for the leaders listening in, you know, it's sort of building those team building between them and improving that collaboration. And you're right, like with apps, the cyclical nature and how it's,

you know, getting there.

SPEAKER_00Now with agents, they have this, they're building even, you know, payment systems where the agents can approve and pay for systems as well. So you'll find an agent figuring out, oh, I need this tool and let me pay for it so I can call into that API and it'll be bringing on a system as well. Can you combat that with another security agent that does that review? I'm sure it's coming, right? It'll do a first pass security review for the folks to say, like, you know, should the user or the other agent use this app or not?

SPEAKER_00And then have the human in the loop to then approve that. So that's definitely where we are heading. And these things are just going to compound as we go, right? having those fundamentals in place is going to be very important for, you know, all the orgs. I agree. Awesome. Sean, thank you so much. There is one thing we do in the podcast is to share a tip or something you learned. It doesn't need to be intro, just, you know, anything you learned over the last week or two,

SPEAKER_00something new that you thought was cool. It can be, you know, some place you found some new beer or whatever it is that you're passionate about.

SPEAKER_02Sure. One thing that's pretty cool that I learned was that the Artemis mission, when they went up and went around the moon, they actually had two cameras there with them. One was a Nikon D5 and one was a Z9, I believe. And so they used the different cameras depending on where they were taking pictures of. And so the Artemis picture of the Earth is that, well, the Artemis picture of the Earth is of the nighttime side of the Earth and was a long exposure picture. Whereas the Apollo mission, when it took a picture of the Earth, it was the daytime side.

So I thought that was pretty cool and interesting of how the astronauts have to also become photographers in order to get some pretty impressive pictures,

SPEAKER_02including the Earth set picture that's been traveling the social media. It's incredible.

SPEAKER_00Yeah, I loved it. It's incredible. Like, we've never seen that, right?

SPEAKER_02Right, exactly. So it's amazing. And I learned that the Artemis mission that's going up next year is going to be doing some things to prep for the moon landing, which is going to be in Artemis 5, which is going to be in 2028.

SPEAKER_00Wow.

SPEAKER_02Yeah, 2028. So looking forward to that.

SPEAKER_00That is, yeah, it's exciting. Like my father used to tell me stories when he was young when they first landed in moon like they knew what they were doing and this time when it happened it was morning hour time so like we had my son and others who we were like watching it when they took off and went so looking forward to experiencing that landing on moon again

SPEAKER_02Absolutely. Yeah, I had the benefit of being in Florida when the Artemis 2 took off, or when the latest Artemis mission took off. So I saw it in the sky and watched it go up and then watched the live stream of them actually landing. And the other thing I learned, which is amazing, is that NASA had identified not just the hour, but the minute And also the second of when splashdown was going to happen. And they were accurate to the second. Yeah, right.

SPEAKER_02That is amazing. I mean, just the amount of math and intelligence and genius that goes into that is so impressive.

SPEAKER_00Yeah, physicists need to be paid more than what they haven't paid for. Yeah, it's crazy. Awesome. Thanks so much, Sean. I really appreciate you coming and for all the work you do for the community and helping all of us secure and try more.

SPEAKER_02Thanks for having me, Mira. I appreciate it.

Open the transcript file

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. Which Passkey Should Your Users Get? The FIDO Alliance CTO on Passkeys and Post-Quantum Cryptography

    Nov 14, 202645 minAudio

    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...

    Credit the people on this episode

  2. Free AI Agents, the E7 Bill and AD vs Entra: The Workplace Ninjas US Special

    Nov 7, 202625 minAudio

    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...

    Credit the people on this episode

  3. Entra Multi-Tenant App Mistakes Every SaaS Builder and Admin Should Know, with Kelvin Tegelaar

    Oct 31, 202643 minAudio

    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...

    Credit the people on this episode

  4. Conditional Access Gaps and the App Back Door, with Brandon Colley

    Oct 24, 202639 minAudio

    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...

    Credit the people on this episode

  5. Stop the Bleeding: Cleaning Up Apps, Secrets and Consent in Microsoft Entra

    Oct 17, 202651 minAudio

    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...

    Credit the people on this episode