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

Inside Microsoft’s Entra Tenant: The Internal App Governance Playbook

Dec 6, 202553 minAudioEpisode 39
ShareXLinkedInFacebookWhatsAppEmail

Khurram, a key member of the internal App Governance assessment team at Microsoft, joins the show to pull back the curtain on how Microsoft manages application security at a massive corporate scale and the rigorous internal security measures Microsoft employs to protect its corporate Entra ID tenant from risky applications. In this deep dive, Khurram reveals Microsoft’s custom-built App Governance blueprint. He details the process for reviewing and consenting to the hundreds of new application requests the organization receives monthly. Key Takeaways * Permission Risk Rating: Learn how Microsoft’s team assesses and assigns a severity rating - Low, Moderate, Important, or Critical - to permissions. This rating is based on the permission’s capability, whether it’s delegated or application, and its potential for PII exposure (e.g., Application permission or a .all scope will score higher). * The Weighting Model: Discover how the Microsoft app assessment team has proactively risk-rated between 3,000 and 3,500 permissions. This approach dictates when an app is automatically approved (for low-risk requests like User. Read) versus when it is flagged for manual, scenario-based review. * Holistic Risk Review: Khurram explains how the app’s overall risk is calculated beyond just permissions. This includes mandatory security controls like banning high-risk reply URLs (e.g., azurewebsites.net and aka.ms), enforcing the use of certificates over secrets, and requiring multiple owners. * Multi-Team Veto Power: Understand the critical approval workflow where requests for higher-risk permissions are routed to specific organizational data owners (like the DLP, Identity, or Exchange teams). All teams must approve the request as a whole, giving each team a critical veto power over access to their services. Subscribe with your favorite podcast player or watch on YouTube 👇 About Khurram Chaudhary Khurram is a Principal Security Assurance Eng on the internal assessment team at Microsoft. He specializes in App Governance and was instrumental in developing the systems and risk-rating methodologies used to manage thousands of application requests within Microsoft’s corporate tenant. 🔗 Related Links * Entra Application Management - https://learn.microsoft.com/en-us/entra/identity/enterprise-apps Sponsored by: Shadow IT and SaaS sprawl are outpacing IT teams It can feel impossible to tackle these app governance challenges:📦 Entra ID isn’t secure by default💥 SaaS adoption & sprawl isn’t slowing down⌨️ Citizen Development keeps rising (hello, Copilot Studio!)🗑️ Vendors often don’t remove apps after uninstall🔃 Offboarding is inconsistent or doesn’t happen at all🥔 App governance is passed around like a hot potato ENow AppGov Score shines a light on lurking risks, providing a free App Governance Benchmark Report for your Entra tenant. Reclaim control and protect against breach & disruptions. Free upgrade to Standard Tier for 7 days once you get your score. Secure & Govern Entra Apps Now 📗 Chapters 01:21 The Shift to Admin Consent 03:38 Factors for Reviewing App Risk 06:35 How We Rate Permission Severity 09:25 Automating Low-Risk Approvals 14:17 The Internal Review Workflow 21:40 The App Governance Scoring System 29:01 The Localhost Redirect Debate 39:35 Handling Stale Apps and Permissions 49:34 Advice for Identity Admins Podcast Apps 🎙️ Entra. Chat → https://entra.chat 🎧 Apple Podcast → https://entra.chat/apple 📺 YouTube → https://entra.chat/youtube 📺 Spotify → https://entra.chat/spotify 🎧 Overcast → https://entra.chat/overcast 🎧 Pocketcast → https://entra.chat/pocketcast 🎧 Others → https://entra.chat/rss Merill’s socials 📺 YouTube → youtube.com/@merillx 👔 LinkedIn → linkedin.com/in/merill 🐤 Twitter → twitter.com/merill 🕺 TikTok → tiktok.com/@merillf 🦋 Bluesky → bsky.app/profile/merill.net 🐘 Mastodon → infosec.exchange/@merill 🧵 Threads → threads.net/@merillf 🤖 GitHub → github.com/merill Get full access to Entra. News - Your weekly dose of Microsoft Entra at entra.news/subscribe

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Transcript

From the show. Tap a time to play from there.

SPEAKER_01Intro chat with Merrill's life.

SPEAKER_00Dig in deep where techs drive. From the latest hacks to cool updates. Join the ride, don't be late. What are the different factors you look at and so on.

SPEAKER_00He is very, very knowledgeable in this area and has some really great ideas that I think is relevant to any intra-admin and even cybersecurity folks who look at all these things from an app lifecycle governance permission model perspective. Kuram, welcome to EntraChat. Thanks for having me. Cool. Awesome. So tell us what's your typical sort of day, Kuram, and how you got started in this role?

SPEAKER_01So, I mean, I've been at Microsoft a while, but specifically around app governance, we got to a point where they decided pretty much overnight that they were going to shut off user consent in the tenant and go to admin consent. And I was on the... So that was the decision made by the identity team for our tenant. And I'm on the assessment team. And the identity team specifically said, we don't want to just... We don't want to have to admin consent any apps unless the apps have actually been through some kind of a review by the assessment team.

SPEAKER_01And so at the time, we didn't know what the scale of this would be like. And my manager said, hey, you know what? Why don't you work on this with so-and-so? And so the two of us started working on it. And then we started to realize what the corporate tenant for Microsoft was. what the scale is. Pretty much anyone in the company can create an app registration in the corp tenant. And so, you know, at this point, we're doing hundreds of requests a month. And so we had to develop a system that would help us be able to

