Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

Entra.Chat

Entra.Chat artwork

Active Directory Security Testing in Maester 2.2

Sep 17, 202637 minAudioEpisode 75
ShareXLinkedInFacebookWhatsAppEmail

Active Directory is not dead. It is nearly thirty years old, Microsoft is still shipping new capabilities and new telemetry for it, and most of the forests running today will outlive the people currently administering them. What has changed is that you can now test it the same way you test your cloud tenant. Maester, the open-source PowerShell testing framework, added Active Directory coverage: 269 opt-in checks across 19 areas, from users, groups, computers and service principal names through GPO state, DACLs, DNS, trusts, replication and schema. They run against your domain, not your tenant, and they are off unless you explicitly connect to Active Directory. Mike Soule, who wrote and validated that test suite, and Sam Erde, Microsoft MVP and author of DLLPickle, join Merill at HIP Conf in Nashville to go through what the tests cover, how to run them safely, and where the project is heading. Sponsored by: Is Each App in Entra ID Still Worth Governing? App registrations and enterprise applications accumulate. Owners change. Projects and pilots end. Credentials linger. And stale or unused apps and their permissions can continue adding risk and governance overhead long after their purpose is gone. ENow App Governance Accelerator helps you understand what’s in your Entra ID application estate, who owns it, which apps, permissions, and credentials need attention, and what can safely be cleaned up to reduce your attack surface on a continuous basis as your tenant grows and changes. Get the visibility and automated workflows you need to investigate application lifecycles at scale, clear out stale apps, and stop wasting time governing applications that shouldn’t still be there in the first place. Operational health is not the same as a security finding The design decision that makes these tests usable is the split between operational patterns and security controls. Six groups nested in a row is not a vulnerability. Nesting is an intentional, functional capability. It is also nearly impossible to reason about when you are trying to work out where a permission actually comes from, and that is how incidents happen. So not every test is pass/fail. Some exist to be investigated and monitored, and Maester’s tagging lets you baseline them and watch whether an anti-pattern is spreading or receding over time. The underlying guidance is a blend: years of health checks across dozens of forests, community research from teams like Semperis and SpecterOps, and Microsoft’s own documentation - which, for a product people keep declaring dead, is currently some of the best documentation and logging Microsoft ships. The new NTLM auditing in Windows Server is the example: the who, the why and the where of every NTLM authentication, instead of replaying events and correlating them yourself. Maester is not trying to replace the likes of PingCastle, Purple Knight or Locksmith. Those tools offer real value, and the conversation now is about bringing those perspectives into one central platform. The permissions you actually need Everything the AD tests do is read-only. A plain domain user gets a surprising amount, because a directory is built to be readable - you will simply get a subset of the tests. The full set needs tier-zero read access, because some tests reach objects in the configuration container. In a tiered environment, that means running as a tier-zero admin from a privileged admin workstation. Interactively, there is nothing to set up beyond line of sight to a domain controller, the ActiveDirectory module and PowerShell. The AD tests are excluded by default and have to be requested by tag. For automation, run a local runner, or give a container runtime a path back to a domain controller. Today the tests run as the logged-in user’s domain credentials; alternate credentials and group managed service accounts are on the road map. Tiering, ESAE and the enterprise access model There are no explicit tiering tests yet, but they are coming now that Microsoft has published implementation guidance. The history is worth knowing. ESAE - the Enhanced Security Admin Environment, the red forest - solved a real problem: inside Active Directory, a domain admin is trusted implicitly, so the source of authority needs to sit somewhere that is not self-referential. A separate management forest achieves that, at a cost in operational complexity that most organisations could not sustain. Microsoft has since moved to the enterprise access model, and in practice most teams landed in the middle: tiering based on access control, with tier zero for core identity infrastructure, tier one for servers, databases and applications, and tier two for workstations and the workforce. The advice is not all-or-nothing. Any amount of effort you put into tiering is a good investment. Where Maester helps is codifying Microsoft’s recommended implementation as tests you can actually check yourself against, including the DACL and inheritance anti-patterns that accumulate through ordinary operations. What is coming next The dependency on the ActiveDirectory PowerShell module is on its way out. Almost all of this work is LDAP-level, so a .NET-based approach covers the vast majority of tests with no module dependency - which opens up Linux, macOS and non-domain-joined machines. Multi-domain aggregation is in progress; today a run covers a single domain at a time. And Maester 3 is being planned around a new engine for the built-in tests, with multi-threading and parallel execution, licensing handled centrally instead of inside every test, and Pester retained for backward compatibility and custom tests. Subscribe with your favorite podcast player or watch on YouTube About Michael Soule Mike Soule is a Maester co-maintainer and National Director of Enterprise Architecture at Sentinel Technologies, where he works with enterprise customers on identity, cloud and security. He wrote and validated the Active Directory test suite that shipped in Maester 2.2 - 269 opt-in checks across 19 areas - and has been the project’s leading test contributor since the night after Maester’s launch talk at the PowerShell Conference, when he turned up the next morning with roughly thirty CISA tests already written. LinkedIn - https://www.linkedin.com/in/mikesoule/ GitHub - https://github.com/soulemike About Sam Erde Sam Erde is a Maester co-maintainer and a Microsoft MVP, working at Patriot Consulting. He has spent more than twenty years in PowerShell, Active Directory, Group Policy, Exchange and Microsoft 365, contributes to open-source defensive tooling including Locksmith, and wrote DLLPickle, the module that gets you out of assembly version conflicts when several Microsoft modules are loaded in one session. LinkedIn - https://www.linkedin.com/in/samerde/ GitHub - https://github.com/SamErde Related Links * Maester - open-source PowerShell test automation for Microsoft 365, Entra and now Active Directory (mentioned at 00:21) - https://maester.dev * Introducing Maester 2.2 - the release that added 269 opt-in Active Directory checks across 19 areas (mentioned at 04:50) - https://maester.dev/blog/maester-2-2/ * Active Directory security testing in Maester - what the tests cover and how to run them (mentioned at 04:50) - https://maester.dev/blog/active-directory-security-testing/ * Maester on GitHub - source, tests and contribution guide (mentioned at 03:44) - https://github.com/maester365/maester * Locksmith - Jake Hildreth’s AD CS assessment and remediation tool (mentioned at 05:11) - https://github.com/jakehildreth/Locksmith * NTLM auditing enhancements in Windows 11 24H2 and Windows Server 2025 (mentioned at 09:53) - https://support.microsoft.com/en-us/topic/overview-of-ntlm-auditing-enhancements-in-windows-11-version-24h2-and-windows-server-2025-b7ead732-6fc5-46a3-a943-27a4571d9e7b * AD DS tier model for privileged access security (mentioned at 24:47) - https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/tier-model * Securing privileged access - the enterprise access model … 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.

