Emilien Socchi, Cloud Security Research Engineer at Storebrand, joins us to discuss CA Insight and AZTier. Two open-source tools Emilien built to find gaps in Conditional Access policies and categorize Azure/Entra roles based on attack paths. Learn how CA Insight evaluates 250 million sign-in combinations offline in minutes instead of days, why the What If API doesn't scale, and how AZTier helps defenders and pen testers understand privilege escalation risks across Entra ID, Azure, and Microsoft Graph. Together, these projects help security teams move from reactive log monitoring to a proactive defense strategy. What’s Breaking and Slowing Your Entra ID Environment? In Microsoft Entra ID, the same visibility gaps cause two problems: * Things break * Work slows down Expired client secrets disrupt integrations. Certificates lapse and authentication fails. New apps appear with excessive permissions and no clear ownership. At the same time, teams struggle to answer basic questions, which applications have access to Microsoft 365 data, whether that access is still required, and who is responsible for it. When answers are not immediate, reviews stall and projects slow down. ENow App Governance Accelerator Credential Guard helps identify expiring credentials and expose permission and ownership gaps. For organizations under 10,000 users, pricing ranges from $3,500 to $9,500 annually through March 31, 2026. Subscribe with your favorite podcast player or watch on YouTube 👇 About Emilien Socchi Emilien Socchi is a Cloud Security Research Engineer at Storebrand (Oslo, Norway) focusing on the proactive discovery of security issues. With an extensive background in application and cloud penetration testing, Emilien has published practical research and tooling used by defenders. He also maintains several open‑source projects, including Azure administrative tiering models and Entra ID role‑monitoring utilities. LinkedIn - https://www.linkedin.com/in/emilien-socchi 🔗 Related Links * CA Insight- https://github.com/emiliensocchi/entra-ca-insight * Azure Administrative Tiering (AzTier) - https://aztier.com * AzTier Source: https://github.com/emiliensocchi/azure-tiering * AzTier Deployer - https://github.com/emiliensocchi/aztier-deployer 📗 Chapters 00:00 The Story Behind CA Insights 16:52 Why the ‘What If’ API Doesn’t Scale 21:09 Building an Offline Evaluation Engine 45:22 Deep Dive into AZTier: A Red Team Perspective Podcast Apps 🎙️ Entra. Chat - https://entra.chat 🎧 Apple Podcast → https://entra.chat/apple 📺 YouTube → https://entra.chat/youtube 📺 Spotify → https://entra.chat/spotify 🎧 Overcast → https://entra.chat/overcast 🎧 Pocketcast → https://entra.chat/pocketcast 🎧 Others → https://entra.chat/rss Merill’s socials 📺 YouTube → youtube.com/@merillx 👔 LinkedIn → linkedin.com/in/merill 🐤 Twitter → twitter.com/merill 🕺 TikTok → tiktok.com/@merillf 🦋 Bluesky → bsky.app/profile/merill.net 🐘 Mastodon → infosec.exchange/@merill 🧵 Threads → threads.net/@merillf 🤖 GitHub → github.com/merill Get full access to Entra. News - Your weekly dose of Microsoft Entra at entra.news/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_01From the latest hacks to cool updates, join the ride, don't be late.
SPEAKER_03Hey folks, welcome to another episode of Intro Chat. Today I have Emilian Sokhi. He's a cloud security research engineer at StoryBrand. Emilian, I've been following him for many years now from Twitter and other places. He's done a lot of research and we are going to talk about two of the projects. I followed him on some of the research he's done with AZTier where he's gone through all of the different like sort of the permissions, etc. and sort of categorize them. We use that in Meister as well.
SPEAKER_03So some of his research is published and we use that there. And recently, Emilian has released a CA Insights, which is fascinating. It's based off some of the original work, some initial work, I think that Joshua and the others did. And yeah, so I'm really keen on digging into all of this. Emilian, really happy to have you here. Welcome to InterChat. Thank you for having me. Awesome. Emilien, so tell us a little bit about yourself and where you work and a
little bit about
SPEAKER_03your research as well.
SPEAKER_00So currently, like you said, I work in Studebrand, which is one of the largest companies in Norway, in Europe, for insurance. And in Studebrand, I work in the SecOps department of the company, where SecOps has basically three responsibilities, prevent, detect, and respond. And I work mostly with the prevent part of it. Basically, the idea is that I try to find security issues before hackers
do.
SPEAKER_00And there's a lot of things that fall into that category. Yes. So, you know, my daily tasks are ranging from doing simpler tasks, I would say, like maybe... doing a pen test of something specific. It could be like a critical application. It could be a system. It could be testing a part of our cloud platform. And, you know, sometimes I, like, for example, with CA Insight, you know, the original... issue for this was that I wanted to look at a specific aspect
of our cloud
SPEAKER_00platform, which was conditional access. And that led into doing a bit of research, a bit of development, and, you know, Cinsight was kind of the output from that. But there's also a lot of research around like, I wouldn't say it's research kind of like you would do, you know, in a university context or like very, you know, deep cybersecurity research. It's usually about like a topic where there isn't that much work that has been done or I'm not satisfied with,
SPEAKER_00you know, what we have. And so I'm like, all right, I kind of want to take a different approach to this. And then, so you basically have to find a solution to, okay, how can we solve this issue? So like AZ tier was an output from that where I wanted to do originally attack path analysis and Entry ID. And the starting point for it was that I needed to basically understand all those different roles and permission in Entry ID. That was the starting point.
SPEAKER_00So like, okay, I need to categorize them somehow. I need to understand what they mean from an attacker's perspective. That was kind of like the starting point to do attack path analysis in the way I wanted to. Because I mean, it's not something I've invented. It's been out there for a long time. SpectreOps and the guys working there are pretty much the experts at this. But I kind of like wanted to have a I guess a slightly different approach to it. So that's, that's what I do daily.
SPEAKER_03Awesome. Awesome. Yeah. So we'll dig into all of this. Uh, I hear you get asked to be on podcast a lot as well. Well, not necessarily podcast, but you know, like, uh, participate in like events and, uh, it's it's actually a nice opportunity for me to say this um i really appreciate when people ask me and i i think it's super nice to share knowledge and it's super nice to have such a global community at this point for you know cyber security and
and everything and like everything has a niche and a community but for me you know
SPEAKER_00i i well i'm a dad i have small kids it takes a lot of time Um, and I try to separate work from my private life so that it's easier to manage. So the amount of things that I'm allowed to share is kind of like limited. Like originally I was doing those talks, a lot of talks internally, like for companies. And then, you know, I started writing blog posts and all this, but now it's like, if I actually do a LinkedIn post, it's already like a good goal for me.
SPEAKER_00You know what I mean? Um, So, yeah, I don't do a lot of podcasts like yours. And I chose yours because it has a large audience. And I like the format because, you know, I didn't want to have to, like, prepare a lot of things like making a huge demo. So that's why I chose your podcast. I just like the format and the audience.
SPEAKER_03Yes. And that's exactly the reason why we do this, right? Because everyone's busy doing so many different things. And this is just a way to like listen and gain some knowledge and, you know, just learn what others are doing in the industry. So it's a bit different to like sitting down and learning a topic. But yeah, the idea is to share knowledge and, you know, learn from the others, which I feel is a bit lacking. So that's why I love the whole podcast thing. So with that, tell me about CA Insights.
SPEAKER_03What started this journey? You mentioned a little bit, right? And just talk about what it is. Like, I know we have interest built in What If Analyzer and that API. And what is CA Insights and how is it different from some of that?
SPEAKER_00So the original goal for CA Insight was it actually, a lot of what I do usually is an output from an issue I have where I'm like, okay, here I have like a problem. I want to achieve something and either there isn't a good solution or the solution in that particular case was either very expensive or a bit like outdated. So the original problem I had was we have a bunch of conditional access policies and I'm sure Anybody who's working in a large enough company has that issue
where the number of
SPEAKER_00policies grows drastically over time. And it grows organically. As your company starts getting more complex, you're going to need more policies. And when we start talking about several hundred policies, it's the... the risk for having gaps in your policies is increasing. So that was kind of like the starting point, like, okay, I want to figure out if we have gaps in our policies and I don't want this, like, I want this to be repeatable.
SPEAKER_00So I don't want to do it once it takes, I don't know, four months to run, I get an output and then I can't really do it again. I wanted to be able to do that kind of like regularly. And ultimately, I wasn't sure when I started, but ultimately I wanted to have something that could basically solve that issue for me. So that the idea was if I fix all my gaps today, I want to be able to be notified automatically if a new gap
appears tomorrow.
SPEAKER_00Completely automatically like I don't want to have to do any work. I just want a notification somewhere to tell me Hey, there's a gap that needs your attention. So I don't really have to do anything and I was looking for a tool doing that and before I started working in studio beyond I worked as a Because now I work in-house for a studio beyond before I worked for them. I worked as a consultant for many years mostly as a penetration tester and I used, at the time, I used a tool that was the largest inspiration for C-Insight,
SPEAKER_00which is called CA Optics, which is developed by Joshua, can remember his last name.
SPEAKER_03Yeah, Joshua Santos. Yep, exactly. I have the first part too. I forget the son Tassalo. Yeah, I've chatted with him. I should get him on the podcast. But yeah, just when he published this many years back, I did just hook up with him and we did a one-on-one, a few different calls where he walked me through how that solution was built and what it does.
SPEAKER_00Yeah. And I mean, and at the time it was crazy early. Like he was really solving like an issue that was out there. But then, you know, now the tool is archived on GitHub. It hasn't been maintained for I think a couple of years now or something. So it's, you know, I wanted to, and there were also, because it was so early, it was hard to like understand all the ins and outs of conditional access. So I also wanted to build something that was a bit different, more identity centric.
SPEAKER_00Because what Joshua built at the time was, it kind of like followed the design of conditional access and the way Microsoft has designed it. So maybe I can talk a bit about like how conditional access works and how policies work before I start digging into further. Let's take a quick break to hear about E-Now's app governance accelerator credential guard.
SPEAKER_03In Microsoft Enter ID, the same visibility gaps that cause outages are also slowing down your work. Expired secrets, certificate failures, and unclear app ownership continue to disrupt integrations. At the same time, teams struggle to confirm which applications have access to Microsoft 365 data and whether that access is still required. Enau helped surface these risks early. For organizations under 10,000 users, pricing ranges from $3,500 to $9,500 annually through March 31, 2026.
SPEAKER_00Details, but conditional access, I guess everybody knows what conditional access is, but the idea is that it's supposed, you're supposed to use it in a way so that you can have additional requirements for your site names, right? So if you don't use conditional access, you're still requiring a username and password to access anything in your tenant, but with conditional access, you can have additional requirements. And when you define a policy, you basically have three dimensions in your policy.
You say, okay, I want this policy to apply for that identity or that group or that role.
SPEAKER_00And I want it to apply when that guy is accessing this application. So like a target resource, and then you can have a certain sets of conditions. So you have like a target identity, a target resource and a set of zero to multiple conditions those are like the three dimensions of your policy and a gap is basically when you have a sign-in scenario that is not covered by a policy so then the fault-like requirement is only having
you know username and password to access whatever you're trying to access whereas
SPEAKER_00with conditional access you can require you to have mfa phishing resistant mfa yeah you can block access if it's a type of access that you consider shouldn't be allowed um you can require you know compliant device you can require a lot of specific locations and so yeah the visually how i try to tell people is like sort of make it a bit visual is think of it like a funnel where you're pouring water into maybe a small bottle or something right you hold the
SPEAKER_03funnel and then you're pouring water from the top The CA is basically you catching all the water that's going in, but there could be splashes and, you know, water spilling out that doesn't really go into the funnel that goes outside. So think of conditional access like that, right? When you define your... Your conditions and the target resources and all of that, that then controls what happens. And one of the biggest mistakes people do is when they define
CA policies is they
SPEAKER_03go and pick all the different, oh, let me pick this option, pick that option, include this, exclude that. then it just makes it more complex. And the chance of the policy or gaps coming up, it just increases quite a lot. The more you go and select all these different options in the policies. So yeah, my thing is always to keep it simple. But yeah, so that's how the policy works. And go ahead. How does the insights come in?
SPEAKER_00Well, so I wanted to build something that could find gaps, right? And so there are a lot of different ways to do it, but there were some things that I absolutely wanted to have in place for the tool. The basic approach that I used was to say, okay, I want for each user, I kind of want to enumerate all possible sign in scenarios that exist, like all the different ways they would theoretically have to
sign in to each
SPEAKER_00individual app that we have. And then for each scenario, I want to evaluate, do we have a conditional access policy covering that scenario? How did you, just before we get a lot into that, what triggered the whole thing for you?
SPEAKER_03Why did you, what caused you to sort of look into this? Well, the, you know, finding gaps in traditional access has always been a struggle.
SPEAKER_00And when I was working as a consultant, it was always kind of frustrating because the only option you had really was to kind of like run the best tool that was out there, which for a long time was, and it's still a very good tool. Joshua's tool is still a very good tool. But literally it was just a matter of like, okay, I'm, running this tool, seeing the output, trying to find what's wrong here. But there was, you know, especially after I started to work in-house,
SPEAKER_00I started to think more of how do we solve this issue so that we, like, it's never a problem again, like finding the gaps is one thing, but then, you know, let's say I don't have anyone today, like policies change and almost all the time and if your policies don't change you usually target groups in your policies so the group memberships will change which means that what you think is covered today might not be covered in the same way tomorrow. And so I was thinking,
SPEAKER_00how do we fix that so that if there is a gap, I'm basically alerted automatically and I know it works. You know what I mean? Like I wanted something like that.
SPEAKER_03And I mean, if I'm being honest... And even without those two, right? There are things like new users could be added. So even though the groups don't change and the policy doesn't change, there are new group, new users who turn up in the environment. There'll be like, if you're using IP location, then there'll be like new IP locations that fall out of the named policies you defined. So it could be just something outside of even entra, right? When you think of like IP ranges and stuff and something changes, it could be any number of factors.
SPEAKER_01Exactly. And in larger organizations, I mean, those are changing several times a day.
SPEAKER_00So that's why you can't, you know, the tools that we had until now were mostly like a runoff tool. Like, okay, I do one-off assessments. But there was no easy way to do this and automate to have a full solution. So I don't recall if you covered it, but the what-if API is sort of one of the things, right?
SPEAKER_03So let's take a very simple example, like users doing MFA. How is it different from what you did and what what-if has and what limitations were you trying to overcome before we jump into the... So that's interesting because my first approach was actually based on what if.
SPEAKER_00And the problem you start having, because you've got to remember, if you scale this to, I mean, scaling was the major issue, major challenge. And using the what if API is no different. If you try to scale it so that you have thousands of users and thousands of apps and you want to try to evaluate all sign-in scenarios, you're going to have issues with timeouts, you're going to have network issues. Graph has throttling, right?
SPEAKER_03Graph has its own throttling, the policy, see what if has its own limitations of how many times you can call and you need to do like it's multiplies, right? Just if you only take users, let's forget about all the apps and everything, right? Let's just say I just pick one app and the users signing in. If I have 4,000 users, that's like 4,000 what-if. API calls, just, you know, just the bare minimum. And if I have like 10,000, like that's 10,000 and Graph has its limits on how many times
you can call and
SPEAKER_03Graph has an overall tenant limit as well. So you might have other services being impacted. But then soon as you start adding the combinations of you, most people have like different groups they'll have different like more than one right there'll be at least a hundred apps and then once you multiply that you end up with like millions of combinations to test and you can't run that against the what if api for testing those millions of combinations yeah i mean for us we with the
tenant we have those
SPEAKER_00number of combinations it was as high as, it was above 250 million combinations.
SPEAKER_02Exactly.
SPEAKER_00So that means to do one run, like to do one analysis of your conditional access policies, you would have to go through all of them. And so that would take like several days probably with the What If API. Yeah. I mean, my conclusion was this wasn't scalable with the What If API.
SPEAKER_02Yeah.
SPEAKER_00Because again, it's changing several times a day, right? So you do want to be able to assess your policies several times a day if you need to.
SPEAKER_03Yes, exactly. And I think that's the key, right? The combinations is like for people to understand what you mean by that, right? You need to try every sort of permutation to be able to say whether there's a gap or not. So if you have like two policies, one that says MFA, one that says device, I don't know which features you support, but whatever the different CA features that are there, you need to now try every combination of that whether a person is coming in from inside the land,
SPEAKER_03outside the land, like all those different combinations, right? Which is why you end up with all those millions of combinations that can happen. And what you want to do is you send all of that through sort of the CA engine and then see what could be the potential result. Like, is it evaluated or not based on what you have?
SPEAKER_00Exactly. It's like, if you want to calculate the number of, you know, all those sign-in scenarios that exist you basically have to take like I mentioned earlier there are three dimensions in policy so you need to like multiply them together so like you have the user dimension so like the identity targeted by the policy you have the applications that you're trying to access this is like the second dimension and then you have the conditions but like whether yeah your policy
SPEAKER_00supports you know like different platforms different locations, different types of authentication flaws, like all of that. And when you start multiplying them together for us, and we have about 5,000 users, it was something like 250 million combinations. So the idea was because I wanted this to be repeatable several times a day, if I wanted to, I decided to make something that was as offline as possible. So like the general idea was to say,
okay, I'm going to grab everything I need from entry ID.
SPEAKER_00So like the users, the apps, the policies, everything I need. And then I'm going to do the permutation offline. So I don't have to deal with API throttling. I don't have to deal with, you know, with all this. Now, obviously, offline doesn't solve the problem because you still have a scalability issue with the computing power that is required to, you know, compute all those computations. So then I started because that doesn't scale either. Like, even though you're using multi-threading and you're using a
bunch of threads and
SPEAKER_00you have powerful machine, blah, blah, blah. Sure. If you're computing all of them like the 250 million combinations i was talking about it does not scale it was if i remember correctly because one thing is for each permutation you also need or for each combination you also need to evaluate against your policies right so against each and every policy right yeah for a large tenant it's like you're likely to have over like
150 policies or something yeah over 100 no problem yeah so that takes time to do this and i remember calculating like if i was doing this offline and i could do like i could evaluate 100 combinations per minute blah blah blah and i would use 10 threads it's like in the end one run would take like 150 days or something yeah so i was like all right that doesn't scale either and so i use i try to use like a
SPEAKER_00smart approach where the idea was to say, okay, when I first grab all policies for maturity, yeah, right. To get that number? To get over the scalability issue, I had to be smart in the way that you evaluate the policies. And so the general idea without like going too much into technical details, because it's hard to keep up with when you're just listening.
SPEAKER_03Yes. Yeah. You need a whole whiteboard.
SPEAKER_00Yeah, exactly. It's like, yeah, let me draw it for you. Yeah. But yeah, on a very basic principle, what I try to do was to say, okay, I'm like step one, I'm going to grab all policies from my tenants. And then what I'm going to do is I'm going to flatten the policies because again, a policy can target, it targets an identity, right? As one dimension. But when it's targeting an identity, it can target either like specific identities, like specific users, or it can be groups, or it can be entry roles,
SPEAKER_00like saying, I want to make a policy for my global admins. So if you have the global admin role, then this policy will enforce this and that. And, you know, what I did was to say, okay, I grabbed the policies and I'm going to flatten them out in the sense that I want policies that are targeting groups. I want those groups to be resolved. so that in the end, all policies that I see offline, they're just targeting users. So if they're targeting global admins,
SPEAKER_00then I would resolve, okay, who is a global admin in my tenant right now? And I would also involve PIM in this. So if you would be eligible to pay to global admin, for example, you would be resolved as targeted by the policy. And then the idea is to say, once you have... those policies, you can basically try to identify what I ended up calling universal policies. So a policy that says,
SPEAKER_00regardless of who you are, I'm either blocking access, requiring MFA, or requiring phishing-resistant MFA. And there's no condition in the policy, which means that a universal policy basically applies to all those users that are defining the policy. Because if the policy requires MFA and there's no condition defined, then it means it covers any condition. So the idea was to say, I grab all policies, I flatten them out,
I identify universal policies so I know that all users covered by those universal
SPEAKER_00policies, they are covered by what I call a strong control, which is either MFA, phishing resistant MFA, or blocking access. And then the idea was to say, okay, once I have that set of users that I know is covered, like in all scenarios they are covered, then I grab all active users in my tenants and I look at the difference to identify those who are potentially uncovered.
SPEAKER_02Oh, okay.
SPEAKER_00And those are like the remaining users that I would evaluate kind of in a traditional way like I mentioned earlier. But that would reduce, I mean, if you have a fairly secure tenant i guess that would reduce drastically the number of combinations you have to compute yeah especially if you have like the baseline policy right that says we we microsoft one of the recommendations is to have a minimum baseline where you say all users all apps and you apply then you would only have like an exclusion
group and then your i would say the thing you would want to is look at only the
SPEAKER_03conditions and the people who are excluded from that baseline, which basically reduces it quite a lot. But I mean, again, it depends on the tenant. And if they have lots of identities that are not part of, you know, that they just think everything from on-prem that are not really active, then you do end up with a lot of those as well.
SPEAKER_00And that's also one of the things like I wanted to make it, um, ideally centric because my, the first version I made wasn't, I wasn't flattening out the policies like I was mentioning, uh, which means that I ended up having results like, oh, this group has a gap. But then I was like, so then, you know, I was like, okay, so this group has a gap. So, you know, I started investigating my tenant and then I was like, like no yeah because the user would be covered right still
exactly it's like well the thing is groups don't authenticate users authenticates right so then it's like well yes that group could be totally excluded from conditional access yes that's correct but even though you're in that group doesn't mean you're excluded from conditional access period because maybe you know user is also in a second group
SPEAKER_00that is covered by cultural access with like a baseline policy. So that's why I ended up making it identity centric in that sense with flattening out policies. And that also, you know, just looking at users when elaborating the policies or analyzing the policies made it possible to, you know really focus on where there could potentially be gaps and i mean for our tenants for example that that reduced the amount of accommodations to go through by
something like 90 90 point something percent so that's uh that was quite a lot and then suddenly instead of taking 150 days to process it would take like 20 minutes
SPEAKER_03Nice. So there are lots of different grant conditions, right? So you spoke of like strong authentication. What does the Insight support? when you do the analysis so that's the thing here wanted to have because yes you're right there are a lot of different controls so you can say for example well i will grant you access if you have a compliant device i will grant you access if you have mfa i will grant you access if you're coming from ip address one two three there
are a lot of different conditions right that you can use a lot of different grant
SPEAKER_00controls but i wanted to have something that was based on identity-based controls. So literally for me, because even though I work a lot less with penetration testing than I used to, I still have this hacker mindset where I'm like, if you are requiring coming from a specific IP or a specific device, that's a lot easier to break. I'm not saying it's super easy, straightforward, but it's a lot easier to break
than requiring phishing resistant MFA or even MFA to authenticate it on your phone. What CA Insight really evaluates as a gap is if you have a sign-in scenario that is
SPEAKER_00not covered by a policy enforcing either MFA authentication strength, which is things like phishing resistant MFA, or that is blocking access. So if you have a policy that is only enforcing or only requiring having a compliant device, it's not going to be evaluated as strong enough. So basically when it evaluates a sign-in combination and the only matching policy
SPEAKER_00is requiring a compliant device, I wanted CNSite to tell me there's a gap here because I wanted to know about those scenarios. Because again, what I was interested in was to find sign-in scenarios where there's no identity-based control like MFA that was required. And that's 100% a, you know, design choice.
SPEAKER_03Yeah, yeah. I mean, that's like the bare minimum, right? Like every tenant you need to have MFA and you can have other things. They basically add on to MFA, but you shouldn't rely on them as the control plane, right? Especially with like zero trust and it's a bare minimum. So helping to understand if you have any identities where MFA is not being applied, right? Is a no brainer and a thing that anyone would want to know.
do I have any identities that are not in scope of any policies where you don't have MFA?
SPEAKER_03Like, so I think that's, but even that we are going to go into that, like we've been covering that it's a challenge, right? Yeah, yeah. With the different, any, any company, eventually carves out and then they create different combinations of policies and all of that. And just in auth, being able to today, I would say tell the difference between, you know, a phishing resistant auth and a non-phishing resistant, how many users are, you know, being targeted for which would also be, I think, would be really helpful to know.
SPEAKER_00Definitely. And that's one of the outputs. In Cinsight, there's two versions. There's a command line interface and there's a web interface. And in the web interface, because what the tool does is it produces like the output is really a JSON file. Because I feel like it's the best trade off for like, I would say human reading and AI reading, since everything's AI related these days. But the web interface allows you to visualize those reports. And that's one of the things like it will tell you here for
that scanning scenario
SPEAKER_00that you've chosen. You have that amount, like that many users covered by MFA, that many users covered by phishing resistant MFA, and that many users are blocked and that many users without it. Right. Nice. So then you can visualize like both in terms of percentage, but also like the actual raw number of users, which gives you kind of a, at least for us, the first results were interesting because it kind of like matched with our
SPEAKER_00expectations. Because, you know, the whole thing, and I think that's the biggest challenge for a lot of companies, they have a gut feeling that everything's in place, but they don't really know for sure. So that was kind of like the nice thing to be able to like double check this is matching your gut feeling. And then we had like interesting scenarios where it's like, huh, those accounts aren't covered by anything. Those are actual gaps. Why is that? And then you start like thinking, oh, are they coming from on-prem?
SPEAKER_00Are they used as like maybe some service accounts for, you know, some weird scenarios where you can have MFA? I think of like maybe like a meeting room or that kind of stuff, right? So that's the first results were interesting. And then as you start like iterating with the tool, you close gaps. And I guess the first stage, which is the public version, because I ended up making a public and an internal version for StoryBrow. The public version is basically the standalone tool that you can run easily multiple times,
SPEAKER_00but there is no... I haven't published like the full automation where it's basically running somewhere and it alerts you in like a Slack channel when there's a new gap. That's like the internal version that we have, which alerts you into different channels on different medias when a gap suddenly appears. Yeah.
SPEAKER_03Now, there will always be some you do intentionally, right? You might exclude an app from the policy. How do you handle those in the tool? Like, okay, you accept for some reason, right? Whether it's some meeting room software or some weird thing that needs to be excluded, but then it would apply to all the users, right? And your tool would show up like as lots of users being excluded.
SPEAKER_00So the, I mean, the way I sold it was basically by saying, okay, you can define an exclusion file, which is a JSON file where, well, there are actually two sections in that file. Either you can say there's an exclusion section where you can say those groups, those identities, those roles, you can use display names or object IDs. I won't exclude them from scanning. So typically that's where you would have Yeah, service accounts for kind of like legacy systems like we were
talking about. But there's also a section for inclusion in case you want to do a scan for,
SPEAKER_00maybe you just want to scan like a couple of groups. Like you're unsure about certain identities. You don't want to scan the whole tenant, right? But you're unsure about a certain set of identities. Maybe you've made like changes in certain policies that target certain groups. You've added some, you've removed some. So you just want to re-scan them. And in that filter file, you can say, I want to include only those identities or I want to include those identities. So like typically before, that's where you would have had break glass accounts. Now you're required to have MFA.
SPEAKER_00So it's nice to actually not exclude them, to include them in the scan and actually verify that they do have MFA in all scenarios. So yeah, that's how I sold it. And also something else I wanted to mention was For, you know, sometimes you could have the tool, the first runs I had kind of produced a lot of duplicates in certain scenarios. So imagine you have an identity that has what I call a universal gap, which is basically there's no policy for that identity whatsoever.
SPEAKER_00Right. So then obviously, because there are a lot of sign-in scenarios for that identity that are possible, C-Insight would report, you know, hundreds of different gaps. Because, you know, when you report a gap, you can look at the, what I call the access path. So like the actual path under which the gap exists. But I felt like this was just a bunch of noise because what was
really valuable in
SPEAKER_00those situations was the for the tool to actually tell me, well, here there's a universal gap, like there's no policy. That's what the issue is. So I ended up making some changes a bit before releasing where those types of gaps are kind of like aggregated and reported as one gap. So you would see that, okay, in this case, the user one, two, three, when it's accessing any cloud app, it doesn't have any policy.
SPEAKER_00Instead of saying, oh, there's one gap when identity one to three, accesses app one and accesses app two. So like you would end up with thousands of gaps, right?
SPEAKER_03Yeah.
SPEAKER_00So I felt that was more valuable to do it this way.
SPEAKER_03Cool. Awesome. And this is published as what do people need to install to run?
SPEAKER_00You basically need Python at this point. It's open source. There's a GitHub repo for it. The only thing you need is really installing Python. There's a full wiki section on the repository that tells you everything you need to know, usage, installation and usage, of course. But if you want to know more about like the different workflows, the different types of analysis that exist there, the design, the architecture, everything is there. But really for the installation, you just call in the repo, you install the Python dependencies and you're good to go.
And then again, you can choose between a command line interface or web interface.
SPEAKER_00The CLI interface is mostly meant for, I guess, efficiency, but also like If you want to automate the use of Cinsight, then you would do it through the command line interface.
SPEAKER_02Putting it on like a guitar DevOps, like a CICD pipeline, right?
SPEAKER_00Exactly. And that's what we did internally. The web version is literally just a front end, which calls the same functions as the CLI versions.
SPEAKER_03Nice. Awesome. Yeah. So this will really help answer questions people have, right? Like today you can do with what if, but that has scaling issues. So you can do like in Maester, we have some like random tests with what if, because the initial plan was just to try all the combinations. And then we very soon figured out that doesn't work. And I get a lot of people on the forum, et cetera, asking, you know, can't I just pipe all my users, which you can do with Maester, right? pipe all your users and then it runs the tests for every user.
SPEAKER_03But yeah, it's going to take a long time and even get throttled, right? So that won't really work because you can't even do the different combinations. So with Maestra, it was sort of limited to that.
SPEAKER_00But actually in the web version here, when you visualize a gap, like the actual access path, I made a button mostly because it was convenient, but I made like a what if button that basically sends you to the Azure portal. Nice, nice. Where you can like double check if you're unsure. You're like, no, but I'm pretty sure this is wrong. Because I mean, the tool could be wrong. Like I need this. Yeah, I mean, there could always be buttons. Spark are perfect. So I guess use at your own risk.
SPEAKER_03Yeah. But it's a good way to quickly get an answer, right? Like, which is what a lot of people have. Like, is my CA at least doing the bare minimum, right? Like of ensuring the auth, if it's MFA, whatever we rolled out. Is it doing that? Can I make sure that all the uses are covered? Today, the only answer is to do like a report only or go through the sign-in logs and then see who it is. But then if the accounts have been inactive, they've not been used for a while,
SPEAKER_03dormant accounts, there'll be so many of those, right? And you won't know and it's waiting for an attacker to come in and then start using them. those accounts. So this gives you that visibility into, you know, every single account, whether it's covered or not. And you don't have to wait till you see it in the sign-in logs or something to actually go and then fix it reactively.
SPEAKER_00That's a That's also why I, you know, and the web interface, there's a policy browser that allows you to browse because I think that's terrible in the, in the Azure portal where you keep like, I would like to be able to search through my policy. Right. And you could say, well, yes, if you have them as IAC, you can do that. But I made the policy browser and, and the web portal as like a dedicated tab, which allows you to filter on your policies and like search through them for
SPEAKER_00specific users, specific information. But the reason why I made this additional what if button was that, you know, sometimes you're like, but I'm fairly sure this policy is supposed to cover this scenario. But then if you run it to what if, you will see that, no, this policy actually doesn't cover it, right? Because you'll see the policies there covering the sign in and... Otherwise, if it's not covered. So it was a nice thing to really double slash triple check. But yeah, you're right. Something I forgot to mention at the beginning for CA Insight
is that it is
SPEAKER_00contrary to traditional approaches, which relied, kind of like you mentioned a bit, it relied on basically waiting for those gaps to happen in your sign-in logs and go through them and close them. As they appeared, the problem with that approach is that, well, you only knew about the gaps that were potentially exploited already because they had to be in your sign-in lungs. And the second thing was you didn't know about the gaps that were still there, but not usually exploited yet.
So the idea here with CA Insight was really to make something that can be used proactively so that you can discover your gaps before they are potentially
SPEAKER_00exploited by an attacker.
SPEAKER_03Nice. So what are your next plans for the CA Insights? What do you want to do?
SPEAKER_00Well, currently, my goal is minimal maintenance. right if that works as i mentioned internally we have an automated version of it running um so i guess we'll have to give it like a couple of months to see you know how it goes if something breaks or not if it works as expected uh but i mean for now and that's the reason why like when i share something publicly the idea it's mostly like to my to like solve an issue i had but the idea with sharing is
like well this is something i made if the community want to build on top of it go ahead you know and that's the whole point for me to kind of share that stuff because i feel like we have such a great community globally that it's just nice to be able to build on top of each other's knowledge instead of you know keeping everything for ourselves
SPEAKER_03Yeah, exactly. So that's kind of like the idea. Yeah, that's why I like sharing the tools as well is you can build on top of what someone has done without like redoing that same thing over and over again.
SPEAKER_01Yeah. Which is what I want to do with Meister to share those tests without rewriting the
SPEAKER_03same logic like in every app to find out who are the global admins.
SPEAKER_01Yeah.
SPEAKER_03For example. So the other project, AZTier, you published that. There's a website as well, right? AZTier.com?
SPEAKER_00Right. You're right. There's a website that is basically a static HTML frontend for some JSON files that are produced on a GitHub repo. Yeah. And like that's right now, I mean, it's an older project, so it's more popular.
SPEAKER_03You have more stars on GitHub for it than... Yeah, yeah. than the other. So tell us what prompted that research and what is it actually doing? I use it in Meister for some of our tests as well. So it's been very useful for the community. So I really love the research that you've done there. Tell us a little bit about AZT and how it started and why you wanted to do that, build it out.
SPEAKER_00Also, contrary to CNSight, which came mostly from like a blue team perspective, AZ tier really came from a red team perspective originally. And the starting point for it, as I was doing pen tests for clients, testing their Azure and entry ID environments, you know, I had my notes with, oh, okay, this role, this permission can be abused to do this and that. But then I was like, I need to make a database for this pretty much. And it can be just like notes stored somewhere in an
unstructured, like it wasn't scaling.
SPEAKER_00And something to keep in mind is that, you know, things like entry ID roles, Azure roles, permissions in Microsoft Graph, those aren't static in the sense that Microsoft publishes new roles and permissions fairly often, a lot more often actually than I thought. Well, you know, keeping up with because obviously new roles that appear could be abused to do things. Right. So you have to keep up with the changes that Microsoft is making. And so I was thinking, OK,
I need to make basically a database for this so that in the next pen test,
SPEAKER_00if I'm in a situation where I control an identity with a specific role of permission, I can go to that database and basically ask, what can I do with this role?
SPEAKER_03Right. So what did you... So how do you use it in your pen testing? Like you want to find out ways that you can get in, right? You can get privileged access into the tenant. And so... Yeah, go ahead.
SPEAKER_00Yeah, no, typically the... I guess the most common scenario was, hey, I'm in this position with this identity. I see this identity has those roles and permissions. And then the question was, often, can I ask your privileges? Often, you've got to remember, this started for... When did I release that originally?
SPEAKER_01I think it was... Let me look at the original release. My God, was that so long ago? Yeah, it's...
SPEAKER_00Yeah, that was in August 20... So originally, the initial commits on GitHub was in August 2024, which means that the pentest thing I'm talking about, where I started to feel the need for a database, was starting towards the end of 2023. um so that was way before we had like better models so this way before ai and all that stuff because i guess now you can just ask ai what can i do i mean i'm not
sure if you ask claude that it would tell you first like new permissions that yeah you can do this and that because obviously it hasn't been trained for like abusing
SPEAKER_00those new permissions but yeah typically in a pen test I would be in a scenario where the question is, can I abuse this permission somehow to either escalate privileges or move laterally? Like... especially in azure environments to like maybe compromise other resources in the same scope so like within the same resource group for example or the same subscription um and originally the goal was i guess the project was mostly focused on entry id roles and microsoft graph permissions and i was
mostly interested
SPEAKER_00interested in what ended up being tier zero which was The rules and permissions allowing me to escalate privileges to global admin. That's what I started documenting. And it was originally based on what the community had found. And then I had my own notes. And as it started growing, I was like, okay, maybe I can have other kinds of paths. So that's how it started, really.
SPEAKER_03Right. So if it's a defender, like how would they, if it's someone from the blue team, like an intro admin, how would they use this or, you know, what are the scenarios that they would make use of it?
SPEAKER_01Well, so that's interesting because...
SPEAKER_00You know, in the meantime, I have switched to another company where I work in-house now and pentesting is like one of the smaller things that I do, but I interact a lot more with the blue team. And that was originally kind of like the reason I wanted to change because I was, you know, tired of basically delivering reports and then not really seeing results or like progress. So here we are actually using this project to a certain extent for things that relate most to blue team activities.
SPEAKER_00So for example, you can say for tier zero roles that allow you to escalate to global admin, you could use those roles like on a watch list to say if somebody you can make like a custom detection saying well if somebody suddenly is assigned that role or permission that is tier zero i want to have an alert that needs to be handled properly because that's suspicious right it shouldn't like you shouldn't have new roles like this being assigned daily um so
that's one simple way
SPEAKER_00of using it um Personally, I have used it. And that's a goal for this year to kind of like dig deeper into that project. I have used those different tiers for doing attack path analysis. So because you do have like different types of tiers for each type of role. So you have Azure roles, entry roles, MS Graph application permissions.
And each of them have different tiers, ranging from tier 0 to tier 4 for Azure roles.
SPEAKER_00And Antra and MSGraph have three tiers.
SPEAKER_03And tier 0 means you basically have a way to get to GA from...
SPEAKER_00So for Entron MS Graph application permissions, tier zero means you have a path to global admin. And of course, the path is often dependent on specific conditions that might not be fulfilled in that specific tenants that you're in. But those are like roles where there's a possibility to be able to ask code to global admin. Now for Azure, it's actually a bit different. If you're tier zero for an ad, if you have a tier zero Azure role, It means that it's a role that you can abuse to escalate
privileges via one or
SPEAKER_00multiple resources. So typically, if you're a contributor, an Azure contributor, that's a typical tier zero role. And if you're a contributor, because you're always a contributor on a certain scope, so that's either... like an individual Azure resource or a resource group or subscription or even a management group that is a group of subscriptions. And so if you're a contributor on, let's say, resource group, it means that you might be able to escalate privileges through
other resources
SPEAKER_00within that group. Typically, you're a contributor on a resource group. That resource group has a VM. So it means since you're a contributor, you can execute commands in that VM. Most likely, unless people have very good Azure policies in place, which is not often the case. And then from that VM, maybe that VM has a managed identity towards maybe a subscription, maybe towards graphs, maybe it has an entry role,
SPEAKER_00maybe, I don't know. So then you can start like escalating privileges through that VM and the managed identity. That's like a typical scenario. So yeah, tier zero means previous. For Azure roles, pre-invest to what is 100% dependent on the environment and the scenario. So that's why I made that category more generic. I called it a family of privileged ascenders because usually you can ask about privileges,
but
SPEAKER_00To what level varies.
SPEAKER_03Right. And so I can, like, this is very useful when people want, like, most of the time in, whether you're a security architect or if you're an intra-admin, people come to you with, I want to onboard this application. And then it asks for certain permissions. And, like, I have graph permissions.medal.net where you can see what APIs are being exposed, but it just stops there. But it doesn't really give you a view of, you know, what are the sort of the escalation paths and things like that.
SPEAKER_03So I think this is where, like some of what your research you have will be very useful to go and figure out, you know, is that having a pathway to get to... the GA role from there and, you know, then decide, you know, what are the mitigations you need to put into the application or does that app that you're onboarding, does it really need that, right? So you can dig into why, if it's needed, and then what mitigations you can put in place as the admin.
SPEAKER_00Yeah, that's a very good point. That's also usage that we've been doing internally a lot to exactly that you're onboarding an app and you want to understand. I guess it was the very first objective originally for me to understand those roles and permissions. What do they actually mean, right? But it is actually the opportunity for me without naming any company. It's like the opportunity to say it publicly. Personally, I'm so mad. At so many companies, they're like, hey, use our app to do this cool stuff,
whatever.
SPEAKER_00Yes, basically give it global admin. And it's like it's in their documentation. They don't see any problem with it. And then when you ask, hold on, it's supposed to. I don't know, like it's hard not to mention anybody here, but, you know, it's supposed to be a simple task. So then you're asking, why do you need those permissions? And they can't tell you like more granular permissions that it actually requires. So I don't know what's your experience here in Merrill, but like very often for us, we end up, you know,
SPEAKER_00digging into logs and see, okay, what does it actually need? Like after a period of 30 days or something, which I think sucks.
SPEAKER_03Yeah. So it's some where the devs don't really know and they just call, look at an API, look at the permission and just use it. The graph docs, they've improved it in the last couple of years where they put in like least privilege and higher privilege. So you could at least tell the difference. Before it was just a list of permissions and... Now there's one pick as the least privilege of the permission for that API so that devs can at least do that, right? If not, devs would have to do like more research to figure out what it
is they need.
SPEAKER_03So it's not easy for the devs as well. Like that's one of the problems that's there. It's sort of as you're building an app, there are so many APIs you'll call and then trying to find out what is minimum capacity. The dev proxy tools sort of help, but you need to, you know, set that up. So Microsoft has a graph dev proxy that you can install. And then when you use the tool, if it's a client app, right? So if it's a backend, you need to like run it locally. And then through the proxy,
SPEAKER_03they need to look at the APIs and then tell you what the least privileged permission that app needs as a whole. Because you can pick each individual one. But then as a whole, it might be something else because you might be giving those permissions. Right. It's some where the devs It's really hard for them. Some where they don't know enough and some they are like, oh, I can't be going back to the customer every time my app expands in what it does.
SPEAKER_03And I'd go back to like if they have a hundred or a thousand customers, I have to now go and ask for the new permission, right? And then it spins off a whole cycle. So they're like, we'll go through this pain once and we'll just ask for all the permissions. Right.
SPEAKER_00And we'll do it. That's why, the reason why I got so mad, it was mostly when I was doing pet testing for this because you would see like random apps from some provider that, you know, the customer was using in their tenants and, you would see like crazy permissions. And it's like, of course, if you are in a position to take over a service principle, like those principles that come from, you know, other providers, because they can't get their head around the permissions would allow you to escalate to global admin. And that's why I got so mad because I've seen so many scenarios
like this that I'm
SPEAKER_00like, yeah, I don't know. It should be, I feel like it should be a bigger topic of discussion in the industry. Yeah, it should be.
SPEAKER_03Yeah, apps and permissions like that should be. And now with the agentic stuff, it's even more, right? So we need to really do a lot better with the non-human identity and the permissions that they have.
SPEAKER_01Absolutely.
SPEAKER_03Hopefully, now that people are focused on AI and agents, they'll take time to look at everything, not just the AI and agents that they're onboarding. But yeah, it's going to be like, I mean, we already know A lot of the recent attacks, etc., they're all based on this, right? Attackers are using these apps and permissions. And part of what we do in like my day job with the zero trust assessment that we've been building, that really goes into every single app and looks at all these
different things,
SPEAKER_03not just permissions, even like there's a lot of health factors in an app, like reply URLs. Like you could leave, like one of the tests we do is check every reply URL of every app that you have, because a lot of the times we'll find reply URLs where that domain doesn't even exist anymore. Right. And then if an attacker takes over that domain and like, yeah, so those are things like no one's really looking into, but you need to, that's what the attackers go looking for.
SPEAKER_00Yeah. And it's funny you're mentioning the dangling your eyes because one of my colleagues actually built a solution in Charlie for this. He's kind of like with CA Insights. He's solved the issue for that. Nice. I think he's going to start publishing some stuff publicly fairly soon. Yeah, stay tuned for more because he basically solved it. Nice. And I agree, it's been out there for years and nobody really talks very loud
about it.
SPEAKER_00And it is an issue.
SPEAKER_03Yeah, it's just that it creates more work, right? So with the zero trust assessment, we do that. So it runs. And then once you run it, you now have like 100, 200 things to go follow up on.
SPEAKER_01Oh, no.
SPEAKER_03That's the whole thing, right? Like you need enough people to in the team to help go and a lot of the times it's human right you need to now reach out to the app owners of that app and then they don't know so you need to go back to the ISV or the vendor for that app and all of that is a lot of paperwork and the time yeah it adds up so it's not just a technical thing to just go and quickly fix and yet it's an important
SPEAKER_01part of the overall health of Android you need to be worried about. Absolutely.
SPEAKER_03Cool. Awesome. Emilian, it's been, oh, we've gone for a long time and thank you so much. It's been great. Awesome, the work that you're doing and sharing with everyone that we can actually run these offline and do this quick scan. It's doing these millions of combinations in minutes. So really, really excited for more people to test it out and to help improve that aspect of, you know, improving our conditional access policies.
SPEAKER_00Well, thank you. Looking forward to people using it.
Microsoft is moving millions of users off SMS and onto passkeys, and most admins now have to decide which kind of passkey each group of users should get. Nishant Kaushik, CTO of the FIDO Alliance, the industry body...
AI agents are arriving in every Microsoft 365 tenant, and the questions admins ask first are what they cost to run and what it costs to secure them. In this Workplace Ninjas US special, four of the event’s speakers...
Most SaaS vendors connect to your tenant with one multitenant app and one credential, shared by every customer. Kelvin Tegelaar, founder of CyberDrain and creator of CIPP (used by well over 10,000 MSPs), sees it from...
Most Conditional Access gaps aren’t exotic. They come from reading policies the wrong way: as firewall rules with an “allow”, as a list of platforms that seems complete, as an MFA exception for the office that made...
Most tenants have the same problem: hundreds of app registrations and service principals, client secrets that were set to expire in a hundred years, permission grants nobody remembers approving, and test tenants that...