conduct a review

SPEAKER_01and then at some point give consent if everything's been approved.

SPEAKER_00Awesome. Yeah, the scale is very different as Microsoft relatively, I would say, because there are lots of people who are creating apps and working on building things in the app space. It might not be as high in other organizations, but I think it's still relevant and it would be high in like very large organizations like multinational organizations as well. Cool. Awesome. So tell us how you look at it when you do get an app, right?

SPEAKER_00There is so much to consider when you get an app. Most people look at just the app permissions and we look at what scope is being asked and then make a decision based on that. But you'd go a lot for a lot more and you think a lot more about the app as a whole. And when I spoke with you, that was what really sort of made it very interesting for me that you are not just looking at, is it asking user.read or director.read, like those permissions, but you drill a lot more into the overall health of the app.

So tell us like how, what are the factors you consider when you're looking at reviewing an app?

SPEAKER_01So we look at several factors. One is, the big one is the permission itself. And what we do as an exercise is we will take a look at permissions as they get submitted into the system, and we will give a severity rating on each of those permissions. And the rating, it varies from low risk up to critical. And we have low risk obviously being the lowest, critical being this is something that we should really look closely at. And it goes low, moderate, important, critical.

That's kind of the primary thing that we look at when it comes to the risk of the app itself. But we also consider the higher the risk, the more security controls we want to have in place. So, you know, for example, we won't allow if it's higher risk, like important or critical, We won't allow you to have azurewebsites.net as your reply URL because you have a

SPEAKER_01risk of the whole dangling URL risk. So we will say you have to go, there's an internal site. You can register any subdomain or site under Microsoft.com or Office 365 or any of the various domains we have. And you have to pick one of those and move away from the azurewebsites.net. We won't allow aka.ms as well because it's a redirect. Yeah. So you have to have a hard coded. And we're getting to the point where we might even start

pushing that requirement

SPEAKER_01down to the lower risk apps as well. We haven't gotten there yet just because it's hard enough to convince people that they have to do it for the higher risk. But we're working on going down to the lower risk as well. Some of the other things are, you know, things like governance related. You have to have at least like two owners on an app registration, things like that, just so that if we have an issue, we need to be able to contact somebody. We also have, we're starting to look at things like using, if you're using secrets, we're going to ask that you start using a certificate instead of using secrets on

SPEAKER_01your app registration. So we're starting to add some more and more security controls. We also, I don't know if you want me to start talking about this now or not, but I can start talking a little bit about some of the other metrics.

SPEAKER_00Yeah, before we jump into that, right? So looking at the permission itself, you said you have this low, moderate, medium, and critical, like, you know, the different levels of risk ratings. How do you decide what level it falls under? Because that's the thing that a lot of people struggle with. to know, you know, what permission falls under what. And you also have the difference of delegate and application permissions. So do you, what's your workflow or what's your, the logic for deciding that risk?

SPEAKER_00And how do you keep on top of, like Microsoft is always adding new permission scopes every month.

SPEAKER_01I joke because I know how many we add every month. It's about a hundred a month, I think, that we see come through. Great. So the way we do it, we tend to look at it from a, what's the capability of this permission? And we've been, for a long time, we did this manually. We're starting to develop it more to become more an automated system. But we'll look and say, you know, is this the type of permission that can affect all users? So let's say an application permission. So application permissions,

SPEAKER_01typically we will rate a little higher than the delegated equivalent, just because normally delegated permissions are less risky than application. And then we look at the permission. If it's a dot all, we will give it a higher severity rating because it probably affects all users in the tenant. So something like user.read versus user.read.all. User.read, we classify as a low risk. User.read.all, I think, is moderate for delegated. And so we look at factors like that.

SPEAKER_01You know, what is the risk? Is there like being able to read someone's email? There's some potential PII exposure. So that should be a higher risk than if like, for example, sending email, there's no real PII involved. You're just actually writing to the system. So we start to look at the permission itself and what's the capability to decide what the risk factor should be.

SPEAKER_00Nice. Right. And you have an internal list, right, of all the permissions and the rating that goes with those permissions.

SPEAKER_01Yeah. Yeah. So I think to date we have risk rated, it's between 3,000 and 3,500 permissions. I'd say half of that is graph. And then we have things like Power BI, Azure DevOps, and some other stuff.

SPEAKER_00Yeah. Right. Yeah. So, yeah, it's not just graph, right? It's all of the different services and the permission scopes that they bring.

SPEAKER_01Interestingly, I know there's a lot of first-party APIs. We haven't risk-rated all of them. just because they're obscure and we've said, let's try to tackle the most common ones. And so the way we've done it is we have two processes. One process will... check nightly new permissions against like graph or power bi and if there's anything it will send us an email the next thing you need to risk rate these and that's more it allows us to be proactive the other approach is

when someone submits a request to our system the system checks to see if it's been risk rated and if it has not it'll let us know there's a new permission and you have to risk rate this

SPEAKER_00cool okay so um that gives like a Do you automate it if it's a low permission when someone submits a request for an app? Do you sort of automate granting the permission of that app when it meets the criteria for being a lower risk?

