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

One Compromised Agent ID Blueprint Can Cross Tenant Boundaries

Jul 12, 202654 minAudioEpisode 66
ShareXLinkedInFacebookWhatsAppEmail

Microsoft Entra Agent ID uses familiar application and service-principal objects under the hood, but its one-to-many hierarchy creates a different security boundary. A blueprint can be associated with many agent identities. When that blueprint belongs to a third-party provider and is trusted across customer tenants, the provider’s credential security becomes part of every customer’s risk model. In this episode of Entra. Chat, Merill speaks with Katie Knowles, Senior Security Researcher at Datadog, about her three-part security analysis of Microsoft Entra Agent ID. Katie explains the blueprint, blueprint principal, agent identity, and agent-user relationships before walking through a cross-tenant compromise demonstration: compromised blueprint credentials, enumeration of associated agents, token requests in trusting tenants, permission inspection, and selection of a useful target identity. That path does not automatically grant Global Administrator access. Its impact depends on what the target agent identity has been permitted to do. The important lesson is the control point: one blueprint can sit upstream of many identities, tenants, and permission sets. Katie and Merill also discuss tenant-owned versus vendor-owned blueprints, the Agent ID Administrator role, first-party agent creation through Microsoft platforms, why production client secrets compound the blast radius, workload identity federation, separating blueprints by risk, reusing app-registration detections, and Microsoft Entra ID Protection for agents. REGISTER: Hidden Risk of App Permissions in Entra ID Many Microsoft Entra ID environments contain third-party and custom applications with permissions that are broader than necessary, and most organizations lack visibility into how those permissions are being used. Excessive Microsoft Graph permissions and unused access increase the risk of OAuth abuse and privilege escalation. Join our live session on July 22 to learn how to: * Evaluate delegated versus application permissions * Build an effective app governance strategy * Reduce unnecessary access without disrupting users You’ll also see how a free AppGov Score assessment can help identify governance gaps and where unused permissions reporting fit into a least-privilege approach. Subscribe with your favorite podcast player or watch on YouTube About Katie Knowles Katie Knowles is a Senior Security Researcher at Datadog focused on Azure security research, cloud identity, and securing emerging technologies. * LinkedIn - https://linkedin.com/in/kaknowles * X/Twitter - https://twitter.com/_sigil * GitHub - https://github.com/siigil * Website - https://kknowl.es/ * Microsoft MVP profile - https://mvp.microsoft.com/en-US/MVP/profile/a3547b6a-6a4d-4aa0-840f-23b858c43c8b Related Links * Entra Agent ID: The blueprint blast radius (mentioned at 51:39) - https://securitylabs.datadoghq.com/articles/agent-id-blueprint-blast-radius/ * Entra Agent ID: Inside a cross-tenant agent compromise (mentioned at 51:39) - https://securitylabs.datadoghq.com/articles/agent-id-inside-agent-compromise/ * Entra Agent ID: Protect, detect, respond (mentioned at 51:39) - https://securitylabs.datadoghq.com/articles/agent-id-protect-detect-respond/ * Disable agent identities in your tenant (mentioned at 04:00 and 49:33) - https://learn.microsoft.com/entra/agent-id/disable-agent-identities * Investigating suspicious AI workflows in Microsoft Entra Agent ID: Agent’s user account (mentioned at 05:14) - https://redcanary.com/blog/threat-detection/entra-id-ai-workflows-teams/ * Entra Agent ID from a Security Perspective (mentioned at 20:38) - https://blog.compass-security.com/2026/06/entra-agent-id-from-a-security-perspective/ * Spying On Your ISVs Credential Choices (mentioned at 38:11) - https://ericonidentity.com/2025/01/13/spying-on-your-isvs-credential-choices/ * Who Are the Robots? Uncovering AI Agents Identities (mentioned at 51:39) - https://www.youtube.com/watch?v=mMxACHKIAwY * AzTier (mentioned at 51:39) - https://aztier.com/ * Microsoft Entra Agent ID key concepts - https://learn.microsoft.com/entra/agent-id/key-concepts * Workload identity federation - https://learn.microsoft.com/entra/workload-id/workload-identity-federation * ID Protection for agents - https://learn.microsoft.com/entra/id-protection/concept-risky-agents Related Entra. Chat Episodes * If You Manage Entra Permissions, Watch This Before Deploying Agents - https://entra.news/p/if-you-manage-entra-permissions-watch * From Windows Core to Leading Agent ID: Vince Smith’s Microsoft Story - https://entra.news/p/from-windows-core-to-leading-agent * Attackers Are Targeting the AI Ecosystem You Cannot See - https://entra.news/p/attackers-are-targeting-the-ai-ecosystem Chapters 00:00 Intro 01:12 Katie’s Three-Part Agent ID Research 05:40 Agent ID Objects Under the Hood 06:24 One Blueprint, Many Agent Identities 08:43 The Multitenant Trust Boundary 17:33 Cross-Tenant Compromise Walkthrough 28:29 First-Party and Third-Party Blueprints 36:56 Stop Using Client Secrets 38:40 Workload Identity Federation 46:24 Permissions and Privilege Boundaries 49:33 Detecting and Responding to Agent Abuse 51:29 What Comes Next for Agent ID Podcast Apps 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_01intro chat with merrill's live digging deep where techs thrive from the latest hacks to cool updates join the ride don't be late [music]

SPEAKER_02hey folks welcome to another episode of enter chat and for the second time on the show i have katie knowles here with me from datadog she's a senior security researcher and she wrote one of the most detailed agent id related blog post from a security perspective that i've seen it's been like a three-part series going into a lot of depth so on this podcast we've had a lot of work from microsoft from the agent id team etc come in and share their vision and what they're building and katie is bringing in

