Skip to main content
Open source ยท Community driven
Maester

Test automation for your Microsoft 365 security posture

Your Microsoft Security test automation framework! โ€” Maester turns Microsoft security best practices into runnable tests so you can make changes with confidence and prove compliance over time.

Maester running in a terminal and producing an interactive HTML report
500K+PowerShell Gallery downloads
120K+Tenants protected
360+Built-in security tests
5Compliance frameworks
Why Maester

Security as code, for the Microsoft cloud

One framework, hundreds of tests, every change validated. Maester is how modern teams keep Microsoft 365 secure as it evolves.

Ready-made tests

Hundreds of curated tests covering identity, access, devices and apps โ€” ready to run on day one.

Confidently make changes

Run regression tests before you change a Conditional Access policy. Catch loopholes before attackers do.

Continuous monitoring

Schedule Maester in GitHub Actions, Azure DevOps or Azure Automation. Get alerts when posture drifts.

Easy to customize

Built on Pester and Microsoft Graph. Encode your own business and security policies as code.

Configuration guidance

Every test ships with remediation steps and direct links into the Microsoft admin portals.

Compliance baselines

EIDSCA, CISA SCuBA, CIS Microsoft 365 and ORCA โ€” all wired into a single test framework.

Run your first Maester test in under a minute

Install the PowerShell module, connect to Microsoft Graph and get an interactive HTML report of your tenant's posture.

Security as Code (SaC)

Write Pester tests that encode your organization's business and security policies.

Apply modern DevSecOps practices and continuously monitor critical aspects of your Microsoft cloud.
Code snippet for a custom test

Conditional Access What-If

Avoid creating loopholes in your conditional access policies and test to see the impact of a policy change before it is applied.

Identity is the new control plane! Create iron-clad tests to ensure your tenant's posture is always secure as your access policies evolve.
Code sample of a what if test

Maester Test Framework

Maester is built on top of Pester, the PowerShell test framework and super charges it with cloud capabilities and user friendly reports.

Quickly set up Maester in your environment by following the step-by-step guides we've built for you.

Bring the ease of writing tests in PowerShell to your Microsoft 365 tenant with Maester!

Architecture diagram of Maester test framework

๐Ÿ”ฅ Maester Test Reports

Get a quick snapshot of your tenant's security posture with the report generated by Maester.

The interactive click-through report lets you drill down to the details of each test.

Maester summary report

Quick remediation

Test details include direct links to the Microsoft admin portals.

Jump straight into the conditional access policy that needs to be fixed or the group that needs to be reviewed.

Screenshot of an EIDSCA test result

40+ EIDSCA Tests

Maester includes over 40+ out of the box tests from Entra ID Security Config Analyzer (EIDSCA).

EIDSCA is a part of the Microsoft Entra ID - Attack and Defense Playbook and is a collection of common attack scenarios on Microsoft Entra ID and how they can be mitigated.

Screenshot of an EIDSCA test result

Maester โค๏ธ GitHub

Integrate Maester with GitHub Actions to continuously monitor your tenant configuration.

Build an archive history of Maester test runs against your tenant with the native workflow integration in Maester.

Use Workload Identify Federation for your automation account to connect to Microsoft Graph (no more secrets or credential rotation!).
GitHub reports

Maester ๐Ÿ’› Azure DevOps

Maester can be integrated with Azure DevOps Pipelines and scheduled to be run daily and when changes are introduced in your Microsoft 365 tenant.

Follow the step-by-step guide in the Maester docs to set up an automation account with Workload Identify Federation.
Azure DevOps Screenshot

Email Alerts

Set up email alerts to be delivered to your inbox with a summary of the test results.

Get notified when a change is introduced in your Microsoft 365 tenant that affects the security configuration.
Outlook email alerts