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 the Bleeding: Cleaning Up Apps, Secrets and Consent in Microsoft Entra

Oct 17, 202651 minAudio
ShareXLinkedInFacebookWhatsAppEmail

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 were never cleaned up. It’s tempting to start fixing the scariest app on the list. Jeff Sakowicz argues for a different order: stop the problem from growing first, then remove the debt that gives you the most risk reduction for the least disruption. Jeff isn’t describing someone else’s product. He has spent most of his 14 years at Microsoft as a product leader on the Entra application platform, shaping the application and service principal model and the OAuth permissions and consent model that every Entra tenant runs on today. Publisher verification and risk-based step-up consent came out of that work, and he now leads part of the team building the platform behind Microsoft Entra Agent ID. Inside Microsoft, he’s the person teams call when an app incident needs untangling. This is his playbook for securing non-human identities, from client secret burndown and unused apps to consent phishing and the protections Microsoft runs in every tenant by default. Prevention starts with policy The best medicine is prevention. Before you clean anything up, go through the policy controls you already have and set them to block insecure configuration that doesn’t fit your organization’s risk tolerance. This is a balance, not a switch. “If you want the most secure system in the world, unplug the server, bury it underground. Your job is done.” Lock things down too hard and developers and end users will find other ways to get work done, especially now that they have agents to help them. Shadow IT is almost always less secure than what you stopped. So whenever a control blocks self-service, make sure people know what to do next and how to get unblocked quickly. Treat high-value apps as production infrastructure Microsoft runs customer-facing apps in tenants separate from its corporate tenant. Tenant-level isolation is a useful form of segmentation, and some large organizations do the same for their production assets. But a second tenant brings its own operational overhead, and a tenant that falls into chaos can leave you worse off than before. Whatever you decide, treat your multitenant apps and high-value line-of-business apps as production infrastructure, the same way you would protect a database or a high-value Azure subscription. A good middle ground is to keep a close eye on the owners and sponsors of your high-value apps and agent identities. They are the people who can change those identities’ authentication configuration, so their accounts need good hygiene. The easier win is test, demo and staging. If they still live in your productivity or production tenant, move them out. Midnight Blizzard showed how small dominoes lead to big consequences: Microsoft’s own write-up describes a password spray against a legacy, non-production test tenant account, followed by a legacy test OAuth application that had elevated access to the corporate environment. Sponsored by Many of the app and consent problems in this episode are exactly what Maester checks for: it runs security tests against your Microsoft Entra and Microsoft 365 configuration and tells you what passed and what failed. Maester Cloud turns those results into a workflow your team can run every day: * Assign an owner to each finding and link it to a ticket, instead of tracking remediation in a spreadsheet. * See what got fixed since the last run, and record accepted risks. * Catch drift with daily history and alerts when a setting changes. * Every tenant in one place, without switching sign-ins. Subscribe with your favorite podcast player or watch on YouTube Map your surface area, then think in three dimensions Before buying a new inventory tool, use the one you already have. If your organization already tracks production assets or other identities, bring your non-human identities into that system instead of running a parallel process. Then answer three questions: how many of these do I have, what categories of identity are in the portfolio, and what are the big categories of risk? Jeff looks at risk in three dimensions: * Active threats. Priority zero. Hand them to the SOC immediately. * Posture. Surface area from misconfiguration, or configuration that was state of the art five years ago, such as the implicit flow for a single-page app. Weak credentials, insecure redirect URIs, unused identities and legacy protocols all live here. * Blast radius. How much privilege each identity has, whether it’s used or not. Most organizations end up with a huge list of high-privilege apps and posture issues. You will never get every risk to zero at that scale, so the job is to prioritise by risk and by return on effort. Burn down secrets: stop the bleeding first Say you’ve read the Solorigate reports and want to get client secrets off your non-human identities. Step one is to stop the bleeding: create an app management policy that blocks new password credentials from being added. App management policies can take an enforcement date, so only apps created after that date are affected and your hundreds of existing apps keep working while you fix them. There is no equivalent for user authentication methods. Before you switch it on, find out how disruptive it will be. One new app a month that uses a password credential is easy to absorb. A hundred a day could grind the organization to a halt. Have the guidance and the exception process ready, and move the enforcement date if you need to. Once the problem has stopped growing, turn to the debt. Split it into categories and start with the two ends of the spectrum: * The most privileged. Apps with existing passwords that have app-only access to read all mailboxes or read and write all user profiles go to the top of the list. Move them to a stronger credential and check whether they need that access at all. * The wholly unused. More on this below. The end goal is system-managed credentials, using a managed identity or workload identity federation with a federated identity credential (FIC). You can argue a certificate’s private key is harder to leak than a secret, but as Jeff says, “a bad copy-paste is a bad copy-paste.” System-managed credentials also remove a big source of toil for developers, which helps when you need people to move. Why mail is the flag Mail permissions can look less frightening than broad directory permissions, but for many attacks mail is the goal. “Mail’s often the flag that the attacker’s trying to capture.” Other access is often just a way to move laterally or elevate privilege. Mail, Teams chats and files can be the end goal, and that is what most historical consent phishing attacks went after. A mailbox is also a good lateral movement tool: it can hold credentials and bank details, and it gives an attacker what they need to craft a convincing social engineering attack against everyone the victim emails or chats with every day. Lost secrets make this worse. A secret that is valid for years, used by apps nobody can name, gives an attacker a way in without adding a new credential, so there’s no new event for you to trace. Unused identities: the highest return on effort A wholly unused identity is the highest-ROI bucket. “If you get rid of an unused identity, you might be knocking an item off of seven lists.” In one move you can remove a weak password, an insecure redirect URI, overprivileged access and some legacy protocol usage. Do your due diligence first, because some apps only run once a year at tax season. But removing something that is truly unused doesn’t disrupt anyone, and it can be done as a central action by a single team without engaging every app owner. That high-leverage central action is what Microsoft leaned into for its Secure Future Initiative work. Then look at low-usage identities. They hide in plain sight: an identity with an automated runner that wakes up every day to run a test… 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_01If you want the most secure system in the world, unplug the server, bury it underground. You're like mails off in the flag that the attacker's trying to capture and everything else they might try and get access to along the way. It's just trying to get them closer to the mailboxes.