SPEAKER_02a very different you know the outside perspective of trying it out putting all of it together you know making sense of it and then looking at how attackers can abuse it and what are the things you know you should be doing so katie very excited for today's episode thank you so much for coming

SPEAKER_00on yeah thanks for having me back merrill always excited to chat

SPEAKER_02awesome so what was the origin of you know the research you like you were saying it was it like 27 pages that you had the

SPEAKER_00the service principal post that I did previously the draft document I think it was 27 pages and so when it came time to talk about agent ID I received some gentle advice from team members to maybe split it out and make it a little easier on everybody's everybody's eyes and reading time

SPEAKER_02right nice nice so how did it get started on

SPEAKER_00the agent type research yeah there's been a lot of evolutions in agent technologies over the last year and prior to this i looked a little bit into copilot studio as well just seeing the new aspects of where olm or ai are coming into play and especially how that's affecting identity i'm just realizing i've got this temporary tattoo from the canada soccer game they're out now but if you see it that's what's up with that but back on topic for me prompt injection hallucination they're really interesting vectors

SPEAKER_00but they fall more under social engineering i really like looking into the the infrastructure of how things are assembled so for me that's meant digging a little bit more on the infrastructure and the identity side especially agent id has been really exciting for that reason because we're expanding or microsoft is expanding the identity standards that have been set for relatively for a few years at this point right and now they're changing again and a lot of the times in security it's an exciting time because it means if we don't think carefully

SPEAKER_00about how we're building things in 10 years we'll have lots of exciting defcon talks about it and trying to think about that stuff a little bit in advance has been just a lot of fun for me

SPEAKER_02nice yeah it's uh it's from the product side but also from the customer side right when they deploy things and leave things open that's where all these different gaps get created uh like with the zero trust assessment and in maester we write various checks that make sure you know it's all been configured properly um yeah so that's interesting and even with agent id when i was working at microsoft i remember there's just before launch at ignite the previous year there's this rush to write some content to give guidance on how

SPEAKER_02to disable agent id and there's no magic switch to turn it off in your tenant it's lit up in your tenant but the team did provide like detailed guidance on what you should do where you should go so there's a page that outlines it because there could be tenants where you're like i don't have any agents and i don't want these features you know lighting up and i don't need it so they created that page for those sorts of tenants where you might never you know have agents what are the places you can turn off

SPEAKER_02so i'll share that but it's sort of like a not advertised page it's it's there but you need to go look cool awesome so let's dig in and it'll be good from your perspective even to you know walk us through the research and explain the concepts of even blueprint and other things from your perspective so i would love to hear hear from you

SPEAKER_00yeah absolutely so the series was three parts the first part was just the fundamentals of how agent id works from an outside perspective probably bits that i've missed but just poking around at the apis and structures the second post was looking into the impact of a blueprint compromise specifically in this case if you were using a blueprint in multiple environments how that could lead to the compromise of multiple environments and just illustrating a little bit more how when there's more identities associated to an application or a blueprint

SPEAKER_00in this case then the impact can be different than we would assume under the application model and then the third post was just kind of wrapping all that up with some steps on protecting detecting and responding if things come up with agents in your environment what to look into and i should mention on the detection front there's also been a really great post from red canary investigating the logging side of agent identity so definitely recommend that one and there's there's some other great links as well that have been coming out it's exciting to be publishing

SPEAKER_00while everyone else's eyes are on this too

SPEAKER_02nice nice awesome yeah so uh where do you want to start which what what was the thing that took you by surprise when you started on this initially yeah

SPEAKER_00so anyone who's looked at applications and service principles has likely had a headache over it and i was surprised when i opened the hood on asian identity to realize that it's it's just the same it's the same objects it's different types of the same objects that that was a little bit of a headache to unpack as well because i think there's this wonderful job that'll happen in the documentation where we things get abstracted right they're saying oh it's a brand new type of identity right you open the box and you're like wait this looks familiar this is just applications

SPEAKER_00but they're different right they work differently different properties different things so from the from the application model perspective i would say for me the big surprise was that multiple identities can be associated to one blueprint so in this case an agent blueprint would be the app registration equivalent but then that has its own service principle kind of like how you would have an app registration and a service principle every environment where that blueprint is used you'll have a blueprint principle

SPEAKER_00but then there's more it keeps going right we keep getting more identities so the blueprint principle can have a lot of different agent identities associated with it which are another type of service principle different from the blueprint principle and then the agent identities can have an agent user account if they'd like as well which is a user that can't be directly accessed with standard user credentials it has to be accessed through the whole the whole authentication chain of of agent id So that the agent identity can do things like message you in teams and work with exchange.

SPEAKER_00But that's so many identities we're used to thinking, at least I'm used to thinking of applications as you have your app reg, you have yourself a service principal. And as long as you think about those two things within the same tenant, you'll have an okay day. Now we can have up to like 250 identities on the same blueprint in one tenant. To me, that starts sounding like future blast radius. I don't know about you, but yeah.

SPEAKER_02Yeah, so even when I sort of explain Blueprints I focus on just a single tenant because it's still complex but it's a bit of an easier story to tell. The moment you talk about Agent Blueprint being multi-tenant and then there is the home tenant where they're created and there are multiple tenants and then you have all the other identities under them it's just crazy like how those relationships form and what they can do it's a complex problem that microsoft is solving like