[music]

SPEAKER_03Hey folks, welcome to another episode of Entra Chat. And today we're going to be talking about Maester 2.0. The release has been out for a while, but there are lots of new things in there that we never did an episode on. And for the first time, we have Michael Sowell with us on Entra Chat. He's one of our co-mainteners in the team. So welcome to Entra Chat, Mike and Sam. Yeah, let's get into it.

SPEAKER_02Question for you, Mike. Is Active Directory really dead?

SPEAKER_01Depends who you ask. I mean, we just saw Mickey's keynote at HipConf this year where he emphatically clarified, no, it's not. It is persistent. It is necessary. There are use cases that are fully valid that will be valid for years to come. So it may be limited in its desire for net new use cases, but there are proven patterns where it's valid.

SPEAKER_02Thanks for the applause on that one. Tech Spence, get ready for that debate here.

SPEAKER_01Yeah, get your gloves ready and Merill's gonna bring it.

SPEAKER_03Yeah, so for, if you're wondering what the HIP is, we are in Nashville at the Hybrid Identity Protection Conference and Sam and I and Michael, we are talking about Maester.

SPEAKER_01Michael's also doing a session on- Yeah, I'm doing a session on just an identity maturity model and different ways for an organization to implement different identity practices at scale. Nice, nice.

SPEAKER_03So for those who don't know, the history with Meister is Fabian and I worked on it on Meister for about six months. Then we released it at the PowerShell conference. The video is on the Meister website as well. And he just made a few samples to showcase how you can write tests in Meister. But then the next day, Michael comes up to me. He was in the first session. The next day he comes up and he has this whole bunch of like 30 on Seesaw. Tests all written and working and like blew me away.

SPEAKER_03And Maester is what it is today with all like 400 odd tests. It's all thanks to Michael. So like, you know, we all owe Michael gratitude for being that, right? Like on the very first day, it was so exciting to see that. And we added those tests in and then that just started the ball rolling on. And all of that, like, so tell, like, what did you think when you first heard about Meister and what made you write those tests overnight on a conference evening?