SPEAKER_00The combo of people giving secrets that lasts for like 100 years, 200 years.

SPEAKER_01Because if you get rid of an unused identity, you might be knocking an item off of seven lists. Yes. Yes. Yes. Midnight Blizzard and certain things we saw there like small dominoes starting to fall lead to very big consequences where you just need

SPEAKER_01very small foothold and then a lot can happen from there. [music]

SPEAKER_00Hey folks, welcome to another episode of EntraChat. And today I finally got someone who I've been wanting to get on EntraChat for a long time, but Jeff leads part of the application platform team. If you worked with EntraChat, Enterprise apps, service principal, non-human identities, and now all of, you know, agent ID and things. Jeff is the person people reach out to within Microsoft and even from outside Microsoft. So Jeff, I'm super excited to have you here.

SPEAKER_00Welcome to EntraChat.

SPEAKER_01Thank you, Merill. Happy to be here. Thanks for having me on.

SPEAKER_00Nice. So, Jeff, tell us a little bit about your history in the Identity Org. You've been here like for a very long time. It'll be good to reminisce, you know, how you started and how you ended up, you know, now working on all the agentic stuff.

SPEAKER_01Yeah, so I've been at Microsoft now for about 14 years, which is wild to say it out loud. It feels wilder every year. It feels a little crazier. And I started in the support organization, but doing support for identity a lot. And then from there, I moved, so after a couple of years, two years, I moved into program management, which then became product management.

SPEAKER_01And I worked on, I started on the kind of core directory team, you know, the underlying directory service, kind of low level, and worked on some core directory stuff, as well as some sync related capabilities. So if you remember DirSync, I was the PM for Dursing for a little while, and before everything got merged into Azure AD Connect,

SPEAKER_01again at the time, lots of name changes, and then spent some time working on our programmability story. Azure AD Graph, and then Microsoft Graph. And then from there, I spent a bunch of time working on the core application and service principle model, as you mentioned, as well as the OAuth The Microsoft Permissions and Consent Model, which is probably, you know, where I spent the majority, the most consecutive years focused on.

SPEAKER_01And then as of late, I have been spending quite a bit of time on our Agent ID Identity Platform.

SPEAKER_00Wow, I thought you were mostly an app guy, but you have a long history of things before app and in the code as well. Jeff is a person everyone reaches out to when we have troubles. There are two things, right? Like sometimes it could be You see someone accidentally doing things like I know of a customer, like there are many stories of people writing some script and suddenly delete a whole bunch of apps and service principles and they are stuck with a broken tenant. And then you also have Obviously attackers who go stay hidden in the cloud.

SPEAKER_00And you've been at the forefront of helping a lot of people recover as well from this. So would love to hear from you on what other things Entra admins can do. To be better prepared to work with non-human identities and protect them. And then obviously it's better to have better practices and avoid problems before they can happen.