SPEAKER_02the whole agent id blueprint was created to solve co-pilot studio azure foundry and you know all those frameworks where they're building agents all the time and how do you manage them right so that that's the that's why they needed a blueprint to create others and even even at microsoft the co-pilot studio team did it a bit differently foundry team and they had to go and do some rework etc so yeah it is so super complex and i i've

SPEAKER_02so i've never attempted i've seen i haven't seen much people even speak about the multi-tenant aspect of it like it's it's they are a little bit in the docs but that's where most from a security perspective that's where it gets really interesting right like when you trust tenants because you suddenly can make changes in your tenant and then it flows on to the other tenants of course there's all the consent things but but just thinking it through like the tiers of identities and when you end up with agent user at

SPEAKER_02the end there is so much that's happening and a lot of heavy lifting happening in that space

SPEAKER_00absolutely and to be clear the fact that you know agent id has been built out at all it's really great to have the management plane for agents in place already because now there is a separate model where different controls can be applied or you can see the relationships or start visualizing the relationships between a blueprint and these 250 hypothetical identities we're talking about we can see that a little easier than if we had oh gosh i'm thinking about the app registration perspective right like a different app for every single agent you're deploying and you've got

SPEAKER_00so many agents in your environment so it helps quite a lot uh but then there there are going to be some follow-on implications that will arise over time. And I think the third party blueprints, they're probably not used to heavily right now, right? It's a discrete list for now of third party either what like an agent factory type solution you might want to work with that's third party or maybe a vendor asks you to work them on this but it's still very emerging as opposed to like you mentioned that first party use so co-pilot studio and foundry and things

SPEAKER_00like that.

SPEAKER_02how well do you know the apps accessing your microsoft entra id environment enow is hosting a free session on july 22nd on app permissions and governance in entra you learn the difference between delegated and application permissions the risks of excessive microsoft graph access and practical steps to improve visibility and reduce your attack surface enow is also sharing their free appgov score assessment and a seven-day trial to identify governance gaps and uncover risky permissions.

SPEAKER_02Register for the session at appgovscore.com that's a-p-p-g-o-v-s-c-o-r-e.com you don't want to miss it head

SPEAKER_01over to appgovscore.com to join yes

SPEAKER_02yeah and the third party they've already started using it right so like all of the security co-pilots and even other who are building agents that run in m365 they they hit those and they go over that um but the 250 is also the number you have right which you see in the some of the docs for agent idd blueprints you you were saying 250 I think there are only certain conditions where it's limited to $250, but you can actually go up more.

SPEAKER_02So for non-Microsoft platforms, it's $250 agent identities per blueprint. But within the Microsoft platform, yeah, it can go if you're not limited to 250.

SPEAKER_00Yeah, I can imagine internally the number is a lot higher for certain things.

SPEAKER_02Yes, yeah. Like Copilot Studio and Foundry and more.

SPEAKER_00Yeah, yeah. When we start looking at that multi-tenant aspect, though, kind of to get back to what you're probably trying to point out, as they get used more and more environments, I think something that struck me as someone who's been a security practitioner is that I might assume, especially from the way the data is modeled, that each agent identity is its own security boundary. The user has the ability to consent delegated permissions to that agent identity. They have the ability to interact with that agent identity separately from others.

SPEAKER_00And it's kind of true, right? It can have its own permissions grants, but it might also be inheriting permissions grants or the fact that, you know, you can't have a credential on an agent identity like you can with service principal hijacking. So I talked a bit about that last year, if anyone's curious. but we don't have the ability to take over the agent identity itself but whoever controls the blueprint is the one who's going to be handling the authentication and the tokens for everything associated with that blueprint and

SPEAKER_00the multi-tenant aspect is then if i'm trusting a third-party blueprint i'm now trusting you to manage every agent that i'm going to create from that blueprint and every permission that gets assigned to any one of those agents or agent users along the way so that's a lot of at minimum that sounds like a lot of sharepoint sites if you get down to the agent user level but it could also be a lot of delegated scopes or application scopes that an agent might have to manage different things especially a solution like an agent foundry where there there might be different contexts

SPEAKER_00that you're sort of minting agents for. Maybe IT wants one to manage users, maybe HR wants one to manage sites, maybe other users are just interacting with one in chat but all those different use cases they kind of create different permissions contexts and all those permission context will go back to the same blueprint if they're created from the same blueprint.

SPEAKER_02Exactly. and that's a bit scary so i want to like spend some time on that because i mean i became sort of a isv sass and one of the things that scared me is creating an app a multi-tenant app that has permissions into lots of tenants and then if this one app that i own is compromised that it's going to be really bad because it's not going to be just one customer right that depending on the type of the permissions but with the blueprint what

SPEAKER_02what was the the thing you saw like and you tested when you you know tried it out what were the things you could do

SPEAKER_00when you compromised blueprint yeah there's been a lot of restrictions so what you can do comes from the permissions assigned right and there is a good amount of restrictions on what can be assigned to an agentic identity so

SPEAKER_02a blueprint that's a good thing to talk about because there is a whole page that lists what you can't assign to a blueprint so yeah let's let's dig into that

SPEAKER_00Yeah, there's a lot of stuff you can't do. So a lot the classic stuff is global admin. I don't that one doesn't fly. I think maybe app admin as well. I can't remember. I have a spreadsheet somewhere.

SPEAKER_02Yes. yeah so they they did a lot of work removing and i think there was even last month or a few weeks ago there's a whole tranche of permissions that they removed that you cannot assign to a blueprint principle okay

SPEAKER_00and i haven't checked those ones yet so if it included what i demoed then maybe that one's not valid anymore