SPEAKER_01Yeah, I will say you probably gave me more credit than deserved, but it was a problem that I've fought with myself a lot. And I'm like, there needs to be a tool. There needs to be a process. We need some solution to this. And I think I even asked you after that talk of like, Why isn't this being solved at the time you were with Microsoft by Microsoft? And plenty of reasons that didn't happen. But Maester was that platform, that solution where it's just a test is what you want it to be.

SPEAKER_01You can build a test for what you need and what you want to be able to monitor and manage and secure. And that's exactly what I was looking for. And I'm like, done. And this was before

SPEAKER_03AI, right? This was like three years ago, no AI and Michael went and instead of going out and hanging out with everyone, he was like writing PowerShell. I mean, it was a PowerShell conference. We have a new page on the Maester site, which says all the contributors for tests. I think Michael is at number one, like none of us can beat him. He has like...

SPEAKER_01I just import a bunch of tests from other projects with the right attribution. There's plenty of people out there who have done all the work and giving a common platform was one of the things that I saw of like, hey, like these tests, if more people knew about them, more people would get the value of them. And pretty much every supporter, every contributor to an open source project has been like, yeah, of course we want more visibility. We want these things to be adopted.

SPEAKER_03Yeah, and so today we're at, what, 140, 50 odd contributors? I think it's around 130. Yeah, and how many downloads?

SPEAKER_02Over 600,000. 600,000.

SPEAKER_03That was a couple

SPEAKER_02weeks ago.

SPEAKER_03Yeah, so maybe early next year we might be at one billion downloads. One million downloads. If your agents get a hand on it, they'll just be downloading.

SPEAKER_01Yeah.

SPEAKER_03So, Mates to 2.0, one of the big things was Active Directory tests that Michael wrote. So, I think in this episode, we're just going to dig a bit more into those tests. Yeah, Michael started to start things off. How do you compare what we have in Maester with, like, there are some amazing tools, right? We have Locksmith, Jake. Jake's here at the conference here with us as well and presenting Locksmiths by Jake from Sempress.

SPEAKER_03We have Pink Castle, we have Testimo and there's, I think, Purple Knight. There are lots of different tools. So how does, how do the Maester tests compare?

SPEAKER_01Yeah, so the initial tests, and I say initial because there's going to be more, right? AD's not dead, we're going to find new ways to manage it and improve it. And even today, they're announcing updates that are going to give us more capabilities in on-prem AD next month, even, from the product team. So we definitely have things coming up that will help. Right now, the coverage, a lot of these tests, the concept behind the tests was about six years ago,

SPEAKER_01I'd say, was an analysis of a lot of the different tools in the market and just saying, hey, how do we take a lens on what these are doing and what are some of the common themes we're looking for when we do a health check? And so we were doing a few dozen tests of different AD forests and domains. And as you scale, you notice certain patterns. And this is sort of a benchmark of different operational patterns we'd see. There's some certain security tests, but at its core, it started with more operationally.

SPEAKER_01Are we running Active Directory in a good way? And then Pincastle, Testemo, Locksmith, all these other products are open source solutions. They offer a ton of value. And we've been having conversations similarly of like, how do we bring that into a single central platform with Maester? Jake's definitely on board from my conversations with him.

SPEAKER_02Tell us about the differences that you see as you built these tests between those operational controls and security controls. How would I distinguish between those and determine what a need to act on from these tests? Which ones are adding value just from a strict security assessment and which ones are adding value about how well AD is running, how healthy it's running and just areas of improvement?

SPEAKER_01Yeah, and so one of the pieces of feedback as it's been in preview is some of the tests are very pass-fail and one of the things we've been working on is deeper metadata around those tests of is this just something we should be investigating And monitoring more regularly, which were some tests that were tagging capabilities introduced to tests in Maester a while back. And so that ability to sort of flag things as a baseline and be able to monitor that over time to see if the anti-pattern is becoming more prevalent or you're working

SPEAKER_01to have that anti-pattern be less prevalent. And an example like that would just be group nesting in Active Directory, right? Inherently it's functional, it is an intentional capability, but if you have four, five, six groups nested in a row, it's really hard to figure out, okay, which group is the actual permission set assigned to. And so inherently that's not necessarily a security vulnerability, but operationally it makes it really hard and can cause security incidents just by