SPEAKER_01So I think As you said, the best medicine is prevention. And so I think as a starting point, making sure that when there are policy controls available to a given customer, you wanna make sure you go through and evaluate and make sure that you've got set up the right sets of policy controls that will prevent

SPEAKER_01Insecure config or config that isn't aligned with the risk tolerance of your organization. Because these things are not necessarily black and white. If it was as easy as not letting anything insecure into the environment, this would be a lot simpler of a problem. But there's a tension here. If you want the most secure system in the world, unplug the server, bury it underground. Your job is done, but that's very useful. So you have to balance productivity and usability and security.

SPEAKER_01So every org's sweet spot may be slightly different. There are some controls that are just no-brainers, but others you have to thread the needle. But also acknowledging the reality of the situation where if things get too difficult, end users, developers, they will find other ways to get what they want to get done done, especially if They have agents and other AI tools at their disposal to help them do

SPEAKER_01that. And so you also want to avoid creating situations where folks end up creating a bunch of shadow IT. So in addition to setting up the right controls, When you do restrict some behavior, the ability to create something, grant access to something as self-service, you want to make sure, I think it's really important to make sure the users across the organization know They don't know what to do when they run into that policy control and can't unblock themselves as self-service

SPEAKER_01so they can get unblocked more quickly. And also you have less people just at large scale that feel compelled to go do some shadow thing, which is the vast majority of the time going to be far less secure than what they were stopped from doing.

SPEAKER_00Jeff, on the defensive side, when we talk about apps, non-human identities, right? There'll be the stuff that for a corporate tenant, you create apps, people need to get to sales forces and ServiceNow and custom apps they build. That's the, I would say the majority, right? And then there are lots of Microsoft's enterprise customers and even ISVs and others who build Applications that others use and then those have,

SPEAKER_00sometimes, you know, you ask for an app permission and then you have customers consenting to that app into their tenants and that's now like a very And we know with SolariGate, that's where attackers try to get to, right? The supply chain. So if they get to like one company, they can then get into other orgs and more sensitive info there. And one of the things that, What I took away from Microsoft or Microsoft does stuff is the whole there is

SPEAKER_00a different tenant for applications and stuff that holds customer data versus the corporate tenant that you see. How have you seen this in the real world? Is that a good practice to follow or is it too much overhead for the typical log?

SPEAKER_01Yeah, good question. So I do think it is a very useful model. And I mean, it's, you know, kind of classic segmentation where, you know, you could segment in many different ways and tenant level segmentation or isolation is, I think, a quite useful tactic. I do think whether it is Dickel and Valuable will really can depend a lot on the organization.

SPEAKER_01Like I've seen this done outside Microsoft in other large organizations that are both consumers of Microsoft Cloud Services And produce lots of apps that other organizations consume and also host a lot of production infrastructure in the Microsoft Cloud and have the resources to maintain an entirely isolated tenant for all of their production assets.

SPEAKER_01And I think it is, regardless of whether you're doing tenant segmentation, it's critically important to treat Your multi-tenant apps and your high value line of business apps as production infrastructure assets, just like you would protect a database or a high value subscription. Incidents we've seen over the years that you mentioned, Solar Gate, and others have made that very clear, I think, to the industry.

SPEAKER_01But, you know, it does create extra overhead. If you don't have the resources to maintain that tenant and maintain all the process and operational overhead that comes along with it, you could create risk that you actually end up in a worse place security-wise if that tenant falls into a state of chaos. If you're doing this in the first place, that's probably less likely to happen, but you would just want to make sure that you have the right Processes and research

SPEAKER_01to maintain it and to do it right when you do it. There's probably some middle ground approaches you can use. Even just being very mindful of the lists of owners and sponsors on some of these high value identity assets in your existing tenant, I think can go a long way in making sure you have good user account hygiene on the people who have access. To modify the authentication configuration of your high value agent identities and apps.

SPEAKER_01I think it can help quite a bit and maybe be a starting point or a middle ground for orgs where having a completely isolated tenant may not make sense or may not make sense yet.

SPEAKER_00Because a lot of admins, either they've inherited, they have this whole landscape of apps and there are all these different types of apps. Some companies, the more mature ones, have a proper database of the apps and they have the critical apps and so on. But for someone who's just now going, okay, I need to Do something with my non-human identities. What's the approach you've seen of a good organization that has done a good design?

SPEAKER_01What's probably more important than the mechanics of how you tag and do your inventory and tracking is the approach. Because what I've seen work well at a lot of organizations is If the org already has some sort of inventory management system in place, either for services in general, or production assets in general, or other types of identities, whether they be human or non-human,