SPEAKER_02but that's the thing with this it changes so much like and you can imagine what it was last year when they're starting internally and i try to go and learn from the internal docs but it just was like every few days the entire model itself would change and even the names they used kept changing it used to be agent blueprint principal id agent id blueprint and they had different names and the internal docks they would keep updating or they would be in different flights of updates

SPEAKER_02and i just got so confused i said like i i don't want to see so much of the sausage being made let me just wait for like six months till you know you announce it at ignite when they came out at ignite and announced a lot of it so i just waited till it all came out because it was just doing my head in because they would use terms and then the actual term would change for what the blueprint was and what the agent user was and it was super confusing trying

SPEAKER_00to keep track of that yeah i think there were about three months where i wanted to start working on agent id but every time i looked at the docs or i tried to hit the apis or uh get access to the right programs and the test tenant and then it still wouldn't work the way you thought it should and finally things started working and let's go

SPEAKER_02nice yes yeah yeah cool awesome yeah uh yeah so sorry we're explaining about the blueprint

SPEAKER_00yeah so a lot is not possible and i'm sure a lot will still become not possible over time to be clear but the scope of built-in roles and then also microsoft graph permit permissions that can be applied to either a service principal or a user along the way. There's still so many and it's difficult to get that full list down. In the case of the demonstration that I did in part two there was the ability to escalate. Somebody could move from a blueprint in one tenant to take over an agent identity and another tenant and that agent identity had the ability to set

SPEAKER_00a temporary access pass at the time of publication which would allow you to do a one-time sign in as a targeted user with a eight character password which is needed to reset mfa to reconfigure an account it has a valid reason to exist but it's also a nice way to get in as an attacker if you have the ability to do that now that would require someone to configure an agent identity with that permission to be clear but it's still a scary scenario to talk about especially when we've seen some multi tenant scenarios happen in the real world not often

SPEAKER_00that people get to talk about them thankfully we have a lot of documentation on the midnight blizzard

SPEAKER_02incident which i go back to regularly yes yeah like that's my absolute case study even this example you mentioned right you said someone would need to configure the permission on that agent identity but that's what the attackers do to hide in the cloud right they like with midnight plesard they got in they created service principles or high took over an existing service principle assigned it permissions and now they had a way in and they just went quiet for a for a long time and no one knew right

SPEAKER_02and your logs get older but this is now going to be another thing you need to look at right so it doesn't need to be someone misconfiguring it it could be the attack themselves taking over an identity and the thing with agents is like it's insane every time you go into copilot studio or even in teams you can create now like non-declarative copilot studio agent like copilot agents and so many types of agents so all of them spin up service principles and blueprints

SPEAKER_02and like a lot of people were surprised when they went to the portal and checked and they suddenly had hundreds and thousands of agent identities and they were like we never rolled out agent identities in our tenant and suddenly they have this huge chunk which adds a lot of noise right like you now need to sift through all of them to know where an attacker might be hiding

SPEAKER_00Yeah, and looking out for all the malicious vectors that might come out of every malicious permission. It's quite a lot to ask already. And then I think one of the things that has always caught me off guard when I've been looking to detect on activity in ENTRA is that service principle logging will look different than user logging in terms of what fields to pull to make sure that you're looking for the right object or the right user, looking up that user or service principle if someone's not familiar with it and triaging. can be quite difficult for them to understand what's happening

SPEAKER_00and now we've got this added layer of by the way you know someone made an agent and it's got an identity you might not even know that it had an identity created for it and it could be doing something on the permissions bit before we get too far from that yes So the temporary access pass of the permission I used, it may or may not still be available. There was also some really good research into some of the Microsoft Graph permissions that were still available a couple weeks ago from Compass Security. I think a few weeks ago they had like an intra -agent ID

SPEAKER_00from their security perspective and that have another list if anyone hasn't blocked those permissions yet of things to maybe add for the future.

SPEAKER_02yeah you're giving me lots of ideas for maester tests that we can write to help yeah to find find out things that they should go looking

SPEAKER_00for yeah always always new features always new attack surface but that's that's just life right with especially with enterprises

SPEAKER_02exactly yeah so we spoke about the blast radius thing i love the visuals you have on on your blog post especially the blue the one about the blast radius between single tenant and multi-tenant yeah you you had like it's multiple tenants right and and that's why it's really crazy when it comes to that

SPEAKER_00yeah and if there's one thing i learned from explaining service principles it's that you love a good diagram and apparently the mvp chat loves a good diagram as well that's what i was known for so i figured i should try

SPEAKER_02and deliver some more nice and they look really good as well nice nice all right cool so let's go through the other parts of your research

SPEAKER_00yeah absolutely so we talked a little bit about the multi-tenant compromise that full scenario was basically that if an attacker compromised the tenant where your application that you're the blueprint you're consuming lives then they can add a password they could use that password to perform some token dances so first they would authenticate as the agent let's just say in the second tenant will skip straight ahead that they'd be able to see just from authenticating as that blueprint in a tenant where it was installed,

SPEAKER_00they could see what agents are associated with that blueprint so they can see which identities they'll need to or want to take over and see what permissions they have assigned. so at that point it's it's not even a case of oh they don't they can't discover it they don't know what's there they can see everything and in this case they exchange the token again for one of the agent identities and they see some of the assigned permissions uh in this case for the scenario i went out on a limb and said if a agent identity is going to reset user passwords it would probably or help reset user passwords it would probably also have the ability to read users

SPEAKER_00So that could be used for enumerating a user to take over. If that had not been the case, there's plenty of fun enumeration techniques an attacker can use to find high-value targets. But just as a recap of that full scenario, I know we talked about it a little bit. But that was the whole bit on that. The rest is just the defending, detecting bits.