SPEAKER_01the nature of having that sort of anti-pattern in place.

SPEAKER_02Yes, that's good. So what are we using as our source of truth for these patterns, for these best practices and rules? Is there a library or a resource that Mace are using to look at to sort of confirm for their internal teams what they're now benchmarking their Active Directory environment against?

SPEAKER_01Yeah, and that's something we definitely look towards the community for, right? So feedback, analysis, new tests, new perspectives. A lot of this is based on some of the guidance that's been out there. There's a ton of research from different teams like Semperis and SpecterOps and others around good practices for Active Directory management. And one of the things too is Microsoft actually has tons of documentation On AD,

SPEAKER_01and there's been books for years, and they're even adding new documentation. So for a product that people are questioning, is it dead, right? We're getting some of the best documentation of any Microsoft product right now for a nearly 30 year old product. Yeah, I was just in the session earlier. I wish we had more docs like that for other products. Yeah, and it's around NTLM and... If you've ever gone through trying to remove an authentication protocol like NTLM out of your environment,

SPEAKER_01it's a lot of work, but they're literally adding new capabilities to the Windows Server operating systems now to give you better visibility and troubleshooting. And even talking with Steve, he's like, yeah, these are the things that I would have to fight with and correlate myself when he was troubleshooting. That he's like, this should just be a log. We shouldn't make you have to replay events to get the right telemetry. It should just give you the log that you need. And that type of stuff is so invaluable.

SPEAKER_03Let's take a quick pause to talk about AppGub Score from E-Now Software, our sponsor for this week. If manually managing risky apps in Entra.id feels overwhelming, this free tool gives you instant visibility into your app risk profile. In minutes, you'll get a benchmark score and insights across 24 key checks, plus a free seven-day upgrade to identify specific governance gaps to take action on immediately. So take the stress out of keeping Entra secure, visit appgubscore.com and click try for free.

SPEAKER_03That's appgubscore.com. And now back to the show.

SPEAKER_02So how do I run this Active Directory test if I'm using Maestro already to assess Maybe Microsoft 365 and GitHub and Azure DevOps, everything else. What's my play now to assess Active Directory? Because I might be running this on-prem or I might be running it from a pipeline. And am I going to have to fight with security policies to get this set up and running against AD?

SPEAKER_01Yeah, good question. So it is today, interactively, you can just run it in a PowerShell session. If you've got line of sight to a domain controller, if you've got the Active Directory module installed and PowerShell available, you can run this against one domain, multiple domains, everything in a forest. So today, interactive is really easy. If you wanted to... What's the permission you need on the... Yeah. So pretty much everything is read only. So typically AD least privilege is really hard, but- Doesn't take so long.

SPEAKER_01Yeah. Yeah, you either built it or you don't have it. So if you are in an environment with tiering, like to get all of the test information, you would need some tier zero distinguished name endpoints. So there are objects within like the configuration container where it's going to dig in and it's going to be reading those objects. So you can run it with a low privileged user, just a regular domain user. You'll just get a subset of tests, some of the more analytical tests,

SPEAKER_01because Active Directory in its nature is a directory and we want directories to be available for the users. So it's actually surprising how much information a domain user can get. But long term, we are working on building out a better least privilege approach to that and really tying that down. Interactive domain user, but tier zero admin, typically for all the tests. And then when you actually want to automate that, yeah,

SPEAKER_01using a local runner or integrating something like WireGuard into your container runtime so that it can establish a connection back. You just need that line of sight to a domain controller, so. Yeah.

SPEAKER_03Yeah. So if you're just doing ad hoc, just running from your desktop, it's just usually invoke master run. It's not on by default, so you need to include the tag, right? Because not everyone has AD and there's no connection that we can create, unlike the rest of Graph. So you need to explicitly say you want to run the AD tests and then all the AD tests get executed.

SPEAKER_02So right now is there still dependency on the Active Directory PowerShell module or have you been able to shift that to just using maybe .NET calls through Type Accelerator or LDAP queries?

SPEAKER_01Yeah and that's something I've actually talked with Jake about in his second revision of Locksmith. He's moved away pretty much entirely from the Active Directory module so we were Discussing what that looks like. And almost all of this is just LDAP query level. So it is something that we have the opportunity to fully move away from that Active Directory module and ideally be just .NET based. And so how that works with multi-platform, as we get into non-LDAP protocols like SMB lookups and other things