SPEAKER_01Yeah. So for low risk permissions, you have basically, if the only permission you're requesting is low risk, the system considers those to be auto approvals. We only have, I think, two or three permissions that are low risk. User.read being one of them. I think email and open ID, fairly low risk. Anything above low risk will require a review, but we're also... We're also looking at scenario-based moderate approvals. So, for example, if we look at like mail.senddelegated and we consider that to

be a moderate risk

SPEAKER_01permission and the app is an internal app, it meets all our governance requirements like privacy assessments, et cetera. If it meets all those checklist marks and we look at it and say, okay, this is overall, all of these pieces of information, if they're there, then we will allow it to be auto-approved, assuming it's only asking for these sets of permissions. And so we would look at the most common scenarios and try to develop that into a scenario-based approval so that we can get people off of having

to do those reviews

SPEAKER_01and just stay focused on the higher risk stuff.

SPEAKER_00Awesome. Yeah. And I've been a customer of the tool. So just for context for those listening in, this is an internal in-house built tool, right? That you and your team have built. And yeah, I've been a consumer where I've added an app and I needed to give it some permissions. So I've had to go to the tool and fill in my request, telling, you know, what I needed. And there's been, I've seen that process go through sort of the approval flow. And it does a lot more, the whole app governance and things where like,

you know, every year, I need to do a renewal and there are things like credentials and other things that

SPEAKER_00you scan for in the app. Maybe we'll come to that later, but yeah, just for context for others, there is sort of a system that's used to do the governance. It's not An out-of-the-box feature or an intro feature, it's custom-built by Chrome and his team. Yeah, in the outside space, there are lots of third-party tools that do sort of a similar thing like E-Now. They have app governance and others that fit in this space. Cool. Awesome. So you maintain a list and your team reviews it.

SPEAKER_00Like, do you have like a set meeting? I'm just thinking of like, you know, the specifics of how if another organization wants to do this process, do you have like a monthly meeting where you sit and review through it? Or is it like an offline thing where someone reviews the new permissions that are coming through and then assigns the risk?

SPEAKER_01It's an offline process right now. What we do is we have one or two people do the initial review or the risk rating of the permission. And once we've done that, we will send an email to a bunch of other people in the security org and say, here's the latest 80 permissions. We've come up with a first pass on what we think the rating should be. I would say most of the time people agree. There's been changes. There's been people who said, I think it should be a little higher. So we'll make adjustments. And then once we do, then we upload it to the system with the newest ratings.

SPEAKER_00Nice, nice. And when you send that review, like I'm sure someone writes something to like list out like the APIs that permission has access to or like how is there like a blurb that says is the permission and like a description?

SPEAKER_01Yeah. Yeah. We typically take the, you know, provide the API, the permission itself, the description that's provided from Azure and send it out. We do get questions where people will say, you need to get a little more information about this. Normally for graph permissions, we don't get a lot of questions. They're well documented. But some of the other obscure first-party APIs, not necessarily. And so we'll have to do some investigation on our own to get in touch with somebody to say, hey, can you give us a little more background on this permission? Because as you know, sometimes the API name is obscure.

SPEAKER_00Yeah, yeah. You don't really know what it's doing. And yeah, if the docs are not really clear, they're not very helpful. That's right. Cool. Awesome. Yeah. So I'm very interested in all these operational activities because I think a lot of organizations struggle with that. And most of the time they are not staffed well enough. And these are important roles going forward, especially with, you know, the whole agent explosion that's going to be hitting everyone as well. So they need to be ready for those.

SPEAKER_00Cool. Awesome. So that covers how you review it for just the permission and the scope factor for the permissions and the risks. What are the other factors that you consider when someone submits a request for an app?

SPEAKER_01So the system, by default, you'll submit a request. It will ask you for any prerequisites, any of our internal sort of government's documentation. It will say, you need to provide all this information. And once they hit the submit button, the system will take a look and say, okay, they're requesting these five permissions. Who needs to review these permissions? So just like, I mean, this may not necessarily apply to small or medium-sized businesses, but for large enterprises, you have data owners around the company,

SPEAKER_01right? Like we're responsible for a certain set of, like, for example, APIs. We have the identity team. They're going to be responsible for anything that's tenant-related, you know, directly redirect all. Yeah, like conditional access and like the intra-related things. Yeah, yeah. We have a DLP team. They want to be looped in for BitLocker-related permissions. Right. And then Exchange. Exchange, we've got a dedicated team to M365 subscription.

SPEAKER_01So anything related to M365 goes to that team.

SPEAKER_00Okay, so if it's like a Teams-related permission, like someone wants Teams chat or someone wants Exchange, you know, reading policies or sending email... then those go to that particular team. So one request when it comes in, if they need exchange and then they also need to update something in, say, Power BI. And so if there are multiple permissions, then your workflow is to send it to the different teams that own those permission scopes and they need to review and approve.

SPEAKER_01So when we do the risk rating exercise to determine the severity rating, we also will assign a review team. Who's the team that needs to review this specific permission? And so when the submission comes in, let's assume for a second there's three teams that have to review five different permissions. Each team will get notified and each team will go into the system and say, you know, they'll look at the information. They can ask questions to the customer. Why do you need this? Why can't you use the delegated version? Things like that. And if they're satisfied with whatever they see, they'll just approve.