SPEAKER_02Your whole series, you had it in three parts? What were the three parts of it? I think the first one, you explained the whole concept and the risk

SPEAKER_00yeah so the first post was the fundamentals of how agent identity works and then a little bit about how that blast radius expands compared to the application model so even if you're familiar with how app registrations work you might get a little bit caught off guard by how many identities can be tied to a blueprint second one was that scenario we just talked about so taking over a similar midnight blizzards to midnight blizzard scenario where the blueprint allows someone to compromise an identity in a separate tenant and then escalate to global administrator and then

SPEAKER_00the third one is like you mentioned just helping contain some of the aspects of what we just talked about so we can't remove the fact that if you trust a third-party blueprint it controls all the identities that's by design and it's the same with the application model if you use a third-party application registration to create an app in your environment or service principle whoever owns that app registration still can access that service principle it's just multiplied now with agents so largely making sure

SPEAKER_00that you treat your agents with whatever permissions you assign to them right you should treat them with that level of care and like we mentioned a lot still can't be assigned but some still can and it'll probably always be the case right certain things like managing sharepoint or exchange don't necessarily get classed away from things in entra because we'll frequently be looking to restrict high privileges in entra from being assigned to objects in entra. to at least like prevent that entra takeover scenario

SPEAKER_00but other applications might be targetable or if you have a custom role or something like that so certainly restricting the agent id administrative role is a great place to start right this is essentially the equivalent of an application administrator but for blueprints so they are the ones who can add credentials to your blueprints and then potentially misuse any identity associated with that blueprint if they're a bad guy

SPEAKER_02I think in that role there was a small change recently with the agent identity related roles and if I'm not mistaken they removed GAs from being able to manage agents to only that role so they there's a drop in the permissions that a global admin has now.

SPEAKER_00Yeah and I wasn't sure if that one was a deliberate one or if it was me trying to change things through the portal but that did seem like a recent change. There's a split between the Azure portal and the Entra portal now, too, in terms of what supported where.

SPEAKER_02Is it? I think it could be parts of like them rolling out. So this is where they're monitoring. You never know. Yeah, you'll see like one team push some changes out and other teams are behind or It ends up being there very different. So like yeah, and someone raises an issue and then it gets fixed. So it could go either way. because i know an example where in azure you had this checkbox to only allow privileged roles to access the azure portal in entra and

SPEAKER_02that was there when they rolled out the new entra.microsoft.com it didn't support that so anyone could go into the admin portal and and then yeah it was fixed after a few months so there was a discrepancy for a while and that's why these things keep changing all the time but I did see there are folks who monitor all the roles and the permissions that a role has and they monitor the docs and that's why i saw someone recently share saying why this the docs got updated or

SPEAKER_02the the permissions got updated and now these have all been removed from the global admin so yeah this yeah all of this is just keep it's changing right even this talk like this chat that we have is valid as of today but if you're listening later on just be aware that a lot of things can change

SPEAKER_00yeah definitely still evolving and uh yeah that's a great point i'd forgotten about that control on the azure portal uh and it's good to have it supported

SPEAKER_02with other portals as well yes cool so what can people do to protect like what are the things uh so there are all these things the bad actors can do to abuse all of this were there any other things we missed out from the attack perspective

SPEAKER_00that was the main attack scenario i was covering there's as many attack factors as assignable permissions which as we've covered will change but uh yeah that's all right uh so that that was the main bit i wanted to cover especially with other stuff on agent id coming out i think understanding the multi-tenant implications i was really excited to get that part across before it started coming up in a actual threat scenario so in terms of protecting just solidly moving on to the let's up yeah restrict this where we can i think

SPEAKER_02before we protect like what can i is there something we talk about as an intra-admin what they should be doing when they are faced with you know agents coming in and agents like you know sneaking in without them even knowing because that took people off guard when copilot studio and azure foundry and whatever the other services security copilot is another one they keep creating agents and people will start using them and you suddenly are now managing all these agent ids

SPEAKER_02What can admins do before we look into, you know, more of the restricting things?

SPEAKER_00Yeah. Before even... Yeah, and that's a great point. I think with the third party agents created from third party blueprints, for that specific scenario, as an administrator, you're always likely going to know about it because you'll need to consent to the ability for the blueprint to create agents in your environment, which requires administrative consent. so hypothetically if you know where your administrators are you should know every time that happens and you should treat it as a situation to be done carefully but for those first party applications like copilot studio like microsoft foundry

SPEAKER_00there's so many identities that you know users can be created and they're being enabled to do all these crazy things and i think being able to audit those i guess and look at the permissions assignments to those individual resources agents is really important the copilot studio side it's it's tricky i know they have made some changes recently on things like the the web portal where you can preview interactions with a copilot studio agent but previously that was just kind of a open open chatbot uh very easy for users to misconfigure that to be open to

SPEAKER_00the world i did some writing on that previously but i'm guessing as well that's changed by now yes yeah

SPEAKER_02so uh yeah and i think that's a good distinction that you call out right microsoft first party platform for building agents creates identities and then you have the third party platforms like you know you bring in someone let's say built a service now agent and that's going to talk into m365 into entra integrating with teams for example so these are agents built from it could be from big vendors it could be from small orgs and it could be even in-house built agents right in large enterprises there are lots

SPEAKER_02of people building agents that might be running on aw bedrock and like various places and then you know the even building custom agents from azure foundry for example would be ones where you create those agents So it's good to have that distinction between the first party and these agents. For the first -party ones, I think as entradmins you need to really work closely with your Microsoft 365 and Azure counterparts if you're a big org