SPEAKER_01that are AD adjacent, there's some other considerations. But at its core, we'll probably be able to get the vast majority of test coverage without any module dependency. Nice.

SPEAKER_02That's great. So theoretically, you'll be able to run it from Linux or macOS machines as well or non-domain joined systems.

SPEAKER_01Exactly. Yep. And that's a good call out today. It is going to run as the logged in user as the logged in domain credentials. So you can't specify, Hey, login for this session as this, but you're spot on. Eventually get it for multi-platform Mac OS Linux, and then also get it so that you don't, you can specify which credentials to run under and even things like group managed service accounts in the future.

SPEAKER_02Great.

SPEAKER_01So Merill, I'm thinking now,

SPEAKER_02if someone was to run maybe a full master assessment, all the out of the box ones aside from AD in one scan, and then the active directory assessment from another workstation maybe, or privileged admin workstation, what's your vision for how a team could take those two and kind of present them in one cohesive view? Is there something currently that you can merge those reports in?

SPEAKER_03Yeah. So today, Maester has, I forget the name, we had a contributor Add a new cmdlet to merge results. So it merges the results and you can get it into one HTML file. So you can have different runs and then you can run the merge command to bring them all into one. That's there today. And yeah, hopefully we'll have much better ways to make it much more easier because one of the things you're talking about is there are all these conflicts with

SPEAKER_03the commandlets and when you load Exchange and all of it into one session, you have that awesome DLL pickle partial module to try to remove some of that pain. So we could potentially think of even running some tests like the graph tests in one session and others in a different session and so on. Yeah, so some teasers about Maester 3 is we want to move to a new engine that can run the tests and take care of licensing and today we have all the licensing code

SPEAKER_03in every individual test. So we want to make the test much more And we can pull all of that into our own engine. So we used Pester for a long time and we do plan to keep Pester for backward compatibility and all the custom tests. But for the core engine, we want to do like multi-threading and parallel tests and make it run in Azure Functions and so on. So we're looking to do some changes to how those tests are written in the out-of-the-box one.

SPEAKER_03Something to look out for in the next quarter for Mr. 3.0. So with the scan, with AD, AD tenants can be big and they can be millions of objects depending on the size of your Active Directory. What are things people need to consider when running? Like if they just blindly run it, I'm sure you can bring down your AD,

SPEAKER_01right? It would be very unlikely for you to take down your AD unless you have performance problems already. So yeah, if you've already got known performance issues.

SPEAKER_03Yeah, if you're already running at like 30% of your CPU.

SPEAKER_01It will be a decent amount of LDAP calls and LDAP queries. So like it definitely does It isn't just, hey, it's really simple, it takes two seconds, especially as you scale to hundreds, thousands, tens of thousands of objects. The biggest challenge right now performance-wise is the PowerShell runtime itself caches everything in memory. And so when we get into an environment with, say,

SPEAKER_01a thousand objects, a thousand objects may actually still have 10 times the number of access control lists. And so we don't just have 10,000 or a thousand objects. We have 10,000 hash table entries to manage all that. And so over time, memory optimization for larger environments, that's on the roadmap. And then also being able to optimize that memory garbage collection within PowerShell. Because right now, if you are running against a large environment,

SPEAKER_01Unless you're just given tens of gigabytes of memory to the workstation you're running it from, you will definitely see PowerShell and its session tap out the memory and it could run for potentially hours depending on the size of your environment. So those performance optimizations will help with that, will make the caching and collection So it can be more descriptive of here's what I'm actually collecting, not just, oh, hey, I'm going to go do a cache poll and it's going to take me an hour

SPEAKER_01before I get any results. It'll be more per test. So lots of optimizations, performance is a known issue right now. So suffice it to say, please never run this directly on a domain controller, run this from a privileged workstation. But yeah, even if you're running it from that privileged workstation, you may want To target specific tests at this point and not allow the default cache population because right now the cache does populate everything for every tests on the first test run.

SPEAKER_01And so we can help you through that. It's with the preview set, it's functional, but we've even got people like Clayton Tiger who's already been digging into that and been doing some improvements around it, so. There's plenty of work to do and the value is just gonna keep improving.