SPEAKER_01Bringing in your non-human identities or the subset that you don't already have some reasonable way to do inventory and tracking of tends to be, at least in my observation and opinion, one of the best things you can do, because then you're not inventing an entirely new process and system that you need to maintain in parallel to some existing inventory tracking system. And so what I would recommend to someone who's going in and trying to get a handle

SPEAKER_01on their non-human identity portfolio, inclusive of agent identities and other agent ID artifacts, as well as apps and service principles, would be to First understand the surface area that you're dealing with. Using your tool of choice to understand how many of these things do I have and what are the big categories of risks I have in this portfolio? And what are the categories of identities within the portfolio?

SPEAKER_01On the risk front, I think it's useful to think about risk across three dimensions. Do you have active threats? Yes, those should be priority zero immediately. Do you have posture issues like surface area that exists because of misconfiguration or just insecure configuration that may have been state of the art?

SPEAKER_01Five years ago, when, you know, whatever protocol was the best thing that was available for that sort of application, implicit flow for a single page app, as an example. And then Assuming you're going to hand the active threat category off to the SOC and those are going to get triaged and dealt with. What I tend to see happen in most orgs is they end up with this huge list of all of

SPEAKER_01the apps with High privilege access, whether that is unused access or actively used access that's just scary or has a large blast radius. And then a bunch of postural issues. Insecure credentials, insecure redirect URIs, unused identities, unused protocols or legacy protocols that are in use. And then I think for,

SPEAKER_01what I think is then helpful to do with that remaining, you know, which tends to be a very large set, is to figure out what are the most, the biggest risks for your org and where are your biggest opportunities to produce service area. And let's take maybe one of them as an example. Let's say you have been reading some of the reports from Slurigate

SPEAKER_01and you realize you should really be looking at credential strength for your non-human identities, your apps, your agent IDs, and you want to go and make progress on Getting rid of password credentials, client secrets on all of your non-human identities in your organization. First, I would recommend stop depleting. So go, if you haven't done it already, find the app management policy that you could use to stop new weak password credentials from being added to these identities.

SPEAKER_00And with that app management policy, I think one of the neat features that people who might not know about it is you can even set a date. You don't have this for user auth, but it's a neat feature for applications where we can say starting from a particular date, you know, don't allow that. And so it doesn't impact all the hundreds of existing apps. You're just bringing in better hygiene for The newer apps that are being added, so you stop the bleed, and then you can go and fix the old apps.

SPEAKER_00Is that right?

SPEAKER_01Yeah, absolutely. And I think that, you know, brings up a good point of even before you stop the bleeding, ideally you want to assess how disruptive would enabling that control be? And, you know, if you've got One new app showing up a month that uses a password credential, it's something you can probably absorb. If you have 100 every day, that may grind the operations of your organization to a halt.

SPEAKER_01And you have to have a plan to either be willing to absorb the disruption and make sure you have the guidance ready and the exception management process ready, which you always do. You should be thinking about in advance anyways how you're going to deal with exceptions. But you might choose to move that date on a slider depending on how disruptive it would be to start enforcing at a specific point in time.

SPEAKER_01But anyways, once you have either stopped or at least Narrowed the bleeding, if you will, and at least slowed the growth of the problem, then it makes sense to turn to the existing debt that's accrued. And there I think it's, I've seen it tend to be very helpful to chunk up that existing pool into several caps.

SPEAKER_01And I think, I tend to think of it as like starting with the two ends, Kind of of the spectrum or two categories that are kind of on the opposite ends of certain spectrums. One is the identities in that pool that represent the biggest risk. So again, using the weak password credential example, if you have a bunch of apps, existing apps with existing passwords that all have been granted App only access

SPEAKER_01to read all mailboxes and read and write all user profiles. Those should be at the top of your list to get onto a more secure credential and probably evaluate whether they really need that access.

SPEAKER_00Yeah. Why mailboxes? You mentioned it in passing, but a lot of people might miss why mailboxes are such a critical part of the permission model compared to when we say, oh, app read-write-all and others are scary ones, but the mail-read-write-all is also... Equally scary.

SPEAKER_01Mail is a very common target of a lot of attacks, and some of the other permissions that on their face may sound scarier and are maybe at an equal privilege footing to mail, some of those other permissions are really just... Even if they need to be protected with the same rigor, some of them are just means to an end. Like mails off in the flag that the attacker's trying to capture