SPEAKER_02and there are different people managing those landscapes to know how it's configured. I think the default is enabled. People can create studio agents if they have the license. so if you're like you don't have agents at all which i think it's unlikely but you can go and configure some things to turn those things off where you users cannot even create agents if you don't want them to so i think there are different taps that you can open and close from the first party side but it's good

SPEAKER_02to know like you said you know third party it'll always be through an entry admin that they would get onboarded and granted permissions

SPEAKER_00Yeah, yeah. And at that point then it's who can consent to those administrative permissions on app registrations for your tenant and it is really good to mention the business process part I think I've seen enterprises that are very large like you've probably seen and it can be difficult to strike the balance between not getting jaded about having to chase down the domain admin and they don't know what's going on or i guess the global admin these days but but there is a balance between that and just going rogue and trying to figure out the problem yourself right i can think

SPEAKER_00of so many times that i've gotten schooled especially on microsoft 365 by an admin in the right place right

SPEAKER_02nice okay right so that's the general guidance let's jump into you have really some really good ways to look out for for the third party agent takeover scenarios and so on so let's jump into those

SPEAKER_00definitely so the the third party blueprints that we just talked about again you'll need to provide some kind of consent for them to happen but you should make sure that if somebody is reaching out to you asking about hey can we use this third party agent blueprint or create agents from this we're really excited about it especially if it's going to have a wide scope of different contexts so maybe that blueprint would end up with control to do a lot of different tasks in your organization consider whether you're comfortable with that organization having basically all those permissions in your environment if you're not this is likely going to be very dependent on the application developer

SPEAKER_00but you might want to consider setting up a blueprint in your own environment and then providing them the secret or not the secret we will talk about that basically setting up authentication so that they can access that blueprint through their application but if you do need to remove that access and keep all your agents you still have the ability to manage it you still have the ability to say hey what credentials are configured on this blueprint or who has access to this blueprint or you know we really need to rotate a credential on this because it's been compromised now that's a little bit more in your control

SPEAKER_00as opposed to living in a third-party tenant where you don't have this ability

SPEAKER_02I think, I just want to dig into that. I think that's a really important concept because multi-tenant is the solution that's sold like, you know, you should do it as a multi if you're an ISP. If you read the Microsoft docs, it's like you're on ISP, you should follow multi tenant so you have one app and then it gets created in other tenants and it's easier to manage except but you have very little control when you do that for example even conditional access per workload ID you cannot apply any policies for apps that are created from other tenants the

SPEAKER_02if it's your own tenant you can do that so like even when i'm building the sas app for me that was one of the fear i had like if someone compromises my tenant and there are ways for them to get into all my customer tenants so you're now trusting the security of the vendors their tenant configuration all of the admins etc and taking this approach of creating the identity in your own tenant and then giving that to the vendor to say use that

SPEAKER_02of course they've already written their code to be only multi-tenant that's going to be very hard for them but i think this is something every isp vendor partner people are building going forward i think this is one way they should support both types if a customer says no i'm not i'm not going to trust your multi-tenant app i'll create it you tell me then as the organization you have a lot more control but of course there's going to be a lot of friction because whenever the app needs to now change or add new permission

SPEAKER_02or different reply you are they have to come to you follow your process there's a lot of friction you get one on the good side you get to know what are the changes the they're making because you are the only one who can change them in your but it might not scale especially like if it's a salesforce app they're not going to create like one per tenant so uh as the entry admin i think this is a good decision point and for isps to think of supporting this sort of thing

SPEAKER_02for very like security conscious customers

SPEAKER_00Yeah. And then that tradeoff, right? Between what permissions is the application or the blueprint or the agents of the blueprint, what permissions will they end up with versus what risk, what's our risk tolerance, right.? How much do we trust this service provider or this application provider with that level of permission and our tenant, which it's hard to do that level assessment every time, but it is worth thinking about if you've got something very high-risk. Absolutely. related to the to the secrets of the blueprints don't use them if you can't help it

SPEAKER_00so this has been going with application registrations as well you can have secrets you can have certificates and you can have federated identity credentials now are fixed and two of them are great options right certificates have a little bit less likelihood to leak you can store them a little more securely sometimes secrets are a big string and it's it's a long secure string but it's more likely to end up in an environment variable or a configuration file and especially when we're thinking about trusting our own tenant with high permissions

SPEAKER_00or trusting someone else's tenant with high permissions you don't want to think about a very long string in a file somewhere holding all those permissions essentially so if you have your own blueprints you have the ability to monitor what credentials are added you can configure those certificates you can rotate them appropriately you can configure the federated credentials to look to a different idp to be able to fetch a token from that idp and then use it on a regular basis if it's a third-party blueprint you don't really have control

SPEAKER_00over monitoring how many credentials are added or what types of credentials you can see what they're commonly authenticating with though and this was a trick that i learned from one of eric woodruff's posts which was really cool where you can see the sign and type and if it was used done using a secret maybe you can reach out to that third party blueprint provider and ask them to not do that important to note you can't stop an attacker in that environment from adding a secret and using that secret to authenticate but you can kindly plead them to not use a secret on a regular basis and

SPEAKER_00at least prevent the likelihood that something will leak

SPEAKER_02i do have a bit of i know the inside story on that so when they first built agent blueprints they were like it's only workflow federation nothing else and there were like explicitly no client secrets so agent id when it first first created in the internal tenants you couldn't so the problem was in a dev machine you you can't use federation because it needs to run in you need to run in a cloud somewhere and they somehow struggled and the identity team okay