SPEAKER_01So when we do the consent grants, we do them as a whole. So we don't do any sort of partial approvals. So anybody who does a review, everybody has to approve for it to get to the end and then get a final approval and then consent is granted. If anyone says reject or cancel, then the entire ticket is canceled and the customer is given the reason. And a lot of times what customers will do is they'll just remove that one permission that the team did not approve and try to get the other permissions approved and then work with the team to address the concerns

that they may have.

SPEAKER_01Right. And through the tooling level of how it works, right?

SPEAKER_00Yeah. So you try to make it as automated as possible, but sometimes they need to have a discussion with the data owners of that service that they're trying to get permission to, to maybe even justify, et cetera, for the app, right? And if it's rejected, then they just need to start the whole process with the correct set of permissions. Yeah. The biggest challenge for us has always been not necessarily engaging with data owners.

SPEAKER_01I mean, they... They'll have the context of whether this particular app, this particular team need that access. What we've tried to automate is everything else around it. Any applying of security controls, the system will tell you at the end, okay, we're ready to give you consent, but you don't have some of these controls in place. So we're going to give you 30 days to do so. And then when you do, come back to the system and hit refresh and we'll check again. And then you can move forward once your consent's granted. So the consent piece of it is pretty automatic once everyone

has done their part.

SPEAKER_01Nice.

SPEAKER_00Cool. Awesome. So the first one is the data owners and their approval step. Is that usually the first step before you check anything else? I mean, obviously the risk ratings.

SPEAKER_01There's some pre-checks before you submit. It'll say things like, for example, and there are a lot of like governance related. So if you don't have two owners listed as on your app registration, it will flag you right in the beginning and say, you need to fix this first before you can submit. Yeah. The things that we will ask them to address ahead of time are pretty easy normally. And then we try to make sure that they have all the prerequisites because without some of the other governance documentation,

SPEAKER_01they're not going to get approval. So there's no point in submitting if you haven't finished those documents. But ultimately, you're essentially submitting a ticket, asking people to approve it. And then at the end, when everyone's approved, the system, we interface with the identity team system. And the identity team gets a request and their system will grant consent. So the time from the final approval to the consent being granted is less than one or two minutes. Nice, nice.

SPEAKER_00Pretty instantaneous, yeah. Right. And I want to just set some context for the listeners as well. So Microsoft has an internal sort of an asset management system. We have like an internal name for it that has, you know, every app that's registered and like, you know, lots of metadata around it. But your tool is outside of that because it's just concerned only about the intraspecific sort of things, like the permissions and all of that. So I don't want people to assume that this is the only system

that we have. There's another system that has a lot more information about the application and how it links to the organization and what happens if there's an issue that comes

SPEAKER_00with that app. who should be contacted, like those all in the other sort of asset management system that they need to have. That's right. Cool.

SPEAKER_01Yeah, I don't think, I mean, the only reason I don't go into details, it's going to be very specific to Microsoft.

SPEAKER_00Exactly, yeah.

SPEAKER_01But I think other companies have something similar.

SPEAKER_00They have like either ServiceNow or BMC Remedy, like the large enterprises have these other systems. That's like an app catalog and infrastructure catalog. Like it has all of that in there, but they don't, they're not rich enough to store what the things that we are talking about from an app governance in Entra. They don't have, you know, these concepts of like permissions and scopes and other things will come to like the reply URLs and stuff.

SPEAKER_00Cool. Right. So what I really like is you have written an awesome white paper that you thought out really well about not just permission scope, you know, weighting different factors about the app and, you know, how Microsoft, like how your organization is going to review things more holistically and, you know, things that you've already implemented. Can you walk us through like the idea that you have and sort of the weighting

SPEAKER_00system that you come up as well? Because not all things carry equal weight, right? When you're looking at Owners, permissions, reply URLs, and there's a lot more in there. So very fascinated about that and would love to have you share how you came up with it.

SPEAKER_01Sure, sure. So, I mean, like I said, we so today we we essentially evaluate the risk based on the permission rating and we apply security controls based on on the risk. One of the things we do pretty inherently anyway, but it's not as transparent in the system and the customer gets made aware, but it's not easy for them to know if they're not a security person or someone in nature. They're not going to understand some of the stuff that we're talking about. So one of the things that I started to think more and more of was,

SPEAKER_01well, let's say we have an app that I develop and I'm looking for a permission that's moderate risk. And then, you know, there's a third party that has the exact same permission. And it's also the moderate risk. But inherently, if we're looking just at the permission, it looks like they're the same. But inherently, the third party probably has a little bit of a higher risk than my app. And then as an analyst, like myself or anyone on the team, they know because the system will flag it as a third party,

but it doesn't actually call it out as a risk factor the way we have the permission

SPEAKER_01severity rating. And so I said, well, what we should be doing is we should introduce additional risk factors and So I said, well, what if we had something like an application origin risk factor? Sorry, go ahead.

SPEAKER_00Right. Yeah. Just to expand on that, like I like to use like real examples, right? So if it's a line of business application, let's say the company is Contoso. One of Contoso's employees is building the app and they need a mail.send permission. And you have a third party app that you're getting from some service that you're procuring and they also want mail.send. What you're saying is, even though they're asking for mail.send, the permission, the risk factor is different.

SPEAKER_00From an employee, you know, who has a lot more to lose if they do something wrong versus another application vendor that you get the software from because you don't know what are the controls they have in place on their end to protect, for example, the app secrets and other things, right? Like, whereas here you have this whole governance in place. You don't really know if all of this is being done in that other tenant where that is coming from. Exactly.