SPEAKER_02Awesome. And I wanna ride on that too because I've run a few different security assessments on Active Directory Environments over the years and I did experience one event where I was Running a scan of just DNS records across an environment that had a couple hundred thousand objects and matching it with Active Directory. And so to speak to the point of not running this on domain controllers, this isn't just a best practice. It's not just a suggestion that's idealistic.

SPEAKER_02In that scenario, the tool that I was running was not tested or optimized for large environments. And so the machine that I was running it on After 18 hours, the job failed because it ran out of memory. If I had been doing that on a domain controller, I would have had a very bad day. The whole organization would have had a bad day, but that might have been a career limiting move. So don't do that. There's no need to run it on a domain controller. And that's the realistic reason why. And I like your call out too. You don't need to run it all in one shot.

SPEAKER_02Especially in a big environment, you know, you can choose to run certain AD tests in one batch and then use Maester's tag feature or the exclude features so that you are segmenting that one in different runs and then use the command to join those reports together. And you can have one report at the end, but split those runs separately so that you don't run into memory limitations or time constraints or whatever else might just cause that to be kind of a pain. So, yeah.

SPEAKER_01Yeah, and the other challenge with AD to emphasize that too is we joked a bit at the beginning that AD is practically 30 years old, but there are literally forests and domains out there that are 20 plus years old. So you have version history and upgrade history and technical depth. From potentially two or three employee generations before you. So AD can be a landmine just in the nature of the unique environments it lives in.

SPEAKER_01So definitely like, If you've got questions about how to run this effectively, safely, it's a community project. We wanna help you get that value. And one of the things that we're also adding is full end-to-end testing. Granted, that'll be net new environments. Don't solve some of the unique environment technical tests, but we'll at least be doing all tests against full multi-forest environments and being able to have that sort of end-to-end exposure of here's how the test worked, at least in a greenfield domain.

SPEAKER_02So is that something that's realistic right now to do a scan against a multi-domain or a multi-forest environment? Yeah, the challenge right now is it will do single domain at a time.

SPEAKER_01And so there's a contribution that we're currently working through of how to aggregate multiple runs. It harkens back to this sort of idea that Maester runs against a single tenant. And so when we To get into a multi-domain or even multi-forest architecture, what does that look like? Because that's now dozens of tenants depending on what organization structure looks like. And so there is some surgery behind the scenes if you're in

SPEAKER_01a multi-domain environment where you may have to piece JSONs together. Or bring them all into a single HTML report. But there's, because of the way it's structured, it's not challenging to get that single view, but individual right now, and then in the future, probably some automation to just bring them.

SPEAKER_02So we wanted to talk about testing for AD tiering models, which if you know it, you've seen it and sometimes it's not done at all. Sometimes it's partially done. It's not easy to do fully, but how can we check for that reliably with this? Or maybe can we monitor for any conceivable minimum viable products of tiering with this tool?

SPEAKER_03Yeah, what is tiering for those who are new to

SPEAKER_01it, who don't know what tiering means? Yeah, so tiering, there's multiple approaches. It's an opinionated topic, but Enhanced Security Administration Environment, ESAE, was a concept Microsoft released. Close to 10 years ago. And the premise is as we approach zero trust, how do we get a source of authority that's not self-reflecting? So within Active Directory, if I'm a domain admin, I'm trusted implicitly. So the entire concept was create a management forest.

SPEAKER_01The management forest is the source of trust. So Microsoft's moved to the Enterprise Access Model, EAM, and there's tons of guidance around that. A lot of people met in the middle ground of let's do tiering based on access control and different object levels where tier zero, tier one and tier two. So core identity infrastructure,

SPEAKER_01secured So databases, web servers, and then tier two being your workstation or your workforce. And those concepts are immensely valuable. Any amount of effort you put into using tiering is a good investment of time and effort. You don't have to go all the way to a management forest, but that is the intent, that is the core premise. And so when we look at that today, no, there aren't tiering tests explicitly.

SPEAKER_01Microsoft has recently released their guidance around tiering implementation, so are intents to bring those in, codify those as tests within Maester around their suggested implementation. Again, that may not be the exact right implementation. So circling back to this sort of investigate approach is some of these will be conceptually something you should consider for your environment of do we do this in a different way or do we need to do this at all?

SPEAKER_01And if we haven't even done it, if Tyrion's a brand new concept for you, Then here's the Microsoft guidance of their recommended implementation model. So making that content more accessible, making it more pertinent to here's one thing you can do to improve your security rather than, hey, go research this entire body of knowledge and hopefully you can get somewhere with it.