SPEAKER_02because they wanted to follow the practice they did it but the moment you went to the azure foundry and copilot and all those teams and they were like what do you mean i can't run my app on my desktop to test it right so that broke down pretty soon but they are like their heart was like they were like no client secrets we can't do it but they they had no option because running stuff locally with as a managed identity or workload id federation there are ways to do it but it's it's very hard to to do that so

SPEAKER_02they begrudgingly added it but that's the reason it exists it's only only for the devs yes you should never see that in a production environment like never ever in production should you allow client secret as your interest the app management policy that you can define so a tip for everyone you can define the policy and say no secrets and no one will be able to create an app and i believe it applies to third-party service principles as well so if it's

SPEAKER_02in another tenant if you have the policy defined in your tenant it won't allow it so yeah hundred percent turn off client secrets uh for everything like forget about agents even for service principles we don't and in our master tests and zero trust assessment that is one thing we check every service principle and call out anything that has a secret and say you know just get rid of it especially ones that have like a five year ten year or somehow like when i was first working

SPEAKER_02on this i was like why do i need to keep doing this every and i gave a hundred year expiry for my hand.

SPEAKER_00I can relate it's it's not good but yeah i've been there with some logging systems why is the integration stop set up a calendar reminder. Yes.

SPEAKER_02yeah so you you have an outage the first time and then people go like this is like if you're a dev you go like this is insane i'll just give it like 100 years yeah and so if as the admins if you don't set it up midnight blizzard is a really good example of how the attackers use the client secret to get in so don't use the text thing always go for managed identity or federation workflow id federation and then worst case fall back to certificates i would say even certs You, there's the whole, you know,

SPEAKER_02you need to manage the search, rotate it. And again, people end up giving like longer expiry and you needと put it in Key Vault or HashiCorp somewhere and then there's a lot of overhead. So just do workload ID federation. Like it's amazing how good it is and in 2026, there's zero reason to have client secrets in production. Microsoft doesn't tab for any of... the service principles they create anymore in the corporate tenant or in

SPEAKER_02the internal tenant so if microsoft can do it being such a big org and enforce that policy i think it it's easy to tell your devs that no you know you can't have

SPEAKER_00a client secret in production yeah all the same whoever worked at eliminating those secrets i feel like if they haven't already they'd give a heck of a good talk about lessons learned

SPEAKER_02and a lot of people at microsoft know like it took it was very painful to go and fix all of it yeah but there was like That's one thing I really appreciate about Microsoft is after Midnight Blizzard, Microsoft started sharing through SFI how they would give status updates every quarter. And I think it stopped now, but previously Charlie Bell, you update and tell how many percentage of apps They still had secrets and they would show the progress of how they were getting rid of it because you can't just go and update everything on day one

SPEAKER_02Just finding out took a long time but that I really appreciate how Microsoft does. you know after the compromise what you do is i i heard someone say you know what a company does after it's compromised is is the thing that builds trust versus you know more than anything else and seeing how it took place at microsoft and all the things they did i really appreciate you know all that effort they put in to address that so yeah it was good to be on the inside and see how it all unfolded

SPEAKER_00yeah and the more complicated identity gets the harder it is right so it's admirable like with any scale of company but especially i think when you get to that thing where you've been you've just you've been dragging everything along from active directory i'm sure there's been a few like rebuilds along the way but you can't just burn it to the ground i there's there's going to be a lot of developers and a lot of timelines involved

SPEAKER_02Yeah, you definitely need a lot of stakeholder support for it. If not like there's no way you're going to spend like Microsoft spent months fixing stuff they didn't add any new features for a long time everyone was pulled in so yeah you're gonna disrupt your business to go and fix this and I It's very hard if your stakeholders don't support that

SPEAKER_00Yeah. And there now we have the visual, the case study of if you let your blueprints use secrets, here's where you'll be in 10 years.

SPEAKER_02Yes. It will be a lot of work. Yes. Cool. Awesome.

SPEAKER_00Work up front but more work later.

SPEAKER_02100% right like I think it's a little bit of effort up front to do the right thing and it will save you so much time later on like you know it's for me it's like wasted time now with AI and agents like there's so much more we can do and and it's easy to just prompt it into doing the right things so you're not even working secrets anymore and it's so easy to tell it like i want to use id workload id federation and it sets it all up the hard part of troubleshooting and all of that can now be delegated to agents

SPEAKER_02so like why wouldn't you do that right so before the devs had to break their heads figuring out a lot of these things and now those are the things they can delegate to you know your codecs or your cloud agents and they are really good at reading the docs and implementing those things the right way so i would say it's even less of an excuse for devs to not be doing the right things anymore yeah for the basics

SPEAKER_00and the scriptings especially our scripting like i can remember even just a few years back when i was working on azure and entra and just waiting for you know the best the best of the best and their glorious blogs to drop scripts that would help me audit risk and things like that and it's very easy to build those at this point i think i've i've certainly struggled working at the edge with these topics like agents are not going to understand agent id the best especially when it's changing every week and especially when it gets down to the apis or under the hood

SPEAKER_00but i think once you know what you're doing once you know what to check for and you can kind of take that take on that delegation right and say hey i need an inventory of these types of identities using this type of api call please just save me 20 minutes and figure it out that stuff has been brilliant to see

SPEAKER_02Cool so in your list you had like privilege restricting the permissions right so one was privileged privileged assignments.

SPEAKER_00Yes so obviously making sure people can't manage the blueprints but also making sure your identities don't have too many permissions on them or if they do maybe consider having blueprints that have different risk levels that you can handle differently or monitor differently so maybe you have a bunch of agents that will be performing low risk tasks or working at certain tasks and uh and 365 applications and you know how to monitor them that way or do approvals that way maybe you have some other stuff that the it team is doing and uh you know they're going to be doing higher risk tasks so considering you know

