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 both sides, and his verdict is blunt: “This app is dangerous, period.” Recorded on 14 October 2026, one day before the ConnectWise Cloud Backup app’s credential was used to sign in to customer tenants (173 confirmed by Huntress). Key takeaways The risk: one app, every tenant * One app registration, a service principal in every tenant. The credentials sit on the vendor’s app registration, so one leaked secret or certificate works in every tenant that consented, with whatever application permissions you granted. For MSP tools, GDAP widens it to every customer behind the partner. * You can’t put Conditional Access on a vendor’s app. Conditional Access for workload identities covers single-tenant apps only. Watch vendor apps’ sign-ins, ask vendors how they protect their credentials, and know where the Enabled for users to sign-in? switch is so you can disable an app fast. Fix the credentials * Retire client secrets; let certificates rotate themselves. Prefer managed identity or federation; otherwise use short-lived certificates. CIPP’s last 30 days and are replaced every two weeks with Microsoft Graph addKey/removeKey, not by granting the app Application. ReadWrite. All. * Turn on app management policies. Block new client secrets and cap credential lifetimes. The tenant default policy is off until you enable it. * Lock your app’s service principals. Builders: keep app instance property lock on (the default for new apps since June 2026), so customer tenants can’t add their own credentials to your app. Fix the architecture * Build one app per customer tenant. A leak in tenant A then stays in tenant A. It costs some engineering; one central app is “choosing convenience”, which is fine only if you choose it knowingly. * Keep the apps you ship out of your corporate tenant. Separate tenants for corporate, Azure and the apps you publish, all secured to the same baseline. Decide early: an app registration can’t move between tenants. Watch the full conversation for how Kelvin built CIPP out of spite, the vendor mistakes he sees most, and why a standard pen test won’t find any of this. Sponsored by: Know what’s in your tenant, and keep watching it Every risk above lives in your own tenant: multitenant vendor apps with powerful permissions, client secrets and certificates that live for years, and app management policies nobody turned on. Maester, the free, open-source security test framework for Microsoft 365, finds them, with tests for long-lived app certificates, expiring credentials, privileged permissions nobody uses and app management restrictions. Maester Cloud keeps watching after the first scan: * Continuous monitoring: scheduled runs, each one diffed against the last, with drift alerts sent from your own Microsoft 365 mailbox. * Assign each failed test to its owner and link a ticket. * Track the work until it’s fixed: new failures, fixes since the last run and accepted risks, each pinned to a date and run ID. * Every tenant in one place, switching between customers without signing in again. Unlimited users and tenants. Self-hosted in your own Azure subscription for $99 a month or $1,188 a year, or through Azure Marketplace on your Azure invoice. Subscribe with your favorite podcast player or watch on YouTube About Kelvin Tegelaar Kelvin Tegelaar is the founder of CyberDrain and the creator of CIPP, the CyberDrain Improved Partner Portal, an open-source, sponsor-funded tool that MSPs use to manage their customers’ Microsoft 365 tenants. He owns and is CTO of Lime Networks, an MSP in the Netherlands, and has been a Microsoft MVP for eight years. A system administrator rather than a developer by trade, he built CIPP in PowerShell and has blogged at CyberDrain.com for years about automating Microsoft 365 for MSPs. GitHub - https://github.com/KelvinTegelaar CyberDrain - cyberdrain.com Related Links From the conversation: * Kelvin’s “accidental SaaS” blog post (mentioned at 02:25) - Referenced in the episode, but the blog post could not be found. * Huntress: Never Just One Termite, 6 months of researching OAuth application attacks (rogue apps) (mentioned at 24:28) - https://www.huntress.com/blog/never-just-one-termite-6-months-of-researching-oauth-application-attacks * Huntress: Traitorware, how hackers abuse legitimate apps to hijack Microsoft 365 - https://www.huntress.com/resources/traitorware-how-hackers-abuse-legitimate-apps-to-hijack-microsoft-365 * CIPP - cipp.app * CIPP documentation - docs.cipp.app * CIPP on GitHub - https://github.com/KelvinTegelaar/CIPP * CyberDrain - cyberdrain.com * Automating with PowerShell: making stolen tokens useless with Global Secure Access, by Kelvin Tegelaar - https://cyberdrain.com/automating-with-powershell-making-stolen-tokens-useless-with-global-secure-access/ * Huntress: vendor credential enables unauthorized access (the ConnectWise Cloud Backup incident) - https://www.huntress.com/blog/vendor-credential-enables-unauthorized-access Multitenant apps and permissions: * Application and service principal objects in Microsoft Entra ID (mentioned at 17:05) - https://learn.microsoft.com/en-us/entra/identity-platform/app-objects-and-service-principals * allowedTenantsAudience (restrict a multitenant app to specific tenants, Graph beta) (mentioned at 17:18) - https://learn.microsoft.com/en-us/graph/api/resources/allowedtenantsaudience?view=graph-rest-beta * How to configure app instance property lock (mentioned at 18:09) - https://learn.microsoft.com/en-us/entra/identity-platform/howto-configure-app-instance-property-locks * Microsoft Graph permission types: delegated and application (mentioned at 18:48) - https://learn.microsoft.com/en-us/graph/permissions-overview * Microsoft Graph permissions reference - https://learn.microsoft.com/en-us/graph/permissions-reference * GDAP and the Secure Application Model (mentioned at 16:32) - https://learn.microsoft.com/en-us/partner-center/developer/gdap-and-secure-application-model Credentials and rotation: * Add and manage application credentials (mentioned at 21:00) - https://learn.microsoft.com/en-us/entra/identity-platform/how-to-add-credentials * application: addKey (mentioned at 31:01) - https://learn.microsoft.com/en-us/graph/api/application-addkey?view=graph-rest-1.0 * Generate proof-of-possession tokens for rolling keys - https://learn.microsoft.com/en-us/graph/application-rollkey-prooftoken * Configure app management policies (mentioned at 32:23) - https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/configure-app-management-policies * Managed identities and secretless authentication across tenants (mentioned at 28:21) - https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/secretless-authentication * Configure an app to trust a managed identity - https://learn.microsoft.com/en-us/entra/workload-id/workload-identity-federation-config-app-trust-managed-identity Monitoring and response: * Conditional Access for workload identities (mentioned at 27:38) - https://learn.microsoft.com/en-us/entra/identity/conditional-access/workload-identity * Disable user sign-in for an application (mentioned at 26:26) - https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/disable-user-sign-in-portal Tenants: * Secure Future Initiative: eliminate identity lateral movement (mentioned at 34:32) - https://learn.microsoft.com/en-us/security/zero-trust/sfi/eliminate-identity-lateral-movement * Microsoft actions following attack by nation state actor Midnight Blizzard (mentioned at 34:32) - https://www.microsoft.com/en-us/msrc/blog/2024/01/microsoft-actions-following-attack-by-nation-state-actor-midnight-blizzard * Workforce and external tenant configurations (Microsoft Entra External ID) (mentioned at 37:17) - https://learn.microsoft.com/en-us/entra/external-id/tenant-configurations Related Entra. Chat Episodes * Stolen Tokens, Agents and Universal CAE: What Global Secure … 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_00Kelvin Tegelar asked the biggest MSP vendors for a way to manage all his customers' Microsoft 365 tenants. One told him, MSPs don't use Microsoft 365.
SPEAKER_03I went like Thanos in Avengers and I went like, you know what, I'm gonna do this.
SPEAKER_00So he built SIP over a couple of weekends. Today, MSPs everywhere run on it.
SPEAKER_03And from that seat, he sees how software vendors really connect to your tenant. [music] It's used for every single customer. And in the MSP space, that's extra dangerous. If these credentials get leaked, this tenant is in theory compromised. And if they use Deemed app, all of the tenants behind that are compromised as well. This app is dangerous, period. You're saying I'm choosing convenience. They're now known as a rogue app because attackers are using this app to make sure
SPEAKER_03that they can enter your tenant if you ever had it installed.
SPEAKER_00We recorded this conversation on October 14th. One day later, on October 15th, an attacker used one vendor app's credential to sign in to more than 170 customer tenants. The ConnectWise cloud backup incident. Everything Kelvin warns about here is now very real. So how do you stop one leak from taking down every customer? A new Entra episode every week [music]
SPEAKER_02Hey folks, welcome to another episode of Entra Chat. And today is another very special person. We have Kelvin Tegeler. Is that, did I, I don't think, I'm sure.
SPEAKER_03It is so terrible because my last name has this very guttural G in there. So no one is ever going to pronounce it correctly.
SPEAKER_02So don't worry about it. Let's hear you pronounce it.
SPEAKER_03Let's hear you pronounce it.
SPEAKER_02It's Kelvin Tegeler. Okay. That's not bad. It's Kelvin Tegeler. Close enough. Close enough. Cool. So Kelvin is a person who actually inspired me so much. And the reason I quit Microsoft is because of Kelvin.
SPEAKER_03God, it always makes me feel so uncomfortable when you say that.
SPEAKER_02You had this amazing blog post where you said, where you spoke about how you built an accidental SaaS and you shared your journey in the blog post. We'll link to it. That sort of inspired. So let me take the jump and go on this, you know, adventure.
SPEAKER_03Yeah, it's been amazing seeing you work at Maester and seeing you work actively on it. It's so exciting. It just makes me happy. It's always weird when people say like, oh, you inspired me to do these things because the exact opposite happened. We spoke about this months ago. I always said, yeah, Merill is a huge example for me when it comes to identity management and things that he does. Maester was something that I wanted to integrate and work with because it was so cool and did the entire Open source ethos behind it.
SPEAKER_03Everything was like, I guess we're just really aligned on the personal level.
SPEAKER_02And I spoke with you before I left Microsoft and for me, you are a mentor. You help me so much
SPEAKER_03behind this. So one of the important things, and this might be good for anyone listening that's thinking of, oh, I want to start my own SaaS or I want to start my own company. It doesn't even have to be a SaaS company. If you're thinking of taking the jump Talk to the people that you look up to. Talk to the people that inspire you, that you feel like, oh, that is the reason I want to start my own company. Because in most cases, we're absolutely open to talking about this kind of stuff, even if it's just broad strokes. And I'm the type of guy that loves going deep with people.
SPEAKER_03Like I love sitting down and going like, okay, let's focus on this little thing and let's try to figure this out together. You and I have done it with like, how do we do sponsorware and these kind of things. I think it's important that to remember that as humans, we enjoy sharing things, even if sometimes on both sides, there's a bit of trepidation. So it's just ask people if you're going to make the jump or if you want to make the jump.
SPEAKER_02But for those who might not know you, just tell us a little bit about your journey and your whole fight driven development story as well.
SPEAKER_03Yeah, awesome. I always find it hard to introduce myself because do I introduce myself as a person or do I introduce myself as the company? Starting with me, I'm a huge nerd. I am a huge nerd and I love being a nerd. So like I said, my name is Kelvin Tegeler. I am the founder of Cyberdrain, but I'm also a Microsoft MVP and I have been for the past. Eight years, I want to say. I was one of those in the middle of the year MVP. So either seven or eight years, depending on how you look at it. I own an MSP in the Netherlands. It's called Lime Networks. Love the MSP and I love the MSP space.
SPEAKER_03And it was the entire reason I started developing a piece of SaaS because I was talking to a lot of vendors at that time. And I came to these vendors and they are the biggest ones in the market. Like mentioning some names because I know that everyone is active in the MSP space, Kaseya, ConnectWise, Enable, SolarWinds, like these big names inside of the MSP space I was talking to and asking like, hey guys, My MSB is struggling with managing M365, and this is now five, six years ago.
SPEAKER_02Just to quickly interrupt, there might be folks who don't know what MSB is. Yes, of course. What is an MSB?
SPEAKER_03MSB stands for Managed Services Provider. It is an outsourced IT provider for the SMB, especially, and that's So outsourced IT is the best description where you deliver a managed service. So your customers pay a specific fee per month. It might be per computer or it might be per site or something like that. And then you completely The thinking
SPEAKER_03is that for the price of where you normally hire one or maybe two engineers, you get an entire team of people that have knowledge about a lot more subjects than just the one or two engineers that you would hire. That's the entire thinking behind it. So in the MSP space, I asked these vendors And I remember this very well. I was, I was talking to at that time, uh, they, they, it was still a separate company, but I was talking to the PM of one of the RMM vendors and I,
SPEAKER_03or the product officer or whatever. But I remember telling him like, we need something to manage M365. And he went to me like, oh, I don't think that our users use M365 at all. MSPs, he made the statement, MSPs don't use M365. And now you have to remember, this is five years ago. This is the height of migrations. This is the moment that everything like doubly exploded. And they were saying, no, I don't think that our users use M3s. And I still have the email.
SPEAKER_03It's still bizarre to read it, especially now. But then. At that moment, I was like, you know what? I'll do it myself. I went like Thanos in Avengers and I went like, you know what? I'm gonna do this myself. So I sat down a couple of weekends and I am not a developer by trade. I'm a system administrator. So the only skill that I have is PowerShell. That's my thing. And at that moment, I started developing something in a couple of weekends. I had a working prototype and I called it, back then I actually didn't have the name SIP yet.
SPEAKER_03I talked about it with a friend of mine and I called it CIA, Cyberdrain's Intune Assistant. And then my friend Davin Stone said, I don't think that's a good name. Have you heard of the CIA? That's the moment I decided, you know what, let's change the name a little. But I started developing it and that was the moment I was the And I shared it with my friend Gavin Stone, Steven, some well-known names inside of the MSP industry. And I shared it with them and I said like, hey guys, what do you think of this?
SPEAKER_03And that's the moment it exploded. I decided to make it open source so that the community could contribute to it and help me build it. So it wouldn't just fall upon my own shoulders because I have a successful MSP. I didn't need to have another thing next to it.
SPEAKER_02And then it went so fast.
SPEAKER_03In the first month, we had about a hundred MSPs using it. And that's already, that's extreme in the first month. That's already extreme.
SPEAKER_02That's crazy.
SPEAKER_03And that was the moment I was like, wow, people really, really needed this. And we started developing it more and more. We got a lot of community contributors, which I loved. Like actually the community came in and said, oh, I need to have this specific setting exposed, or I want to be able to manage groups and users as well. Like all of these ideas came from everywhere and actually people started contributing so much. I think it was about a year in that we reached a thousand users.
SPEAKER_03And that was the moment I went like, holy crap. There are a thousand users of this product right now. And people were clamoring at the gates asking me to pay for the software. They were actually actively asking me. So at that point, I called one of my friends. I actually had two people that I was speaking to a lot at that point. My current CEO, Ashley Cooper, and my CEO, Dustin. Dustin Bollinger, he's one of my best friends. So is Ashley. They're both really close to me, like personally. And I just spoke to them a lot about how am I supposed to do this?
SPEAKER_03And Ashley always motivated me to keep it very community focused. And Dustin was like, I'm sorry to tell you, but you've started a business again. Another business. And then I was like, okay, yeah, shit, I started a SaaS company. That was also the moment that I realized like this is going to become bigger than me. This is something that can change the industry. And it's the moment I decided to have Dustin as my CEO to take care of all the business stuff.
SPEAKER_03So I didn't have to worry about the business as much and I could focus on, let me create the product that I've always wanted. That was really important to me. So yeah, very open source minded still. So we always said like, we don't want to just have subscribers. We want to have sponsors. And the reason we said that was sponsorship works differently in people's minds than being a subscriber. With a subscriber, they immediately feel like a client.
SPEAKER_03With Sponsorware, they feel more like a community member. And that was important to us, making people feel wanted. Because I wanted their input. I wanted to hear everyone. So yeah, that's pretty much the journey so far. We're now at a lot more MSPs. We're sending statistics to Microsoft because we're in the Intune for MSP program a lot. So we have to analyze exactly who's using Hosted, who's using Self-Hosted. I can't say the exact number anymore because it just grows so much by day.
SPEAKER_03We're well over 10,000 and I believe that in just a year or maybe two years I can say, oh, we're well over 20,000 MSPs managing millions of tenants and environments where you're like, how the hell did this happen? It's really exciting.
SPEAKER_02It is right. And that's the power of open source. Like you just don't know how much the impact you can have when it just starts with an idea, right?
SPEAKER_03That's also one of the things that I love. And it's also why specifically I said, I want to keep the backend PowerShell because if I would have taken another language than PowerShell, I would have had a lot less contributors because in the MSU space, We have system administrators. We don't have that many developers. We don't have people that really understand C Sharp or that really understand Java. So I had to keep the backend PowerShell so that I actually motivate people to contribute. Also, a system administrator can go through the code and be like,
SPEAKER_03hey, I know this PowerShell script. This does exactly what I want it to do. So that's one of the reasons I said, yeah, PowerShell is always going to be our backend. I want it accessible for system administrators and I want them to have fun with it.
SPEAKER_02Nice. Yeah. And that's, PowerShell is in that way, it's like the Lego toy for us, right?
SPEAKER_03We can put together things and spend hours on it. And it's so much fun.
SPEAKER_02I feel SIP can even be used by enterprises and others to manage, you know, they have lots of tenants. So I think SIP can fit in.
SPEAKER_03Yeah, we have a couple of enterprises. Disney is one of them. And they said like, we can publicly name them and we can advertise with them because they just love the software so much. So yeah, like Disney has many tenants for some reason, probably because like they did acquisitions and like have the studios and that kind of stuff, but they have many tenants they manage. And they said like, hey, we use SIPP to manage these.
SPEAKER_02So we were talking about this, right? Like in one of our conversations about, you know, the approaches we took and how to go about it and the architecture. I think this is for ISVs, but also enterprise admins and people in general, there are many things that That they can learn from you. I've been asked even when I was at Microsoft to review various companies and I've gone in and looked at some of how the ISVs. So what is an ISV, Kelvin? We keep hearing the term, right?
SPEAKER_02ISV. What is an ISV?
SPEAKER_03An ISV is an independent software vendor, so a person that creates applications for you and supplies them in a SaaS way or maybe a self-hosted way in your own Azure, but it's just software created independently from Microsoft. They're using probably Microsoft APIs or they're using Entra as their IDP backend, but it's completely independent from Microsoft. That's- Yeah,
SPEAKER_02so yeah, if you buy any software product like Salesforce, SuccessFactors, ServiceNow, Workday, They all in general call ISVs, right? They are independent software vendors, right? So your SIP cyber solution, the SIP from CyberDrain is one, Maester Cloud is another. And there are like, anyone whose software you use, whether it's open source or you are paid one, they all, Independent software vendors, ISVs, right?
SPEAKER_02Most of these companies that are building solutions, their whole focus is the business, right? They need to get their business up and running. They need to have revenue coming in. So security is sort of like the thing that they have to do. Yes. Yeah. It's what they do right at the end before they go, go live and launch something like that. And I've seen examples, like there's one I distinctly remember. They had so many customers, like it was very enterprise scale, millions of dollars in sales.
SPEAKER_02And they had like 50, 60 different customers. They had built a portal that they would all sign in and all of that. And they were running on their corporate Entra ID tenant. So every user, every customer of theirs was given logins and each of them had a login in the corporate tenant and it was insane. So like one customer signed in, if they went to the Entra portal, they could see all the other users and all of the other customers of the company.
SPEAKER_02So I told them, look, you need to fix this. But they like within a month or two, they had moved over away from having that tenant into a different one.
SPEAKER_03That sounds so horrifying. But like you were saying, there's a lot of mistakes that people can make. We see this a lot in... This is a good one for generic ISVs. If you're working at an ISV and you're listening right now, Look around at your landscape. Look at how things are developed. Look at how things are currently flowing through data. One of the biggest things that I see is, and I don't want to say that this is a mistake per se, it's just explained poorly at times to ISVs. But what I see a lot is that there's one multi-tenant app that's created in
SPEAKER_03a central tenant somewhere. And that one multi-tenant app is used for every single customer. And in the MSP space, that's extra dangerous because it's not just for that one single customer, it's also for every single customer that has GDAP under that customer. So the exposure just explodes so much. And you and I have talked about this in the past. How do you make sure that you limit that blast radius? How do you make sure that you don't end up with this huge growth
SPEAKER_03of having access everywhere with just a single enterprise app? There's a bunch of solutions to that, but let me take a quick step back because before I start explaining this, if you're listening to this and you're not aware of how enterprise apps work, this is a really good moment to just Enterprise app is an app registration that you create inside of your own tenant, and you make it available in multi-tenant mode. In multi-tenant mode, you have two options. You have the option to say it's only available You can send a consent link to another tenant.
SPEAKER_03That's just a link that you generate. Form your app registration creates a service principle in the other tenants. That service principle then allows the person that has the app registration to add credentials to the app registration and use that across all your tenants. That means credential management is located in one side, which is fantastic because you don't have a wild spread of credentials everywhere.
SPEAKER_03Now, the cool thing is that on the app registration itself, on the multi-tenant side, you have a lot of power to control the settings. You can say things like, when this app is deployed as an app registration, I forgot what the name is, Protected Resource, I believe the name is. They can't change credentials. They can't add credentials. They can't change settings of the app. They can't change these kinds of things. So you do have some control here. The biggest issue with setting one of those app registrations to multi-tenant mode is you can add it everywhere. And that immediately makes the blast radius so much higher because it means
SPEAKER_03if these credentials get leaked, this tenant is, in theory, compromised. And if they use DeendApp, all of the tenants behind that are compromised as well.
SPEAKER_02Yeah. So we also need to call out, right, if it's a multi-tenant app with delegate permissions, it's sort of a lot better. Let's take a simple example. If you have an app registration with an application permission of mail.send and It's a multi-tenant. Now you told your customers to consent to that one app, right? So they all consent, right? Let's say the worst example, they're using client secret. Now that secret leaks. Now the attacker can, they need to know which tenants are your customers, right?
SPEAKER_02But if they connect to the different customer tenants, they will then be able to send emails, right? Say whatever your app could do, Yeah, whatever app
SPEAKER_03permissions you have configured. If you have user.read, they could read all of your user directory data. If you have something a little bit more extreme, like Exchange Manage as App, they could manage all of your Exchange settings. If you have conditional access, they could lock you out of your tenants. Like there's a lot around that. And so if you're an ISV and you're listening right now and you're like, oh crap, we are using client credentials. And client credentials don't have to be just a secret. Client credentials are also certificates. Like that's still a risk.
SPEAKER_03That certificate gets leaked. And you have to remember as ISVs, often you have a group of developers developing the application. So these developers have that secret somewhere. They have to have access to it because they need to make sure that something is working. So even if you secure that to the absolute maximum, the certificate is floating around or the secret is floating around across places. And that means that someone leaves. You actually have to re-roll the secret. Very few ISVs do that.
SPEAKER_02Yeah, that's a good, really good point, right? I remember making the same mistake when I first created apps in the company I worked in. I set it to 2099, 2000. So it's going to live like long after I'm dead and my kids are dead. That if they don't do anything, the secret will still live. And every person in that company, if I had taken a copy of that secret, I would now have access into that company's emails. So Microsoft did a lot.
SPEAKER_02In the UX, they even don't allow anymore. But if you use the API, you can still set it. Yeah.
SPEAKER_03If you use the API, you can create a certificate that's still valid until the year 3000. So
SPEAKER_02don't do that. And I've been building master cloud with the AI and the agent and every step of the way, even though the instructions are there in the agent, like MDI file have said, it should be like no secrets. It would be like, Oh, I've finished this feature. And then. I put Key Vault and I put the secret in there. And I was like, why? Why did we do this? Why are you doing this?
SPEAKER_03We told you not to. Yeah. It's also because AI is trained a lot on like the bad examples, the bad examples. And that's simply it. So if you're an IZ right now and you're listening like, oh, wow, we're doing it this way, there's better ways. Manage identity is a good solution to prevent having secrets. But the issue with that is that you can't always use the same app. And this is also actually, Let's talk about Blast Radius for a second. We talked about it before. One app, all those tenants. One app, all those tenants, plus their subtenants if you're using GDAP.
SPEAKER_03This app is dangerous, period. This single app is a dangerous situation. You want to avoid this as an ISV. If you're caring anything about security and you're using one central app, you're not really caring about security. You're saying, I'm choosing convenience. And that's okay. That's okay. But understand that that is your choice at that point. However, there's a better solution, an easier solution even. With all of the changes that Microsoft has been making over time, it is very easy to create an app per tenant that you manage.
SPEAKER_03And that prevents getting all these rogue apps because either you create It makes it a lot easier to manage over time because you only have authentication living inside of the tenants that you're trying to manage. You don't have authentication living elsewhere. And sure, there's a little bit of development effort that you have to stick into that. You have to create a new app each time. You have to manage that app as well.
SPEAKER_03We have to manage its manifest for permissions and these kinds of things. But the trade-off is that the blast radius becomes one tenant instead of every one of my clients gets hit if something goes wrong.
SPEAKER_02I think we should talk about both, right? Be a devil's advocate. Like I would say from looking at it from the other side, I'm building a scaled out multi like tenant SaaS solution. Now for me to switch my app between like different identities, It's very complex, right? I need to write a lot of code. I need to load it into different instances and I might scale it. I need to scale it out into different environments or containers, right? So on that's the one side,
SPEAKER_02you have all those different issues, but by going with the approach that you just said, right? They have to re-architect the application itself.
SPEAKER_03It sounds like re-architecting, but in reality, it's all you're doing different is saving an app and saving a secret or saving a managed identity in a different method. So it just is, yeah, it changes the scale a little bit, but it's worth the trade-off. And that's what you should keep in mind. It's worth the trade-off in regards to security. And that's what we really want to achieve for everyone. Everyone should be a little bit more secure because we've seen this happen.
SPEAKER_03Huntress did a really good research. If you Google Huntress rogue apps, they've done a really good deep dive on some of these apps actually getting compromised. And some of these apps that got compromised were actually really large companies, companies that created file sharing services or companies that created other services such as calendar syncing, I believe. Their credentials got compromised and they're now known as a rogue app because attackers are using this app That's a scary thought.
SPEAKER_03Imagine that you're, you end up in a list that is known being hacked, like as a company that is horrifying.
SPEAKER_02Yes. And it gets shared and sold and like many attackers have access into their tenant. And unless you're really looking at the logs and it's very hard to tell the difference between your own app and your company, people using it. And if you're getting it from an IaaS You don't even know, right? Like the ISPs, IPs, et cetera, might change. You are just using a service from them. It could come from a different region, but it could be, you would assume it's the ISPs. Yeah, exactly.
SPEAKER_03You'd be like, oh, the ISV changed the region or the ISV is now deploying something else or they're building a new feature for me. And I love that. That's cool. But in reality, it could be a hacker is exfiltrating your data without knowing. Without you knowing, because it just looks like the ISV's traffic. So yeah, that is one of the things that, it scares me a lot, the world that we live in right now, because things are so untransparent. You can't see if it's an ISV or if it's someone else.
SPEAKER_03And when the app is in your own tenant and you manage the credentials, you're like, wait a minute, I haven't done this, or my ISV hasn't changed these permissions. I haven't clicked the button to do this. You immediately know something is going on. And at that point you disable the app registration and you're done. You just hit the disable button in Entra and you're safe again. And in the case of an ISV, it might be a day before they figure out or two days before they figure out and they have to hit disable instead of you. So yeah,
SPEAKER_03it's also that a little bit of extra control that you get as the owner of your tenant instead of the user of software.
SPEAKER_00Quick break. Kelvin's right. When the app lives in your own tenant, you can hit disable. But first, you need to know it's there. Multi-tenant apps with powerful permissions. Client secrets and certificates that live for years. Maester, the free open-source security test framework for Microsoft 365, helps you find them. It checks for long-lived app certificates, credentials about to expire, privileged permissions nobody uses, and whether app management policies are turned on. Maester Cloud takes it further.
SPEAKER_00It monitors your tenants continuously, running your tests on a schedule and alerting you the moment something changes. Assign each failed test to the person who owns it and track the work until it's fixed. Every tenant in one place. Try the live demo at Maester.Cloud.
SPEAKER_02And with this, right, so there is the workload ID conditional access policy, right? And you can apply the policy. But the limitation there is it only works if the app is created in your own tenant. If it's a SaaS vendors app that you onboard, you cannot apply a CA policy on them to say, look, give me your IP range and I'll just only allow traffic from your range. There's no way to do that work. The only option is then to monitor your logs and set up alerts so that if you see it
SPEAKER_02from somewhere else, then you erase it with the ISV. So sometimes you can't use managed identities for everything. If you are running a SaaS solution and you're reaching into a customer's tenant into Graph and you need to sign into their tenant, it needs to be in the same Entra ID tenant when you're using managed identities. Sometimes you do have to use client credentials and There's a neat thing, right, which I think many people don't know, and devs don't even realize it, right? There's a secret to, you can do something like, say,
SPEAKER_02for SIP, how long did you say your cert for the places where you have to use a cert? Our certs are valid for a month, but they cycle
SPEAKER_03every two weeks on purpose. Perfect, right? So this one, if you were, yeah.
SPEAKER_02This is a standard, like what you said, right? Certs are valid only for 30 days, but you recycle them every two weeks. And this is for like just plain standard certificates that are in an Entra registration, right? And it works without any extra permission.
SPEAKER_03Yeah, exactly. The entire auto-rotation makes this so much easier on the development side because once you start using it, you're like, okay, you know what? My app is managing its own certificate. I don't have to worry about it any longer. And it doesn't really matter where you store the certificate at that point. If it's in your key vault, if it's on your developer's workstation, if it's anywhere, you just know it's very short-lived and you can decide how short-lived that is. I've actually seen someone recently make a A five-day certificate, something like that, a work week, and have it auto-cycle?
SPEAKER_03Because they were like, yeah, you know what? It can auto-cycle anyway, and the app is running. It's there. So why would you want to see that certificate? What do you need to do? So how does it work?
SPEAKER_02How does it work? Can you dig into that a little bit? Like some developer comes and asks me for an app, and he's telling me I need these permissions, mail.send, and user.readwrite, and a few different things. How do I, as an IT admin, tell them, look, I'm going to give you only a search that's valid for 30 days, right? And after that, don't come to me ever again. You are going to be managing the search and I'm not going
SPEAKER_02to give you any additional permissions like app read, write or to manage the app that I'm giving you.
SPEAKER_03Yeah. Yeah. So, so there's two ways to approach this. Way number one, no longer advised, but still possible. You can give your application application dot rewrite permissions. Don't do this anymore. Don't do this anymore. But in theory, it means it can manage its own certificates. It also means that anyone that has access to your app can generate their own credentials at any time they want, so don't do this. The other one is certificate rotation.
SPEAKER_03And certificate rotation simply means that using the certificate that you actively have, it is able to generate a new certificate in validating the old one. So it simply is a constantly rolling sequence of certificates. That's pretty much what it is.
SPEAKER_02Yeah. So if you want to a mental model, this is like giving a user a password and they can do a self-service password reset, right? So the same way, You have an app, you give it a credential. It can create a new credential and it can use that and it can set, you know, another 30 days for that expiry. And you can apply app management policy as an admin and say, these apps can only get a 30 day maximum cert that they can get is 30 days.
SPEAKER_02So if you apply the policy, then without any additional permissions, The app can do it.
SPEAKER_03And in reality, all it's doing is running the add key thing, but it's only allowed to add one key at a time. So that's the way that it prevents that you suddenly have a wild growth of a lot of different things. And also very important to know that Once you're setting this up as an ISV or as an enterprise, but you yourself can change these settings very easily. You can say which apps are included, which apps are excluded. The moment that you create an app that has a high level of permissions, immediately go into your app policies and say, you know what?
SPEAKER_03We're no longer going to allow client secrets. We're only going to allow certificates because that already fixes a lot of issues around expiry management of credentials.
SPEAKER_02Ideally, don't even allow any client credential, right? Just managed ideas.
SPEAKER_03Just don't allow it. Just don't. It's no longer needed. Managing certificates was hard 10 years ago. Managing certificates is not hard these days. It's just the same as a client credential. It's just a little bit more secure. And I'm saying a little bit because there is a better option. Managed identity will always be the better option. If you're able to use managed identity, do it. As soon as you go multi-tenant, manager entry becomes very complex. I want to say almost unrealistic to implement at this point. And we hope that in the future that becomes better because when that becomes better
SPEAKER_03for multi-tenant, everyone should immediately move over there. That should be the way you look at things. Like this is a stop gap. The certificate is a stop gap. If you're listening to this and you're worried like, oh my God, I'm doing everything wrong. I'm still using client credentials or I'm using certificates, but I have one big app living somewhere. Don't worry. It's not that you're doing anything wrong. No one is seeing this as you're being malicious. It's just there are better ways. And the primary thing that I think that we're trying to do here
SPEAKER_03with this podcast right now is to educate people on there is a better way. And yes, that little bit of effort that you have to put into it is worth a lot more in the long term.
SPEAKER_02There is one other tip that I would like to share. What I do and what Kelvin does and even Microsoft itself does is if you're having apps, it's in a different Entra ID tenant, which is sort of completely locked down. It's not in your corporate tenant, like if you are creating the multi-tenant app. So there is a completely different tenant because for me, It's like, if I invite guests, et cetera, they come into my corporate tenant. And if the corporate tenant is compromised, they can still have access to,
SPEAKER_02you know, a bigger blast radius if they have access to your app. And that's adding certs. At Microsoft also, it was similar, right? With Midnight Blizzard. The attackers got access to the corporate tenant, but because Microsoft has like a big wall and there's a different tenant for all of the apps that we consent to in our tenants, so there's no cross between the corporate tenant and the tenant where the customer data and the apps live, it's secured that way. But if you're a smaller company, it's very hard to have like,
SPEAKER_02just to secure one tenant, And then now if you have two tenants, it's going to be even more harder, more things you need to keep an eye on, monitor, et cetera, all those things are there. But if you are an ISV, that is one thing that you might want to look at.
SPEAKER_03Yeah, yeah, absolutely. The tenant split is super important. And also consider all of your tenants as sensitive as possible. Like make sure you have very tight conditional access policies. Merill recently released a fantastic thing about GSA. Make sure all of your users use that if you're an ISV. Make sure you enforce compliant devices. Make sure that you dedicate your time to creating a security baseline for all of your tenants in the exact same way.
SPEAKER_03Say like our corporate tenant is protected with these heavyset policies and people might find it a little bit annoying, but we're securing this in the same way that we do our tenant where our apps live and the tenant where we have created everything or where our Azure environment is also separate those out. If you have an Azure environment, that should be one tenant. If you have an app that you deploy to people, that should be one tenant. Then your corporate tenant is separate. Don't mix all of them into one glove because long-term that's going to be
SPEAKER_03a painful experience for you.
SPEAKER_02Yes, yeah. And it's very hard later on, right? If it's a corporate tenant and you created a multi-tenant app and you have hundreds, thousands of customers using that multi-tenant app, If you decide, oh, I'm going to use a different tenant, Entra.D.Tenant that is completely locked down. Now you can't move your app from one tenant to another. It's impossible to do. So you will need to create a new one. So if you can, when you're starting out, try to come up with this architecture and design and set it up that way.
SPEAKER_02But it does get complicated. Like for my small SaaS solution, do you want to guess how many tenants I have?
SPEAKER_03I want to say that you're at a thousand tenants.
SPEAKER_02So I have seven Entra ID tenants. That's also because I have a dev, like my tenants, I have a dev test and a prod. So I do my development and then I push the changes. So I have a dev test and a prod. So that's three. And then I have Entra external ID as well. So that's a different consumer tenant. Like it's another three tenants like that server. There's a lot going on there, but I wanted to like do it the right way so I can share some of these things.
SPEAKER_03Yeah. Thing is that I've always believed in sharing everything that I've learned along the way with anyone that is willing to listen, because I know how much I butted my head against this type of stuff. Like I know how painful the experience was and I don't want that But for anyone else, and it's better to take the pain a little bit earlier than do it after, like you got hacked or something like that. I love the entire, let's share everything. Let's make sure that people do it right.
SPEAKER_03Especially because I don't want to have people think like, oh yeah, I'm listening to this podcast, but it's just a couple of talking heads. No, we've lived this. We've lived this and we've felt the pain and we're trying to save you from that.
SPEAKER_02Absolutely. Like so many people now can build an app. The barrier to building apps is like going away, right? So everyone can build, but knowing how to build it the right way is the hard thing. Like for me, Maester, I've been building this for like three months. A whole chunk of the first two months, I didn't really build much features. I was like setting the foundation up, like what I'm doing today in the two, three months, I would have had to have at least a five person team if there was no AI to do
SPEAKER_02the different tasks.
SPEAKER_03Yeah, absolutely. And it's also, you're talking about this foundation and don't underestimate how much you have to think about that. Because one of the things that I've done at the very start was underestimate this and just be like, you know what, I'm just gonna build, I'm just gonna build, I'm just gonna build. And then you are creating roadblocks for your future self to do anything. So really take some time, sit down, Talk to AI, like Merill said, talk to AI and actually try to get ideas on how your foundation should look
SPEAKER_03before you start building. Get a general landscape idea. And I'm not saying super zoomed in, oh, this is going to be my landing zone and this is going, that you don't need that immediately. You will need it later on. You don't need it immediately. Just try to think before you build anything.
SPEAKER_02A hundred percent. Yeah. So this is sort of like the start of a series I think we want to have about ISVs. And I think these conversations help both ways for enterprise devs to know how ISVs do things and what challenges they have. And also for ISVs to do things and implement them the right way, which because they are focused on the problem space, it might be the last thing that they try to think of or implement.
SPEAKER_03Yeah, exactly. It's security is more like, oh, it has to be done now and we're about to release and then you drop things.
SPEAKER_02Or the pen test they do before they go live, et cetera, they get the pen test done for SOC 2 or the ISO and then the test comes back and that's when They have to just go and fix this all in two weeks' time. You're given a list.
SPEAKER_03You have a week, we're going to release. You have to fix this.
SPEAKER_02You have to fix this.
SPEAKER_03Yeah, that's also one of them. Actually, I have a lot of pet peeves about those types of pentests. A lot of people do infrastructure pentests and then they go like, oh yeah, we're really secure, but the code hasn't been tested at all. And then I'm like, hold on a second. The app is the one that's dangerous here, not the infrastructure. The infrastructure is probably a cloud provider. That's going to be fine. There's a lot of thought that already went into that.
SPEAKER_02Yeah. And I've seen those where they go like, oh, I can see this setting and I can see that. And it's just like it shares the version number of what is running and you had to go fix it. Whereas you could be doing the things we were talking about today, right? You have an app with really high permissions and you are just using client secrets and people have been emailing the secret around and what you use for dev is what you are using in prod. Like it could be that state, but that you can never see it in a pen test. It will never come out.
SPEAKER_03Yeah. Yeah. It just won't come up. Yeah.
SPEAKER_02Cool. Kevin, any closing thoughts before we wind up?
SPEAKER_03If you learned anything from today, make sure that you are not just, I don't want to put fear in you. That's what I want to give you all as a closing thought. I don't want you to be like, oh no, God, we have to change everything now. You're probably doing a lot of things right already. Don't be scared. It's just, you can do better. And if you can do better, you know about it and then you should do better. It's an evolution. Five years ago, That's my closing thoughts around all of this. That's an amazing thing, right? And me admitting on this podcast that I created a secret which would live for
SPEAKER_03a hundred years, right? Like me, but I did that in 2016, right?
SPEAKER_02When I had used Azure AD, I had no clue what I was doing. I was like, I don't want to know what I was doing. I want to keep going to this Entra team to keep asking them for like new secrets all the time. So let me do it. And the Entra team didn't do any better, but we learned, right? So we learn over time and then we are like, okay. And that's a journey that all of us take.
SPEAKER_02And I really love that. You don't need to be perfect from day one. You just keep on doing better the next day than you did the previous day.
SPEAKER_02Awesome. That's so inspiring. Thanks so much, Kelvin. And yeah, we'll definitely have you on more to talk about lots more things in the ISP space and in the app space.
SPEAKER_03There's so much nerdy stuff to talk about. I'm pretty sure we'll find a million subjects.
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 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...
A phished and stolen refresh token is one of the most useful things an attacker can take from your tenant. It is a long-term artifact, which is why so many phishing attempts go after it. Alex Pavlovsky’s answer to that...