SPEAKER_01and everything else they might try and get access to along the way, it's just trying to get them closer to the mailboxes. Not always, but for a certain class of attacks, like mail and other content can be the actual target. Whereas other access might just be what is used to move laterally, try to figure out a way to elevate presence. It's a privilege hack, but mail and, you know, teen chats, files, other content can often be the end goal. And you see this in, you know, tons of the historical consent, phishing attacks, focus on mail, as well as a lot of, you know, compromise.

SPEAKER_01And mail is also a useful lateral movement tool, even if it's not the end goal, because once you can get into a mailbox, you can often find a lot of, whether it's credentials, Unfortunately, sitting in mail, bank info, or use it to craft a really, really useful social engineering attack to the people that the victim has emails every day or chats with every day. There's a lot you can do with a mailbox.

SPEAKER_00Yeah, and like the secrets are the thing, right? Like the combo of people giving secrets that last for like 100 years, 200 years and it's used in, you don't know which apps are even using them and suddenly they have a way in To any of the tenant using those secrets and they didn't even need to add a new cred. Like I think with other permissions like AppReadWriteAll, people do make noise when they add a new secret or do something you can actually trace it back.

SPEAKER_00But like a lost secret is a lot harder one to manage.

SPEAKER_01Absolutely, which is another reason why getting away from weak credentials or explicit credentials at all, you can certainly lose You can make an argument that it's a little harder to leak the private key for an X509 cert, but at the end of the day, a bad copy paste is a bad copy paste, whether it's a small string or a big string.

SPEAKER_01That's why the goal should be system-managed credentials if and when you can get there, or when orgs can get there. But in any case, yeah, totally agree. Another good motivator to get rid of passwords and other discrete creds. So I think back to the recommended approach using the password credential burndown eradication effort, if you will.

SPEAKER_01So I think I covered one of the buckets I would recommend starting with, the highly privileged stuff. And that may be privileged access to data that's You know, usually, generally universally high privilege or it may be access to super sensitive line of business data. And so I think those are one bucket to, you know, prioritize. And then the other, I think, really useful bucket to look at early on in these efforts, in these campaigns is things that are entirely unused.

SPEAKER_01I think, you know, I think there's an element here, especially when you're dealing with some of the scale we see, both inside Microsoft and with big customers, and it's very impractical to ever You never get every possible risk in your portfolio to absolute zero. So you have to figure out how to prioritize and get good ROI out of any time and resources you spend on this. So a very high ROI bucket we've seen

SPEAKER_01is the unused bucket. And that may be... An unused instance of the thing you're trying to eradicate, so let's say an unused password credential, or even better, or even more high ROI, is a wholly unused identity. And so if you're again trying to get rid of password creds, Finding the unused creds and then the wholly unused identities that have password creds is super useful because if you get rid of an unused identity, you might be knocking an item off of seven lists.

SPEAKER_01You might have gotten rid of a weak password, insecure redirect URI, some overprivileged access, and some legacy protocol usage all in one fell swoop. And if it's truly unused, and you have to be careful there Make sure you don't disrupt something that might only get used every tax season. So you want to do your due diligence. But if you get rid of something that's truly unused, it's not disruptive to the organization. And so I've seen

SPEAKER_01Orgs take big chunks out of their surface area with very low disruption and reasonably low effort because you can also generally do this all as a sensor. Which is something we leaned into really hard inside Microsoft with the SFI work was figuring out where we could do high leverage central action where a single team removes a big chunk of risk without having to engage every other team

SPEAKER_01across the company. And yeah, you can get a lot of mileage fast out of identifying those types of buckets as well.

SPEAKER_00I know all these things that Microsoft pushes and like with SFI, like Microsoft spent a lot of time and effort, like not building new features and instead lots of teams going and fixing these things, right? But when I speak with someone outside there, you know, other burning issues and things they are more worried about than Not using AppSecrets, but what's the thing that actually triggers Enog to actually go? Because this is, it's not an easy effort, right?

SPEAKER_00It's a long tail.

SPEAKER_01Yeah. I mean, I think there's, Several motivating factors. I mean, the biggest one is some of these incidents where, again, you look at some of the major attacks that have happened over the last half a decade or so, and so many of these involve

SPEAKER_01You see it not just in the inside of Identity, you know, you see Config that was known to be not up to par with best practice that was left in place and then it was exploited. And you also see it combined with lots of novel techniques and persistent attackers, but some of this stuff is theoretically low-hanging fruit, this configuration that for whatever reason was not addressed because there was always something more pressing and more exciting maybe.