SPEAKER_00if the blueprint is the security boundary in this case where do you want to draw that boundary for the permissions you're assigning for whatever it's still possible to assign and to be clear privileges assignments on agents are still not great like we've seen plenty of cases right where uh even on your local desktop you know an agent doesn't need to rmrf everything for you so and then it'll get better over time right but limiting the assignments that you give to those agents is also really good to look out for along with you know making sure people can't just take over them and

SPEAKER_00the third-party blueprint you know always thinking about them very carefully

SPEAKER_02before adding them in nice and yeah you can use the portal to review the permissions i think there's a lot more visibility there

SPEAKER_00than it used to be before yeah yes actually that that got built out while i was writing this where you can click through the entra portal and see concretely in in one well several tabs but on one pane of of several tabs you can see the application permissions the delegated permissions and the entra role assignments that an agent identity has, which is just fantastic. Really great addition.

SPEAKER_02Yeah, I don't think it's even possible for service principals today and even app registrations to see the intra roles. yeah i don't think i don't think you can see the entra roles that an app has unless they added it now i've not been closely monitoring the portals but yeah like that was one easy way to stay hidden like you could assign global admin role and i remember back in 2014 we were doing like the initial rollout of m365 for

SPEAKER_02a customer and for some strip to do some work they said oh assign it the global admin role but the thing is those days there weren't many roles and the permissions were not granular enough and that was technically the only way to do things like mailbox migrations and stuff so and you could only do it through script and you could only see it through script you could never see it in the portal that this app has this entra role assignment

SPEAKER_02but it's good to see that for the agents at least it's there

SPEAKER_00from day one yeah i think for the service principles at least previously you had to look in the role definition and then the list of everyone there and at that point you might as well use scripts to your point yeah true there's some other stuff on monitoring and if you need to disabling and deleting an agent i think that one's probably going to evolve quite a bit over time so checking i think i just ended up linking to the documents there anyways keeping on top of those is quite helpful if you've got a detection and response team Something that I will mention, I don't know that we need to go in depth on the detections,

SPEAKER_00but because blueprints are app registrations, a lot of suspicious activity you might be monitoring for app registrations and service principles will already be caught by those detections unless you formatted them strangely. Generically, if you're looking for a credential was added to an app registration, that should also pick up a credential being added to a blueprint, which I was really happy about that part at least because the objects are similar. The monitoring can be pretty similar.

SPEAKER_02Right. Yeah, I think that's a good thing to inherit, right? And that's one of the good things with the design because they built on top of apps and service principles that a lot of the work that you're doing for monitoring

SPEAKER_00just gets included with it yeah and then i don't i don't know if you know the status of identity protection for agents but i know from the microsoft side that's at least on the horizon it's not already showing up for risky sign-ins and things like

SPEAKER_02that correct yeah so the whole idea behind that was if an agent is compromised then you don't want that agent being be used by a user And the flip side is if a user is compromised, you don't want them using any agents as well because it would use their identity and do things. So I, the ID protection stuff is related to that and it keeps evolving. They, they use a lot of machine learning and patterns to find out like all of the different types of abnormal behavior.

SPEAKER_00Yeah, I think mostly it just wasn't clear if the detections were online yet or not, but I'm sure if anyone watches that space, it'll be...

SPEAKER_02sometime soon nice nice i think that covers everything yeah i mean there's there's plenty more in the rabbit hole

SPEAKER_00of agent id so i definitely recommend if anyone's curious to keep on top of some of the security posts that are coming out and i've got some links related to that that i shared with you i don't know if you want to share them but my favorite reads along along the road of trying to figure this stuff out yeah it's it's an exciting time right it's obviously going to keep evolving as things go on so building while using is always a tricky spot for security yes

SPEAKER_02and yeah it's it's evolving i think there are new features coming in as well so agent id is not the not the one that's baked you know speaking to some of the the pms on on the stuff that they're building yeah that there are new lots of new work that they're doing so I think at ignite we'll see coming ignite we'll see all those features landing and then of course you'll have more work to do too yeah find out all the fun things you can do with those

SPEAKER_00the the token idea or like the token scoping and token delegation side of things i think that's something that hasn't crept into asian id just yet but i'll be curious to see if things change over time because there's so much so so many rfcs to really like crack your skull over right and i don't know what's going on but hope you'll understand one day just a lot evolving in

SPEAKER_02the wider identity space around this stuff absolutely awesome katie thank you so much i can't believe that we crossed the one-hour mark so quickly uh it's uh i yeah so i love you all your research it's uh so well written well thought out and you you took people right from the beginning and explaining the concepts all the way through instead of skipping those paths and pointing to the docs because i love like the different variations of the explanations right and really appreciate you focusing on entra

SPEAKER_02and you know bringing us all this goodness to help the defenders and help the entra admins to get a leg up quite early on like you know even before all of these things have started rolling out i think as the years go we'll be seeing more and more agents and more stuff coming out and in different tenants so it's really good to get a leg up quite early in the space yeah i didn't thank you

SPEAKER_00for saying that i always want to make sure that i've left behind a document that you know that i would have enjoyed referencing at the start of the research i've done so if it helps clear up understanding or people are able to reference it then i've fulfilled my goals at least. And it's a lucky job to have where I can explain that kind of stuff because I've certainly been on the other side and it's painful.

SPEAKER_02100%. Perfect. Thank you so much, Sophie. Looking forward to your next research and having you on again.

SPEAKER_00Thanks so much Meryl.

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