SPEAKER_03And do we have tests that pick up on those today in the questions?

SPEAKER_01Yeah, there's some tests today that look around. So a lot of the tiering concepts harken back to discretionary access control lists, the DACLs, which are on the objects themselves. So we do have some tests that look for legacy DACL and sort of inheritance models and some of the bad practices that can come up just in the ongoing operations of Active Directory, things happen. And so there are a few tests around that. That is one of the areas where there's the biggest performance impact.

SPEAKER_01So that is definitely an area that needs more improvement. And then the tiering itself, getting some codified logic of trying to do discovery of what is a tier zero group. And where are those access control entries applied?

SPEAKER_02So now people might be wondering, you said infrastructure and workloads a bunch of times in the past five minutes, Windows Server environments. And so there's things beyond Active Directory itself, like the DNS DNS server role, ADCS, any of those built-in roles in Windows Server could be really interesting opportunities for tests to be created around or maybe tests to be ported from other frameworks into a master test. So really cool opportunity for the community to contribute some of those. Maybe the core team might add some of those as well.

SPEAKER_02And we need to get some, I think, good examples of how we can tie in things that aren't using the Graph API. Or PowerShell modules, like our initial examples of how this can be done well in a on-prem infrastructure or even a hosted infrastructure. So Merill, what's your vision for some other examples of things that Maester might be a great fit for monitoring?

SPEAKER_03Yeah, so especially speaking about on-prem, there was one person who actually was building tests like he was building it in his own company and I was telling like you should share it. What he did is they have the SOE, right, the standard desktop environment that all the employees get and they push different policies to different people and The resulting set that's applied, like whether is it working, is it being applied, are things happening. So they configure Intune and they have tests for Intune. But what gets ultimately deployed depends on the group membership and all of that.

SPEAKER_03So they were doing this thing where he would build a VM every day fresh and then he would run master tests on the VM. So think of it like, you know, you have all the desktops, the things you want on the desktop are in the intended state. So that was a really cool one where just making sure that you didn't break something and because you wouldn't even know, right? You changed something into your own config and the resulting set, whether it breaks it or not, now you have a regression test of Yes, we can see this change.

SPEAKER_03We can see BitLocker being applied. We can see this and it's giving like a thing on the build status and you can have different combinations, right? Like the frontline worker profile, the retail teams profile and the different groups. And validating if those are coming through are really good ways to test if, you know, your config is being pushed out. So I thought that was unique. I don't think he has to share those, but if you think about it at the end of the day, the basic simple partial tests that you could build.

SPEAKER_01Yeah, one of the pet peeves in my use case for that has always been group

SPEAKER_02policy objects.

SPEAKER_01Extremely powerful technology, phenomenal technology. But at the end of the day, we utilize GPOs heavily for configuration management. But the problem is GPOs have no method of reporting the actual configuration state on the systems it applies to. So that would be a solution to that that would be amazing to see of just let's actually validate that our GPOs are applying the settings we expect them to rather than just blindly trusting.

SPEAKER_03And those are the unique things about Maester. There's nothing stopping you from doing that. You can just set up the right script and have it run and it'll just work.

SPEAKER_02That's a great example for Really thinking outside maybe the apparent box that it looks like Maester might fit into. Some might still say that that is beginning to be DSC adjacent, your desired state configuration type of checks. And we might be talking about something similar tomorrow morning, but what does that conversation look like if someone says, well, just use DSC on that machine or on those VMs? How does Maester support and add more information to that process?

SPEAKER_03Yeah, so like with Meister, you can come up with your own name. Like you can come up with a name for the test and it can be a combination of things it looks at as opposed to just some state or a few attributes. And I think even when I was building Meister, I first looked at DSC and I was like, yeah, I should build it on this. And then soon I realized, oh, it's Windows only. I can't run it on like Linux or GitHub. Like I can't automate it. And then it was really hard for someone new They come in and see, like Meister I believe is successful because like we have over 160 contributors

SPEAKER_03and it's just PowerShell. Like they can see a test in one screen full and read it, understand it. And they know like, oh, I can write my own test. Like this doesn't seem complicated. Starting with DSC, it's like, yeah, I need to spend like two or three weeks. I get to write this file, then I compile it to a math, then I get the math deployed. Just the acronyms, like I never got past that. Maybe DSC-3,