SPEAKER_01And so I think that's one angle to it is I think, like, unfortunately, that some of the best effective motivators have been the, you know, the salaried incidents of the world and things like that. But I also think, you know, there are, in some ways, moving away from these things makes It makes people's lives easier, even from a non-security perspective, while having security benefits. You're moving to system-managed credentials,

SPEAKER_01whether that's with a managed identity or you use workload identity You just don't have to deal with discrete credentials at all. You can remove a big source of toil for developers of these things. So I do think there are a couple motivators that

SPEAKER_00can help

SPEAKER_01there.

SPEAKER_00Jeff, another big area that we are seeing a lot now is to do with consent phishing or the application. What are the things that folks can really do here?

SPEAKER_01Yeah, so I think here there's a I think a relatively small set, very effective thing orgs can do to help drastically reduce the probability that they have a compromise through a consent fishing attack. So I think if you... Having a consent policy set up and we updated the defaults. There's been several revs in the defaults over the last few years. I think Aaron probably talked about that at length. So we're at the point

SPEAKER_01We have a good state on by default, but customers should go in and if you're on the default, I would recommend tuning that as needed for your org, whether that is to lock it down further than default, if that's what makes sense for you, or to just change the defaults a little bit. Such that it's again more,

SPEAKER_01like I said earlier, like every org is gonna be different and striking that balance of security and productivity is gonna differ, you know, company by company.

SPEAKER_00Yeah, with the consent policy, like with the defaults and like we, Microsoft keeps talking about secure by default. And I know because I mean, I created some new tenants recently, I saw that there were a lot more lockdown than some of the existing tenants. But for a lot of Entra admins who are, whose tenants are like five, 10 years old, They are not seeing a lot of those defaults change. And what are things that admins can do in that space to go and address,

SPEAKER_00at least make their tenant as secure as the newer tenants?

SPEAKER_01Yeah, and I would actually, I would rain, or I think there's actually multiple types of customers who could benefit from doing what I'm gonna suggest. Because when we look at the data, there's actually quite a few tenants that are far more restrictive than the defaults and have been in that state for a long period of time. And that may be a perfectly viable state, But a lot of customers that I've talked to on this subject went

SPEAKER_01to consent fully off many, many years ago when the options were very, I mean, truly at one point, you know, before there was a pretty big surge in Consent phishing attacks 2019-ish, depending on how you look at it, give or take a year. You know, the consent policies at the time were just true, false. And then we moved to the modern consent policy framework and we offered limited, but even what your options on the menu

SPEAKER_01for what limited can mean have expanded drastically over the years. So like, yeah, I would personally recommend any admin to go and just look at the latest state that policy framework. Because there's been a ton of work that's gone into adding more granular controls

SPEAKER_01in there and new primitives that let you really fine-tune the policies to match the risk profile of your org and match the types of productivity that you want that are Important for you to enable a self-service without blowing a big hole into the security posture of your org.

SPEAKER_00Can you talk through some, because I know there's a ton of work that's gone in, but it's mostly some are not even visible to others. I know there's a ton of work on the verified publisher, like you need to be now a verified I think

SPEAKER_01some of the things that might be less obvious when looking at things like consent policies that are obviously very front and center to customers. As you mentioned, we introduced the verified publisher concept many years ago, and we tie that in. That gets used in consent policies. But we also use it in some logic that,

SPEAKER_01you know, you can see this, and we talk about this in the public docs, it may just be less obvious for customers. By default, for apps registered after a certain date, if they do not have a verified publisher, they are not user-consetible across tenant boundaries unless they're only requesting We're using very basic sign in and read user profile permissions and other ultra low risk permissions.

SPEAKER_01So that capability is about much more than just the blue check mark. It's a signal that we use in a whole bunch of different places And one of the best ways to reduce those is to stop a user from even being able to grant consent if we think a request is risky. There's also a ton of work that's gone on in detecting and doing takedowns

SPEAKER_01of campaigns where malicious identities are getting used. To attack customers and otherwise abuse the system. One place that we use Verified Publisher and a bunch of other signals is risk-based step-up consent, which again, And we talk about, but the whole point of it was to be something customers didn't need to think about and configure. We introduced it as on by default in every tenant and we worked to fine tune

SPEAKER_01the underlying logic to make it as non-disruptive as possible while You can get in for as many actual attacks as possible. So again, you know, it's a documented feature, but a lot of customers don't actually know much about it because it tends to strike a pretty good balance of kicking in when it should and not disrupting when it shouldn't.

SPEAKER_00So this is where even though an app might not have like an admin permission, the step up will say, oh, you do need an admin to review this one.

