How to Automate CIS Benchmark Checks for Microsoft 365
143 of the 160 CIS Microsoft 365 v7.0.0 controls can be checked automatically. How to do it with PowerShell, open-source tools or a platform, and a routine that catches regressions early.
Checking a Microsoft 365 tenant against the CIS Microsoft 365 Foundations Benchmark by hand is slow. Version v7.0.0 has 160 controls spread over nine admin surfaces, from the Microsoft 365 admin center to Entra, Exchange, SharePoint, Teams and Power BI. Doing that once is a project; doing it every month is not realistic. This article explains which checks can be automated, the main ways to do it, and how to set up a routine that catches problems early.
Why manual CIS checks do not scale
A manual check means opening each admin center, finding the setting and writing down the result. With 160 controls, that takes days, and the result starts ageing the moment you finish. The usual problems:
- Settings drift. A new global admin, a Conditional Access policy left in report-only, a sharing setting relaxed for one project. None of these show up until the next check.
- Results are hard to compare. Two people checking the same control in different ways get different answers, and a spreadsheet does not tell you what changed since last time.
- Evidence is thin. "Checked, OK" in a spreadsheet is weak evidence for an auditor compared with the actual setting values and a date.
- It does not multiply. If you look after several tenants, manual checks quickly take more time than you have.
What can be automated
CIS itself marks each recommendation as Automated or Manual. In v7.0.0, 143 controls are automated: the setting can be read through an API or PowerShell and compared with the expected value. The other 17 are manual, because they need a human decision. For example, 1.1.2 Ensure two emergency access accounts have been defined needs someone who knows which accounts are the break-glass accounts.
So the realistic goal is not "automate everything". It is: check the 143 automatically on a schedule, and give the 17 manual controls an owner and a recurring review.
Option 1: your own PowerShell scripts
Most automated controls can be read with the Microsoft Graph PowerShell SDK and the Exchange Online, Teams and SharePoint Online modules. Two read-only examples:
Control 1.1.3 (Ensure that between two and four global admins are designated):
Connect-MgGraph -Scopes "RoleManagement.Read.Directory"
$role = Get-MgDirectoryRole -Filter "roleTemplateId eq '62e90394-69f5-4237-9190-012177145e10'"
(Get-MgDirectoryRoleMember -DirectoryRoleId $role.Id -All).Count
Control 6.1.1 (Ensure 'AuditDisabled' organizationally is set to 'False'):
Connect-ExchangeOnline
Get-OrganizationConfig | Select-Object AuditDisabled
Scripts like these are a good way to learn the benchmark, and they cost nothing. The work is in everything around them: one script per control, four or five PowerShell modules with their own authentication, keeping up with module and API changes, storing results so you can compare runs, and turning the output into something an auditor accepts.
Option 2: open-source tools
Several free tools assess Microsoft 365 configuration. They differ in what they check against:
- Maester is a PowerShell test framework for Microsoft 365 and Entra configuration.
- Monkey365 scans Microsoft 365 and Azure configuration and supports CIS benchmarks.
- ScubaGear checks against CISA's SCuBA baselines rather than the CIS benchmark.
Open-source tools are a solid choice for a technical team that is happy to run, schedule and maintain them. Check which benchmark version a tool implements before you rely on its results.
Option 3: a dedicated assessment platform
A platform runs the checks for you, keeps the history and handles reporting. When you compare options, look for:
- Coverage of the current version. v7.0.0, all 160 controls, with the manual ones clearly separated from the automated ones.
- Read-only access. An assessment tool should never need write permissions to your tenant.
- Evidence per finding. The actual setting values, not just pass or fail.
- Remediation guidance you can act on, ideally with a view of who will be affected by a fix.
- Scheduling and regression alerts, so drift is caught without anyone remembering to run a scan.
- Multi-tenant support if you manage subsidiaries or client tenants.
A routine that works
- Baseline once. Run a full assessment and keep the dated result. Decide your target profile (usually all Level 1 controls plus selected Level 2 controls) and record exceptions.
- Schedule the automated checks. Weekly or monthly is enough for most tenants. Add an ad hoc run after big changes, such as a new Conditional Access design or a sharing policy change.
- Alert on regressions, not on everything. The useful signal is "this control passed last time and fails now".
- Review the manual controls quarterly. Give each of the 17 an owner.
- Keep the history. A series of dated results is the best evidence that the baseline is maintained, not just reached once.
Tips to make the checks faster
- Start with identity. Section 5 (Microsoft Entra) holds 63 of the 160 controls, and admin accounts, MFA and legacy authentication are where the biggest risks are.
- Scope by licence. On an E3-only tenant, the 23 E5 controls cannot pass. Mark them as exceptions once instead of re-reviewing them every run.
- Group work by admin center. Fixing all Exchange findings in one change window is faster than jumping between portals.
- Fix the cause, not the symptom. If the same control keeps regressing, the process that changes it (a script, a team, a template) is the real finding.
How ConfigCobra automates it
ConfigCobra checks a tenant against the CIS Microsoft 365 Foundations Benchmark v7.0.0, all 160 controls. 143 are checked automatically and the other 17 require manual verification. A scan takes 20–25 minutes and uses read-only Microsoft Graph permissions, with no agents and no admin password sharing.
- Scheduled scans (daily, weekly or monthly) or an ad hoc scan any time.
- Email alerts when a control regresses.
- Evidence and copy-paste remediation steps (PowerShell or admin portal steps) for each finding.
- Remediation impact analysis: the users, groups, mailboxes, apps and policies a fix would affect, before you apply it.
- A PDF report with findings, evidence and a timestamped tenant snapshot.
- Multi-tenant: assess subsidiaries or client tenants from one workspace.
You can try it free for 14 days with full access. For the benchmark itself, see our complete guide to the CIS Microsoft 365 Benchmark.
FAQ
Can every CIS Microsoft 365 control be automated?
No. In v7.0.0, 143 of 160 controls are marked Automated by CIS; 17 are Manual and need human review.
How often should automated CIS checks run?
Weekly or monthly for most tenants, plus an ad hoc run after major changes. Alert on controls that regress between runs.
What permissions does an automated assessment need?
Read-only permissions are enough to check configuration. Be wary of any assessment tool that asks for write access to your tenant.
Is Microsoft Secure Score enough?
Secure Score follows Microsoft's own recommendations, which are not the same list as the CIS Benchmark. See our Secure Score comparison.
ConfigCobra checks Microsoft 365, Azure, Google Cloud and AWS against the CIS benchmarks, read-only. 14-day free trial with full access.