SPEAKER_01Yeah. In the end, it boils down to, is our data safe with this vendor or not? Like if they're doing any kind of read operations and it's a SaaS product, is our data going to be safe with them? And what are we allowing them to do with this data? So I said, you know, so we started out with the one permission severity rating. And then we also had like application and delegated and things like that. But I said, what we should be doing is introducing application-related risk factors and

SPEAKER_01permission-related risk factors. And I said, okay, well, like application origin is a good example. If let's say I developed the app and it's in the corporate tenant, that risk factor would be scored a zero because I'm local. But if it's a third party, then we would score it, for example, one, right? And I think, you know, you can have a lot of in between that. You know, you can say there are some tenants that we don't absolutely

trust at all.

SPEAKER_01So we're going to score it a lot higher. We'll call it a 10 in those situations. So I started out with one or two of those. And then I started thinking more and more along those lines and started coming out with more and more risk factors. So one of them was like, if you look at permissions, You know, again, what's the breadth of the permission? Is it just like a self permission where it's like user.read, it only allows it to read one bit of information about me? Or is it a .all where you could potentially read about

everybody's information?

SPEAKER_01So if it's like that, again, the risk factor would go up. I think at some point I got to about 30 of these. And it was so well received, like even people on my team were saying, hey, we want to introduce another layer, like service related risk factors. So just like you were talking about the service catalog. Yeah. They wanted to introduce like governance related risk factors at the service level. And I said, yeah, that's entirely possible. I mean, I tried to create a flexible framework in doing that. And so, you know, things like data sensitivity,

exfiltration risk, things like that.

SPEAKER_01A lot of these things, we have to help determine what the risk factor is. There's not a lot of easy places for us to download and say, oh, like this will have PII and this permission will not allow PII. So we have to kind of determine some of that. But the good thing is that once we've developed it, it actually allows the tool to now risk rate automatically for us. Instead of us having to sit down and do the exercise, we can have the tool do the risk rating and then send it afterwards to us and say,

SPEAKER_01here's the initial pass on the risk ratings. Do you agree or don't agree? And then if we do, then we just let the system upload them. I do want to list out some of these risk factors because they are very fascinating.

SPEAKER_00And I think that's like that itself is the meat of what you've done. And you have a different scoring range, right? Like a weight that it carries. And then you use that to calculate sort of the final score. risk for the application. Some of them are very explanatory, like application origin. I have this list in front of me, so I'm looking at it. So app origin is, you know, whether it's what we spoke about, whether it's in-house or whether it's a third party or whether it's a trusted partner, because there are different levels of the applications and large companies,

they might have the apps in another tenant.

SPEAKER_00So you look at that tenant scope. I think that's explanatory. What is like tandem permission? Is it just the type of permission? So tandem permission, I came up with this one talking to one of the other partner teams.

SPEAKER_01They don't like the use of the offline permission. It's only offline access because it allows for refresh tokens for up to 90 days. And so it by itself is not a big deal, but it in combination with, let's say, mail.read becomes problematic. And so I said, well, how about we just have like tandem permission where two permissions together could be a higher risk than if they're granted individually on different apps. Again, the scope might be very limited, and this is my initial proposal. So this might apply to a handful.

SPEAKER_01We haven't gotten to the point where I've gotten any pushback on it. Actually, a lot of people think it's a good idea. Nice. That's where that falls.

SPEAKER_00And app age is like how old the app is. So newer apps are lower risk versus ones that have been in the tenant? Is that what you're looking at?

SPEAKER_01So newer apps are higher risk and it's only... So, and the reason is, and so this is one of those ones where we score it, but we don't necessarily use it in our risk evaluation very much. It's more of a data point to give us an indication. So the younger the app, the less likely it's gone through any of the governance processes. And so it's not a reason to not allow, but it is a reason to be a little skeptical if it's very good.

SPEAKER_00Nice. Yeah. And then redirect URI type and the URI domain. So the domain is clear. When you say type, it's like whether it's HTTP versus I think for desktop apps, they have the app type redirect. Is that what you look at?

SPEAKER_01Yeah. So you'll have things like, for example, if you're using like aka.ms. So that would be like a wildcard URI. That would be higher risk. Then let's say a loopback. Loopback, you know, you're doing local testing. This comes up a lot, and I'm sure some of you are.

SPEAKER_00Yeah, I wanted to bring it up as well. It's come up a lot. Like, is local host, should I add it in a production system or not? And there is sort of a nuanced discussion there. You can't just completely block it.

SPEAKER_01Yeah, so we get a lot of that because a lot of times the developers are insistent that it's strictly for testing purposes for their production system. And so the challenge for us is, do we allow some of these test systems or test apps in the production environment? We took the approach essentially of saying, if it's in the corporate tenant, you have to secure the test versions of your app to the same degree as you would for production. So we're not going to allow you to have less secure code or,

SPEAKER_01sorry, less secure configurations just because it's a test app. It has to be secured to the same degree. So in that case, since we allow it, we said, okay, we'll allow the loop back when we won't score it very high on the risk because it's part of their testing process, so not a big deal.