SPEAKER_01Exactly, yeah. And we learned, when you look at the data and some of these attacks, and this is not, again, unique to this domain, but the click-through rate, once the end user takes the lure and ends up on the consent screen, whether they're clicking through a link in their email or get redirected from some website, You know, a fraudulent website or a compromised website

SPEAKER_01where someone's injected some malicious code, the click-through rate on the actual consent promise was, you know, very, very high for end users. And so the best approach is to just stop them from getting there in any chance that we had. So yeah, that included cases where the user would normally be able to consent, but we stopped them from doing so and say, hey, this really needs an admin because we think there's risk here.

SPEAKER_00I went through the process of verifying my own tenant and application. And yeah, it's not easy to go through it. One is it takes time and all these verification checks. And if you're an attacker, you are putting in a lot of effort, right, to do that. If you do anything malicious, you're just going to lose. You're going to burn the whole effort and time you put in and you need to start that from scratch.

SPEAKER_01Yeah, absolutely. I think there's defenses in both things that customers can put in place and things that we have done and can do as platform providers where you can cost certain attackers out and just make it not worth their time anymore. And especially for the ones, the folks that are motivated by profit.

SPEAKER_00Jeff, the next thing that I want to just get your thoughts on is, so yes, we do the step-up verification and now you need an admin to come in. Now what I've seen in the while is a lot of admins themselves are confused when they see the consent screen. Sometimes If you see a screen that has only a few permissions, that looks less scary, but it might be something like directory read all or access as user all or some,

SPEAKER_00like a few permissions, but scary ones. And then you have other apps where like I myself, I'm building a SaaS and I'm trying to go least privilege and now I am asking for lots of permissions, like 20 low privilege ones. And that looks a bit more scarier than the actual one where you're giving it away. What should admins do like when they are met with the screen? Like what's the due diligence they need to do before saying, yes, yeah, this is fine.

SPEAKER_01There's a handful of things I'd recommend. I think first is kind of the like logical sanity check of before you get into the weeds on this permission, that permission, you know, nuanced config elements. I would recommend asking you something, what is this thing? Why am I getting asked to grant access to it? Does this even make sense in context of my business? And that might not just be asking that to weed out whether something may be malicious.

SPEAKER_01You may know it's legitimate, but I do think you have In some cases, apps or other non-human identities, agents that may be asking for access that just might not provide a lot of business value. And understanding what this thing is aiming to enable and why you're being asked to get access to it in the first place just tends to be context

SPEAKER_01that you will use throughout the rest of the process. So I think it's useful to understand it up front. And in the event that it is actually an attack, that can also be helpful to weed out these attacks. Because in many cases, in some cases, they're very well crafted. In other cases, the attacks will just be very illogical if you take a second to think about. I wasn't actually in the process of trying to redeem an Uber gift card.

SPEAKER_01So then after you get back past the sanity check, there's some basics confirming if it's from outside the org, making sure it has a verified publisher. It's from inside the org, understanding who's building this. Do I trust this individual to... You know, have a well-maintained identity which can, you know, determine how much additional vetting may or may not make sense. Going back to, you know,

SPEAKER_01the beginning of your question, I think, you know, going through and understanding the permissions that are being requested and not assuming that a longer list is Worse, because you can have, you know, again, like directory.readwrite.all, which could, you know, be broken down into probably 15 or 20 individual permissions.

SPEAKER_01But, you know, so you could have a case where 15 is the same from app one as the same as one from app two. But then, you know, understanding what is being requested and why it's being requested,

SPEAKER_02I think, is really the important context.

SPEAKER_01Again, like, things that either just aren't necessary to enable the functionality of the agent or the app at all, where the business value you're getting out of it doesn't justify the risk. And I think that's the, in some cases, the like... The harder conversation to have, but I think it's the important one because you can create a whole bunch of surface area and increase the blast radius of an attack if you have

SPEAKER_01You know, access that is not business critical. And, you know, you look at attacks like Midnight Blizzard and, you know, there in certain things we saw there, like small dominoes starting to fall lead to very big consequences where you just need, you know, some of these, you know, just need a very small foothold and then a lot can happen from there.

SPEAKER_00Yeah, like that one Midnight Blizzard and others, it was like a demo tenant, right? Like you could have done everything in your main tenant, but then you have some demo tenant with some random app that was given permissions like 10, 15 years ago and like no one knew about it.