SPEAKER_02that's how. If you find someone that loves DSC-3 and wants to write a provider for that, then that could be an interesting extension.

SPEAKER_03Yeah, definitely. Because I remember when I first built Meister and I showed it to some PowerShell MVPs before everything and they were like, Isn't this BSC?

SPEAKER_01But I think that is also one of the nuances too is Maester is very focused on the unit testing aspect and being able to report on state and posture rather than just, hey, let's do configuration or let's try to do everything all at once. No, it's just focused on Here's what the current state is, and here's the proof that we collected to validate that. And you can make an informed decision of how to change that if you desire to. So when we get into things like Ansible,

SPEAKER_01Terraform, DSC, any of the infrastructure as code or configuration as code platforms, they're awesome, but oftentimes you sort of have to figure it out for yourself. Like what to configure or how to configure it. How am I restricting TLS settings to meet the most recent guidance? And those providers, you can configure with them, but they don't have that guidance built into them, which is one of the things Maester really focused on. Exactly, yeah.

SPEAKER_03And we can do more things now with like licensing attributes and Types of tenants, you can have one test that runs on external ID tenants versus workforce tenants or the test can run on both types of tenants or you can have GCC and GCC High and now we are getting France and Germany and different clouds. They might have different levels of support for various features. So you need to know that before you can run a test and know if a test is supported in those.

SPEAKER_03So those get really hairy too.

SPEAKER_01Build out with DSC and

SPEAKER_03even maintain.

SPEAKER_01Yeah, I even go back to sort of what you were alluding to Sam too of different solutions. So like maybe it's doing NTFS access control lists which can get really hairy or maybe it's checking IIS or services for running as a GMSA versus other things. That can extend to public cloud, so Azure and other cloud providers. It could extend to other SaaS services. It could even extend to non-Microsoft technologies with the SSH transports in PowerShell Now.

SPEAKER_01Hey, anything that we can do SSH And so it really is sort of whatever the community's idea is, is going to be able to shape what Maester is capable of integrating with. Any last words? AD is not dead. And we will definitely see more of it coming up soon.

SPEAKER_03Yeah, we have the hybrid identity, which means it's hybrid. You have both on-prem and they said they're having another conference next year. So I'm sure AD will be there next year. Awesome. Thank you so much, Michael and Sam, for taking time out today and finally get you, Michael. It's been awesome. We will definitely be doing a lot more Maester sessions. Maybe we should start a Maester podcast separately. If you have lots of updates happening frequently.

SPEAKER_03Thank you so much for coming.

SPEAKER_01Thanks.

SPEAKER_02Cheers.

Open the transcript file

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. Which Passkey Should Your Users Get? The FIDO Alliance CTO on Passkeys and Post-Quantum Cryptography

    Nov 14, 202645 minAudio

    Microsoft is moving millions of users off SMS and onto passkeys, and most admins now have to decide which kind of passkey each group of users should get. Nishant Kaushik, CTO of the FIDO Alliance, the industry body...

    Credit the people on this episode

  2. Free AI Agents, the E7 Bill and AD vs Entra: The Workplace Ninjas US Special

    Nov 7, 202625 minAudio

    AI agents are arriving in every Microsoft 365 tenant, and the questions admins ask first are what they cost to run and what it costs to secure them. In this Workplace Ninjas US special, four of the event’s speakers...

    Credit the people on this episode

  3. Entra Multi-Tenant App Mistakes Every SaaS Builder and Admin Should Know, with Kelvin Tegelaar

    Oct 31, 202643 minAudio

    Most SaaS vendors connect to your tenant with one multitenant app and one credential, shared by every customer. Kelvin Tegelaar, founder of CyberDrain and creator of CIPP (used by well over 10,000 MSPs), sees it from...

    Credit the people on this episode

  4. Conditional Access Gaps and the App Back Door, with Brandon Colley

    Oct 24, 202639 minAudio

    Most Conditional Access gaps aren’t exotic. They come from reading policies the wrong way: as firewall rules with an “allow”, as a list of platforms that seems complete, as an MFA exception for the office that made...

    Credit the people on this episode

  5. Stop the Bleeding: Cleaning Up Apps, Secrets and Consent in Microsoft Entra

    Oct 17, 202651 minAudio

    Most tenants have the same problem: hundreds of app registrations and service principals, client secrets that were set to expire in a hundred years, permission grants nobody remembers approving, and test tenants that...

    Credit the people on this episode