SPEAKER_00Yeah. Yeah. And there are certain types of apps, like if they're console applications, there's no other option. Like if they are a multi-platform console app, they use HTTP local host because they need to get the token. Like PowerShell is a good example, Graph PowerShell. It uses the local loopback to do the sign. So if you block that, it'll break it on like macOS and like various operating systems. It won't work anymore. Yeah. So that's why you can't just use a blanket no.

SPEAKER_00There are all these apps that do require them. And yeah, publisher verified is an easy one. When you say user assignment and guest use access, you look at whether that will be exposed to guests or not. And that affects the risk rating for the application. Yeah.

SPEAKER_01That's another one that, I mean, again, we have it as a data point. And our goal is that we have complete transparency with the customer, right? To say, here's the risk rating on all the risk factors for your permissions. And here's the risk factors for your application. And overall, the risk for your app is, let's say, important. But it gives the customer an idea like, oh, well, if I drive some of these down on my own, then the risk will go down and I have to do less work in the future.

Because one of the things that we've started to do is where if your risk rating is

SPEAKER_01critical, you have to go through a re-review once a year. And so if you want to avoid that, just drive down your own risk so we make it transparent to the customer. And then if your risk is lower, you don't have to come back for a re-review every year. Nice.

SPEAKER_00The OAuth things are interesting. So you rate the client type and the OAuth flow risk. How do you rate client type? Is it like the public client and confidential clients?

SPEAKER_01Yeah. So confidential client with a certificate, we would say is the most secure. Public client, you know, public client, this is where we get into that whole discussion where if consent is even required or not. We've had many internal discussions on this. Yeah, because you can't store any credentials on a public client. I wouldn't say it's any more riskier, but it's a different type of client. And it's also the challenge we get here. And we're trying to work out how we deal with this. is that you as a customer can go between public client and

confidential client.

SPEAKER_01Like you can make those changes and we're not necessarily aware. So if we apply a certain policy because you're a public, sorry, if you're a confidential client and you decide to change to public client, we need to apply a different set of policies that, again, work in progress right now on that. There's so many little nuances to this entire scope that it becomes challenging when you go through every little rabbit hole.

SPEAKER_00Yeah, right. And the OAuth flows, like implicit flow and like each one, you have various types. And I've seen a lot of apps and admins struggle with even getting the app working by like configuring, like switching these between different settings. The documentation is not clear on that side. Just getting it working is a struggle for a lot of them. And then like if you say, no, you can't use this implicit flow, then it does take time for them to get it all working.

SPEAKER_00But I guess that's the whole thing we are having, right? These are important things to consider when you are reviewing the application. Yeah. Go ahead.

SPEAKER_01No, I was just going to say, I see a lot of these as, like, you know, when I drafted the proposal, I put them out as ideas. And I know, like, as we start to implement these, it's probably going to be deep discussions on, some are going to be very easy, app age, straightforward. But, you know, whether it's a delegated or application permission, that's a straightforward discussion. But when we start to get into some of these, it's going to be, how can we enforce it? How do, what do we, like being able to check things is easy,

but how do we enforce it?

SPEAKER_01The action taken if people violate the policy. So I think it's going to take us a little bit of time to implement all these controls, but, or these risk factors. But I think it will be a great exercise because it gives you a lot more information once you have them in place.

SPEAKER_00Exactly. And technology also changes, right? Like we didn't have Pixie until recently. So if you have lots of old apps, they're actually higher risk because they are not using Pixie. But how do you make sure you move them on, right? Because most of the time with attackers, what happens is those older apps are what they target because they know they have those weaker... configuration and if an org is not really looking at all the apps they've already onboarded and doing that review it could have passed last year

in your review but now you have higher standards you moved on like how do you make it address it and then you need the app devs and others to add that into their workflow as well it's not like they don't want to do it they just need to know that they need to have it

SPEAKER_00in their pipeline to address as a fix, you know, over the next three, six months or two years to move off to that. Cool.

SPEAKER_01So that's an interesting one. A great example of that is we recently rolled out exchange RSC permissions. And so we had to go back all the customers that had exchange application permissions from before and have them migrate over. And so we started to rescore some of the older permissions higher. And basically you can't have these anymore. And you have to migrate over to the RSC version. So that's exactly, like to your point, two years ago, we had no problem getting them those permissions. But now that the new technologies have rolled out,

SPEAKER_01we're saying it's time to move on because it's better.

SPEAKER_00Absolutely. Yeah. And just going through this, there's a lot of work here, right? And I think a lot of folks don't appreciate that. But in this new world that we are moving to, we are, you know, enterprise your front door into your tenant. And this whole app governance is a huge part of it. And as I'm going through this, it's really apparent, right? Like how much thought and work needs to go in and just the volume of reviewing applications needs to happen most of the time in companies they just ignore it

like there's a team to onboard apps and that's it right like it just gets added in and yes like based on what you are describing you need a small team that does just only this right there

SPEAKER_00it's not just a Microsoft only thing I feel like any reasonably sized enterprise org needs to have this practice. Definitely. Definitely. I totally agree. And now for a quick break for a word from our sponsors. If managing entry ID apps feels like herding cats, you're not alone. The E-Now App Governance Accelerator takes the stress out of keeping Entra secure, providing instant visibility into enterprise apps, permissions, and consent settings. You can automate application cleanup and lifecycle management

without toggling