SPEAKER_01Yeah, and I think going back to the tenant segmentation thing, I would also recommend, this is far easier, I think, than segmenting out all your production infra. Like if you're not doing it already, segment out test and demo and staging, If you can get that out of your productivity and maybe your joint productivity and production infrastructure tenant, that tends to be somewhat lower hanging fruit. I know it's not a one click, but it can be pretty effective.

SPEAKER_01And then the other thing I would recommend when going through your existing portfolio and trying to de-risk some of these categories, I would also recommend, in addition to completely unused, I've seen a lot of Big opportunity for surface area reduction, kind of hiding in plain sight in low usage categories. Occasionally you might have, as an example, some identity with an automated runner that wakes up and runs

SPEAKER_01an automated test suite And it's been doing that for years and it doesn't get snagged in your unused identity bucket, but it's in, you know, maybe it doesn't have high enough privilege access to show up in your screaming red, I need to de-privilege, de-risk these people. Now, but those in some cases you could, you know, take pretty nice, you know, chunks, bites out of the risk pie. If you decommission a bunch of things that no human or agent is actually using

SPEAKER_01until you look a little more closely and you see the same two token requests every day for three months from some, you know, test suite.

SPEAKER_00And I love all those different reports that we now have in Entra recommendations and with apps like unused apps, unused permissions, like you already are surfacing these things. Jeff, closing thoughts? What would you recommend Entra admins are listening to this? They're like, okay, I need to get my non-human identities, you know, like mow the lawn, clean up the weed and so on. What are like three, four, five things you would ask people to go and do in Entra?

SPEAKER_01Yeah, great question. I think, first of all, we should put maybe some links in the show notes because we do have quite a bit of guidance that will walk folks through some of the Recommended approaches here. And I think what I would recommend probably may vary quite a bit depending whether folks have certain SKUs or not. So like there's a bunch of really useful capabilities in Defender,

SPEAKER_01but not every customer might have that. So I would say like kind of meta would be like, understand the Capabilities that you do have access to in your environment, and then start with, on the policy side, figuring out where you can stop the And figure out if you can, especially in cases where you can do that without disrupting existing productivity,

SPEAKER_01you know, go with that right away. For things that will take some time to enable because they would be too disruptive, get those in your plan. And then either in parallel or after that, you know, use some of the tools you have available either in Entra recommendations, some of the capabilities that I mentioned in Defender that we can link out to in identity protection, identity governance to start,

SPEAKER_01you know, Working through some of the existing categories of debt with a focus on both the highest risk debt and then the highest ROI debt where you can kind of, especially areas where you can raise all boats or de-risk all buckets with a small set of central actions.

SPEAKER_00Nice, nice, awesome. Jip, was there anything else before we close off?

SPEAKER_01I think the only thing I would add is since you asked about specific capabilities, I'll name a few more and I'll try and stick to things that should be available either skew agnostic just to make sure they're as broadly applicable as possible. So if you're not familiar with them already, consent policies, app management policies, there's some skew requirements for some of the Entra recommendations, but that's also, there's pretty broadly applicable. So those are three really good places to start.

SPEAKER_01And then, like I said, we could, you know, link off to some more stuff that might vary depending on what.

SPEAKER_00Nice. Perfect. Awesome. Thanks so much, Jeff. I know we could spend days talking about non-human. We didn't even go a lot into the agent ID and all the other exciting stuff.

SPEAKER_01I will add one more thing. If you don't mind, I will say, you know, a lot of the historical examples that we have learned from here and that, you know, we might have talked about today may apply to or may have used examples that are for abstractions. And I'm not talking about service principles, but the sorts of surface area risks we're talking about here, like some of them, you know, we built protections into the core agent ID model to minimize or eliminate entirely.

SPEAKER_01We wouldn't have a reasonable model that allowed you to say get started in development if we didn't add the ability to do some of these things that are fine if you are truly in development, but risky if you're in development. The agent has reached production. So some of these concepts and privilege reduction, things like that will apply equally to agents as they do for app and service principles. So I'd also recommend folks get out in front of it with your agent portfolio

SPEAKER_01and try and address your whole non-human identity fleet if you can. But being proactive here, they can pay dividends.

SPEAKER_00Awesome. Thanks so much, Jeff. And I'm looking forward to having you on soon. Likewise. Thank you.

SPEAKER_01Thanks for having me.

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. Stolen Tokens, Agents and Universal CAE: What Global Secure Access Adds to Entra ID

    Oct 9, 202650 minAudio

    A phished and stolen refresh token is one of the most useful things an attacker can take from your tenant. It is a long-term artifact, which is why so many phishing attempts go after it. Alex Pavlovsky’s answer to that...

    Credit the people on this episode