SPEAKER_00through all the interblades. E-Now is offering a free 7-day upgrade to standard tier so you can access full risk details. Head to appgovscore.com and click Try for Free to activate your upgrade today. That's A-P-P-G-O-V-S-E-O-R-E dot com. I'll add a link in the show notes. And thanks a lot to Ena for sponsoring. Cool. And the last few are all related to compliance as well about the application. Yeah.

SPEAKER_01And that, like I said, I think that varied from company to company, but, you know, you know, is it like, for example, registered in your corporate service catalog or app log internally? If it is, we give it a risk of zero. If it is not higher, the risk.

SPEAKER_00And I like it because Entra added this capability recently, right? After, as part of the SFI sort of fixes in the app, you now have property where you can give a link to your service catalog where this app is recorded in. So at Microsoft, I'm assuming those link to that internal system where we have, whether it's ServiceNow or whatever system, it links into that. And it's something that, what didn't exist before, there used to be like a notes field where Like I used to remember when I worked as an admin,

SPEAKER_00we had a SharePoint list that said, okay, this app ID, this is the link in the internal catalog. But now you can add that directly into Entry itself, which makes it easy to keep it as a source of truth. Because if you have an external list, it goes out of sync and you need to maintain that as well. Cool. Awesome.

SPEAKER_01So one other one that I was just going to touch on, because I think customers might appreciate this one or your listeners, is application usage. If the app has not had any kind of usage in, let's say, 90 days, that's where we would send them a notification to say, there's been no usage, so we're going to revoke your consent. Because sort of the same idea, stale permissions is bad from a security perspective. So if there's no usage, we're just going to revoke.

SPEAKER_00Awesome. Yeah, stale usage and stale permissions also, right? If there are permissions the app is not using, then you would want to get rid of it. It's been hard to do that before, but now there are like for customers, there is graph activity logs for at least for the graph side of the house. You can see which APIs are being used by an application and then try to work from that. into what can be done. So you give a score and you are waiting for each one,

you know, zero to three, zero to one.

SPEAKER_00And then what you do is you add up the score for all of these, right? You come up with an overall score. And then what do you do with that score?

SPEAKER_01So today, the way we evaluate, like I said, we do it one dimensionally. We look at the severity risk on the permission and it ranges from low to critical. We're essentially doing the exact same thing so that we kind of stay within that model, which is if you're, let's say your application risk factors add up to important, your permission risk factors add up to a moderate score, then we take the highest one and we consider the application risk to be important. And then from that, we can determine what kind of security controls have to be in

place and what other

SPEAKER_01sort of, like, are you going to be a part of a annual review or not? You know, that kind of stuff. We're trying to get to a point where... Where we're only, like we talked about the moderate scenario-based approvals, where we're only focused on, for example, important risk and critical risk. And the critical risk we might try to push down, like to basically have, you have to get an exception, for example. So it has to go through some leadership prior approval to be able to get that

SPEAKER_01permission because it's such a high risk. I don't know if we're there yet because We, at least on the risk rating side for permissions, we are very conservative and we tend to push things more to higher risk than lower. And we can't expect our leadership team to be approving every one of these. So we have to kind of tune the model a little bit as we look at more and more data. to help us make those calls. So it's a bit of an adjustment for us. But we'd like to get to a point where we're able to do a lot of this work faster

SPEAKER_01because there's auto approvals, but also not have to take everything to the leadership team for an exception and then just deal with the things that are within scope on the higher risk side.

SPEAKER_00Right. Yeah. And as you do this exercise, you're basically improving the health of the tenant, right? Like when devs come in with, if you're just planting them without, you know, doing a lot of review there or looking at all the mitigating factors, like what can they do to make sure that it complies or improves the security? Like if you're doing... A public, a single page app or use Pixie would sort of help improve that risk. And, you know, all of those different settings, it helps improve that risk.

SPEAKER_00And then you do the reviews, which let you, you know, move up the application stack, improve its security over time as the new sort of checks come in. Yeah, nice. Yeah, exactly. Yeah, so this is, it's a very fascinating, like, white paper you have. I do want to have it, you know, we need to make sure we can get some of these concepts out and have it in a public doc so others can learn from this and, you know,

SPEAKER_00we can evolve this as an industry, right, to help as not just to something that Microsoft does, that others can do as well when they set up the governance for the applications. Yeah.

SPEAKER_01Yeah. Like I said, I mean, it is one of those things that I think I was spending a little bit of time trying to come up with a better way to improve things. I've been in this program for seven years now. And for the longest time, like once I realized we were only doing it one dimensionally, I thought it's so obvious that we should have been doing more risk factors. But I thought to myself, I said, you know, like there's a lot of people involved in this program, even peripherally. You know, we've got a lot of people on the identity side in our security

org.

SPEAKER_01Nobody really, and they're doing their sort of consent for other tenants. They haven't come to us about anything like this. And in fact, I think the people in the other tenants are using this white paper for their own sort of risk factors that they're developing. I don't think it was a revolutionary idea. I think somebody was bound to kind of come across this at some point. It just happened to be me. Yeah.

SPEAKER_00Yes, yeah. Because you're seeing it day in and day out, right? And you are hit with, I think, more apps than most other people experience. And you need a... like not just, you know, like how you feel, not a gut feeling of, yeah, I'm going to approve it. Because I mean, when I used to be an admin before, that's what I did. Like the things that you walk through is sort of things that we did assess. Like if it's an internal app, yeah, you know, higher permissions,

we are okay giving it.

SPEAKER_00But if it's an external app, And they ask for, I want appreadwrite.all, which you, when third party app asks for that, then you sort of outright reject those things, right? Because they need to give the right scope of the permissions. And a lot of people don't understand also the mapping of the API to the permissions, which is why I built my site with graph permissions that shows the mapping as well, which says, you know, what APIs are exposed through each one.

SPEAKER_00So that's, it is an awesome thing that you've done. Put it all on paper. So it's not just in your mind and it can be used by a lot more folks to review these.

SPEAKER_01You know, it's a funny exercise. I did this more as a concept and then I shared it with like yourself and other people in the company. And then as I started to go into each one of these risk factors, I realized I was missing certain risk factors. So I had to start modifying them. And I haven't actually updated the Word doc. I started modifying the spreadsheet where I was keeping talking about. So I will go back and start updating this as well. But one example is like legacy permissions. We still have people, the Azure, the Windows Azure Active Directory API.

I mean, it has been being deprecated the last four years, but it's still not deprecated yet.

SPEAKER_01And so the risk on that slightly higher because it's legacy. And then I started thinking, I said, well, we also see beta permissions. So those should be also slightly higher. So I started to develop that into a risk factor when we see those permissions pop up, add those in there. Yeah, absolutely.

SPEAKER_00We could have like five different chats about this. Yeah, there's so much like I keep thinking back to like where I was working before I joined Microsoft. This was back in 2015. And the permissions were not as fine grained as they are before. They were very coarse grained. And there was some service principal needed to do things with Exchange and others. The permission we had to give it was a global admin app role to the service principal. And I'm sure it's not been reviewed. It still has that level of permission there. Even today,

SPEAKER_00but the permission model has changed so vastly and it's changing, like it's becoming more and more granular. So you can actually scope it down to very specific other permission scopes that are needed. And yeah, I know there are some things that are being worked on internally that will come out in the next three, five months, which will add to other factors that you can include as part of, you know, reviewing this. So it's an ever evolving thing, right?

The platform evolves and you want to make sure the apps stay on that like minimum

SPEAKER_00permission level because what was considered minimum today, tomorrow with the new model, like the exchange RSC permissions you said, They'll be now considered like higher privilege because there's now a lower privilege that you can assign to it. Exactly. I would love to hear more about the new stuff rolling out in the next few months. Yeah, I'll ping you. Yeah, so that, yeah, it's going to be a fascinating thing, but... Like if you see a lot of the compromises that we've seen,

these are all through apps. The attackers go find weak apps, stale apps, and they are staying hidden in those applications.

SPEAKER_00So these are changes Microsoft is making in the platform. But this is not something that Microsoft can just turn on in every customer tenant. It'll break apps and cause outages, right? So this is every customer will need to review and make those changes to the existing apps and then also make sure the newer apps improve and also the Microsoft ISV partner ecosystem as well to know how to move on to the more, you know, the better approach of building the applications.

SPEAKER_00Cool. Kuram, thanks so much. Any final thoughts to Entradmins? I'm sure after listening to today's podcast, there might be stakeholders who might go, look, I need to stand up a team or carve out time for my team to focus on this part of the application governance. What advice would you give them?

SPEAKER_01I mean, the advice I would say is, you know, it is a lot more involved than people may even get credit for. So I know there's a lot of teams out there that they have to do this work. I do this all the time. It's not that people in Microsoft don't understand the work that we do. I think that with all the different priorities, it doesn't get the exposure that it should. I would suggest trying your best to try to raise the awareness that the best

way i can say it is every time there's a new exec in the room i try to tell them that this is the cornerstone of app governance in azure and when you stream it that way people start to look and say oh okay yeah that makes sense because if i walk into the room and i tell them it's admin consent they're like it's some some geeky thing in the corner

SPEAKER_01and great you're doing i feel like i feel like it would be classified like working on pki right like it's a it's an it's an absolute necessity but there's like four guys that work on it for the entire company versus this yes there's a small team but it is critical to pretty much every app that's being used in the cloud space so it's something that we need to take like have a little more focus on so

SPEAKER_00Awesome. And yeah, hopefully today's podcast will help change, start changing those minds. And I mean, this is why attackers are really happy because... very little of this is being done. So when they get into a tenant, they have a huge buffet of apps with stale credentials, high risk. They can just, they have the luxury of picking and choosing what they need, right? So this is doing that risk and app preview is a way to avoid

SPEAKER_00you know, being in the news and attackers getting in with credentials that are leaked and, you know, apps that are not following the best practices when they do this. So, yeah, it's not needed until something bad happens and then you go, look, we should actually have a better review process here. Yeah, yeah, totally with you. Cool. Thanks so much, Karam. I know it's very late on a Friday evening for you. Thank you so much for spending time and talking about this

important topic with the audience.

SPEAKER_01No problem. I'm glad you had me on. I would love to come back if at a future date we come up with some new stuff. Yes, I mean, I want to make sure we publish the white paper or some form of it. So others can have this sort of like a detailed guide because you walk the path,

SPEAKER_00you are a trail baser and others can, you know, follow in the model that you've done. And then, I mean, it's a back and forth, right? Like the community will have ideas and we can improve on it. Yeah. As well. Definitely. Awesome. Thank you, Karam. Thanks again.

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