<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Compliance - Modern Security</title><link>https://www.modernsecurity.nl/compliance/</link><description>Technical perspectives on security compliance, NIS2, governance, and translating Microsoft security capabilities into compliant architectures.</description><language>en-us</language><copyright>© 2026 Modern Security</copyright><generator>Hugo</generator><lastBuildDate>Wed, 08 Jan 2025 22:02:49 +0100</lastBuildDate><atom:link href="https://www.modernsecurity.nl/compliance/index.xml" rel="self" type="application/rss+xml"/><image><url>https://www.modernsecurity.nl/img/logo-light_hu_98d13a0e48fc51de.png</url><title>Compliance - Modern Security</title><link>https://www.modernsecurity.nl/compliance/</link></image><item><title>Maester – Swiss army knife for M365 security testing</title><link>https://www.modernsecurity.nl/maester-swiss-army-knife-m365-security/</link><guid isPermaLink="true">https://www.modernsecurity.nl/maester-swiss-army-knife-m365-security/</guid><pubDate>Wed, 16 Oct 2024 21:30:25 +0100</pubDate><dc:creator>Farid Kalaidji</dc:creator><category>Security</category><category>Compliance</category><description>Discover Maester: automate Microsoft 365 security with tests, alerts, and reports. Ensure compliance, enhance security, and stay proactive in your tenants.</description><content:encoded><![CDATA[
<h2 class="relative group">Introduction
    <div id="introduction" class="anchor"></div>
    
</h2>
<p>In today’s digital environment, security and compliance are vital for organizations to protect their assets and meet regulatory standards. While traditional frameworks like CIS Controls offer a solid foundation, they often lack the flexibility and specificity needed for dynamic, modern threats.</p>
<p>Maester is an open-source PowerShell-based test automation framework designed to help monitor and maintain the security configuration of Microsoft 365 environments. It provides automated testing, customizable tests, and integration with DevOps pipelines for continuous monitoring.</p>
<p>This guide will cover high over aspects from installation and configuration to integration with DevOps workflows, custom test creation, alerting options, and a breakdown of its policy tests. By the end, you’ll see why Maester is an invaluable tool for <a href="https://www.modernsecurity.nl/" >security professionals</a> seeking to elevate their organization’s security posture.</p>

<h2 class="relative group">What is Maester and why use it?
    <div id="what-is-maester-and-why-use-it" class="anchor"></div>
    
</h2>
<p>Maester is a versatile, automated security assessment and compliance tool for Microsoft 365 environments. Built on PowerShell with the Pester testing framework, enables organizations to enforce security policies and can continuously monitor compliance. With comprehensive reporting, DevOps integrations, and customizable tests, Maester ensures that your organization maintains a proactive stance on security.</p>
<figure><img
    class="my-0 rounded-md"
    loading="lazy"
    decoding="async"
    fetchpriority="auto"
    alt="Maester test results summary with passed and failed tests by category"
    width="2000"
    height="1211"
    src="https://www.modernsecurity.nl/maester-swiss-army-knife-m365-security/maester-report_hu_ac2e3f9e5626d4bf.webp"
   
   
    data-zoom-src="https://www.modernsecurity.nl/maester-swiss-army-knife-m365-security/maester-report.webp"><figcaption>Source: Maester.dev</figcaption></figure>
<h2 class="relative group">How it works
    <div id="how-it-works" class="anchor"></div>
    
</h2>
<p>Maester follows a structured process to gather, analyze, and report security data:</p>
<ol>
<li><strong>Data Collection</strong>: Gathers information from your Microsoft 365 environment, such as configurations, policies, and user settings.</li>
<li><strong>Policy verification</strong>: Runs extensive tests against best practices and predefined security standards.</li>
<li><strong>Detailed reporting</strong>: Generates comprehensive reports with insights into security posture, categorized by severity.</li>
<li><strong>Continuous monitoring</strong>: Offers automated scans on a scheduled basis via DevOps integration.</li>
<li><strong>Real-time alerts</strong>: Provides configurable alerts via email, Slack, or Teams to notify your team of critical findings instantly.</li>
</ol>
<figure><img
    class="my-0 rounded-md"
    loading="lazy"
    decoding="async"
    fetchpriority="auto"
    alt="Source: Maester.dev"
    width="2000"
    height="1223"
    src="https://www.modernsecurity.nl/maester-swiss-army-knife-m365-security/maester-architecture_hu_96085789a2de3718.webp"
   
   
    data-zoom-src="https://www.modernsecurity.nl/maester-swiss-army-knife-m365-security/maester-architecture.webp"><figcaption>Source: Maester.dev</figcaption></figure>
<h2 class="relative group">Prerequisites and requirements
    <div id="prerequisites-and-requirements" class="anchor"></div>
    
</h2>
<p>Before deploying Maester, ensure that your environment meets the following requirements:</p>

<div class="ms-table" role="region" aria-label="Table" tabindex="0">
  <table>
      <thead>
          <tr>
              <th>Requirement</th>
              <th>Details</th>
          </tr>
      </thead>
    <tbody>
        <tr>
            <td><strong>Operating System</strong></td>
            <td>Windows Operating System</td>
        </tr>
        <tr>
            <td><strong>PowerShell Version</strong></td>
            <td>Requires PowerShell 7.2 or later</td>
        </tr>
        <tr>
            <td><strong>Microsoft 365 Access</strong></td>
            <td>Necessary permissions to access and manage your Microsoft 365 tenant</td>
        </tr>
        <tr>
            <td><strong>Azure Subscription</strong></td>
            <td>Optional, for integration with Azure DevOps or Azure Automation</td>
        </tr>
    </tbody>
  </table>
</div>
<p>These prerequisites ensure that Maester can operate effectively within your environment.</p>

<h2 class="relative group">Installation process
    <div id="installation-process" class="anchor"></div>
    
</h2>
<p>To install Maester and its dependencies, follow these steps:</p>
<ol>
<li><strong>Install the Pester Module</strong>:</li>
</ol>
<div class="highlight-wrapper"><div class="highlight"><div class="ms-code-label">PowerShell</div><pre tabindex="0" class="chroma"><code class="language-powershell" data-lang="powershell"><span class="line"><span class="cl">  <span class="nb">Install-Module</span> <span class="n">Pester</span> <span class="n">-SkipPublisherCheck</span> <span class="n">-Force</span> <span class="n">-Scope</span> <span class="n">CurrentUser</span></span></span></code></pre></div></div>
<p><em>Note</em>: The <code>-SkipPublisherCheck</code> parameter is used to bypass the publisher check.</p>
<ol start="2">
<li><strong>Install the Maester Module</strong>:</li>
</ol>
<div class="highlight-wrapper"><div class="highlight"><div class="ms-code-label">PowerShell</div><pre tabindex="0" class="chroma"><code class="language-powershell" data-lang="powershell"><span class="line"><span class="cl">   <span class="nb">Install-Module</span> <span class="n">Maester</span> <span class="n">-Scope</span> <span class="n">CurrentUser</span></span></span></code></pre></div></div>
<ol start="3">
<li><strong>Set up the test directory and install Maester Tests</strong>:</li>
</ol>
<div class="highlight-wrapper"><div class="highlight"><div class="ms-code-label">Bash</div><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">   md maester-tests
</span></span><span class="line"><span class="cl">   <span class="nb">cd</span> maester-tests
</span></span><span class="line"><span class="cl">   Install-MaesterTests</span></span></code></pre></div></div>
<p>This creates a directory named <code>maester-tests</code>, navigates into it, and installs the Maester test suite.</p>
<ol start="4">
<li><strong>Connect to your Microsoft 365 Tenant</strong>:</li>
</ol>
<div class="highlight-wrapper"><div class="highlight"><div class="ms-code-label">PowerShell</div><pre tabindex="0" class="chroma"><code class="language-powershell" data-lang="powershell"><span class="line"><span class="cl">   <span class="nb">Connect-Maester</span></span></span></code></pre></div></div>
<p>This command initiates a sign-in process to your Microsoft 365 tenant.</p>
<ol start="5">
<li><strong>Run the Maester tests</strong>:</li>
</ol>
<div class="highlight-wrapper"><div class="highlight"><div class="ms-code-label">PowerShell</div><pre tabindex="0" class="chroma"><code class="language-powershell" data-lang="powershell"><span class="line"><span class="cl">   <span class="nb">Invoke-Maester</span></span></span></code></pre></div></div>
<p>This executes the installed tests against your tenant.</p>
<p><strong>Optional Modules for additional tests</strong>:</p>
<p>Maester includes optional tests, such as those from the Cybersecurity and Infrastructure Security Agency (CISA), which require additional modules:</p>
<ul>
<li><strong>Azure Module</strong>:</li>
</ul>
<div class="highlight-wrapper"><div class="highlight"><div class="ms-code-label">PowerShell</div><pre tabindex="0" class="chroma"><code class="language-powershell" data-lang="powershell"><span class="line"><span class="cl">   <span class="nb">Install-Module</span> <span class="n">Az</span> <span class="n">-Scope</span> <span class="n">CurrentUser</span></span></span></code></pre></div></div>
<ul>
<li><strong>Exchange Online Management Module</strong>:</li>
</ul>
<div class="highlight-wrapper"><div class="highlight"><div class="ms-code-label">PowerShell</div><pre tabindex="0" class="chroma"><code class="language-powershell" data-lang="powershell"><span class="line"><span class="cl">   <span class="nb">Install-Module</span> <span class="n">ExchangeOnlineManagement</span> <span class="n">-Scope</span> <span class="n">CurrentUser</span></span></span></code></pre></div></div>
<p>After installing these modules, connect to the respective services:</p>
<div class="highlight-wrapper"><div class="highlight"><div class="ms-code-label">PowerShell</div><pre tabindex="0" class="chroma"><code class="language-powershell" data-lang="powershell"><span class="line"><span class="cl"><span class="nb">Connect-Maester</span> <span class="n">-Service</span> <span class="n">All</span></span></span></code></pre></div></div>
<p>This command prompts you to sign in to Azure, Exchange Online, and other services as needed.</p>
<p>For detailed information, refer to the <a href="https://maester.dev/docs/installation/"  target="_blank" rel="noreferrer">Maester Installation Guide</a> and/or see below key commands.</p>

<h2 class="relative group">Key commands
    <div id="key-commands" class="anchor"></div>
    
</h2>
<p>Below is a summary of the most commonly used commands in Maester for installation, configuration, test execution, and troubleshooting:</p>

<div class="ms-table" role="region" aria-label="Table" tabindex="0">
  <table>
      <thead>
          <tr>
              <th><strong>Command</strong></th>
              <th><strong>Description</strong></th>
          </tr>
      </thead>
    <tbody>
        <tr>
            <td><code>Connect-Maester</code></td>
            <td>Connects to your Microsoft 365 tenant, initiating the authentication process.</td>
        </tr>
        <tr>
            <td><code>Invoke-Maester</code></td>
            <td>Runs all Maester tests in the current directory against your connected tenant.</td>
        </tr>
        <tr>
            <td><code>Invoke-Maester -Tags &quot;&lt;Tag&gt;&quot;</code></td>
            <td>Runs tests filtered by specific tags (e.g., <code>&quot;Compliance&quot;</code>, <code>&quot;Security&quot;</code>).</td>
        </tr>
        <tr>
            <td><code>Invoke-Maester -Test &quot;&lt;TestName&gt;&quot;</code></td>
            <td>Runs a specific test by name.</td>
        </tr>
        <tr>
            <td><code>Export-MaesterReport</code></td>
            <td>Exports test results to an HTML or JSON report for sharing and review.</td>
        </tr>
        <tr>
            <td><code>Update-Maester</code></td>
            <td>Updates the Maester module to the latest version.</td>
        </tr>
        <tr>
            <td><code>Update-MaesterTests</code></td>
            <td>Updates the test suite to include the latest tests and configurations.</td>
        </tr>
        <tr>
            <td><code>Get-MaesterTests</code></td>
            <td>Lists all available tests installed in the current directory.</td>
        </tr>
        <tr>
            <td><code>Install-Module Az</code></td>
            <td>Installs the Azure module, required for certain Azure-related tests.</td>
        </tr>
        <tr>
            <td><code>Install-Module ExchangeOnlineManagement</code></td>
            <td>Installs the Exchange Online Management module for tests involving Exchange configurations.</td>
        </tr>
        <tr>
            <td><code>Connect-Maester -Service All</code></td>
            <td>Connects to all relevant services (e.g., Azure AD, Exchange Online) for comprehensive testing.</td>
        </tr>
    </tbody>
  </table>
</div>

<h3 class="relative group">Examples of using commands
    <div id="examples-of-using-commands" class="anchor"></div>
    
</h3>
<ul>
<li><strong>Run all tests with default configuration</strong>:</li>
</ul>
<div class="highlight-wrapper"><div class="highlight"><div class="ms-code-label">PowerShell</div><pre tabindex="0" class="chroma"><code class="language-powershell" data-lang="powershell"><span class="line"><span class="cl">  <span class="nb">Invoke-Maester</span></span></span></code></pre></div></div>
<ul>
<li><strong>Generate a detailed HTML report</strong>:</li>
</ul>
<div class="highlight-wrapper"><div class="highlight"><div class="ms-code-label">PowerShell</div><pre tabindex="0" class="chroma"><code class="language-powershell" data-lang="powershell"><span class="line"><span class="cl"> <span class="nv">$results</span> <span class="p">=</span> <span class="nb">Invoke-Maester</span>
</span></span><span class="line"><span class="cl"> <span class="nv">$results</span> <span class="p">|</span> <span class="nb">Export-MaesterReport</span> <span class="n">-Format</span> <span class="n">HTML</span> <span class="n">-Path</span> <span class="p">.\</span><span class="n">TestReport</span><span class="p">.</span><span class="n">html</span></span></span></code></pre></div></div>
<ul>
<li><strong>Update Maester Tests</strong>:</li>
</ul>
<div class="highlight-wrapper"><div class="highlight"><div class="ms-code-label">PowerShell</div><pre tabindex="0" class="chroma"><code class="language-powershell" data-lang="powershell"><span class="line"><span class="cl">  <span class="nb">Update-MaesterTests</span></span></span></code></pre></div></div>

<h3 class="relative group">Tips for using commands
    <div id="tips-for-using-commands" class="anchor"></div>
    
</h3>
<ul>
<li><strong>Filtering tests</strong>: Use <code>-Tags</code> or <code>-Test</code> parameters with <code>Invoke-Maester</code> to focus on specific areas like compliance or security.</li>
<li><strong>Exporting results</strong>: Always use <code>Export-MaesterReport</code> to generate shareable reports in formats like HTML or JSON.</li>
<li><strong>Staying up to date</strong>: Regularly run <code>Update-Maester</code> and <code>Update-MaesterTests</code> to ensure you’re using the latest features and test suites.</li>
</ul>

<h2 class="relative group">Overview of the core tests and policies
    <div id="overview-of-the-core-tests-and-policies" class="anchor"></div>
    
</h2>
<p>Maester’s extensive suite of tests covers essential security areas. Here’s a breakdown of key tests and policies:</p>

<h3 class="relative group">Authentication methods
    <div id="authentication-methods" class="anchor"></div>
    
</h3>
<p>Authentication checks focus on ensuring secure user authentication mechanisms are in place to prevent unauthorized access.</p>
<ul>
<li><strong>FIDO2 security keys</strong>: Verifies if FIDO2 keys are enforced for login, ensuring passwordless authentication methods are in use. It checks if self-service key registration is restricted to prevent unauthorized devices from being added and ensures proper attestation is required during registration to validate device authenticity.</li>
<li><strong>Microsoft Authenticator</strong>: Examines settings to confirm advanced security features are enabled. This includes:</li>
<li>Number matching to mitigate push notification attacks.</li>
<li>Application context to help users recognize legitimate login prompts.</li>
<li>Displaying geographic information to provide additional context during authentication attempts.</li>
<li><strong>Temporary access pass</strong>: Ensures temporary access passes are configured for one-time, time-limited use. This is useful for onboarding users without a traditional password.</li>
</ul>

<h3 class="relative group">Authorization and permissions
    <div id="authorization-and-permissions" class="anchor"></div>
    
</h3>
<p>These checks validate the organization’s default permissions, ensuring guests and users are granted minimal access by default.</p>
<ul>
<li><strong>Default guest permissions</strong>: Assesses whether guest users are restricted from accessing sensitive resources, ensuring compliance with the principle of least privilege.</li>
<li><strong>Risk-based admin consent</strong>: Ensures policies are in place to require step-up consent for high-risk scenarios, adding an extra layer of protection when users approve application permissions.</li>
<li><strong>Self-service policies</strong>: Verifies configurations that allow or restrict users from performing self-service operations, such as registering security keys or managing roles.</li>
</ul>

<h3 class="relative group">Password rules
    <div id="password-rules" class="anchor"></div>
    
</h3>
<p>Checks here ensure that strong password policies are enforced to protect against credential compromise.</p>
<ul>
<li><strong>Password protection</strong>:</li>
<li>Validates the use of custom or default banned password lists to prevent weak or predictable passwords.</li>
<li>Checks smart lockout thresholds to reduce brute-force attempts.</li>
<li><strong>Expiration policies</strong>:</li>
<li>Verifies whether passwords have a defined expiration interval to limit exposure to compromised credentials.</li>
<li>Ensures policies require users to change passwords upon first use, enhancing security during onboarding.</li>
</ul>

<h3 class="relative group">Conditional access policies
    <div id="conditional-access-policies" class="anchor"></div>
    
</h3>
<p>Conditional access checks enforce secure access to resources by applying contextual rules.</p>
<ul>
<li><strong>Device compliance</strong>: Verifies whether policies enforce that only compliant devices (e.g., with encryption, antivirus, and updated OS) can access organizational resources.</li>
<li><strong>Legacy authentication</strong>: Ensures that legacy protocols (like POP and IMAP) are blocked, as these do not support modern authentication methods, making them more vulnerable.</li>
<li><strong>MFA enforcement</strong>:</li>
<li>Confirms that multi-factor authentication (MFA) is mandatory for all users, including guests.</li>
<li>Checks if MFA is required for risky sign-ins, such as those originating from untrusted locations or devices.</li>
<li><strong>Named location policies</strong>: Validates restrictions on access based on geographic locations, ensuring that only users from approved regions can log in.</li>
</ul>

<h3 class="relative group">Privileged access management
    <div id="privileged-access-management" class="anchor"></div>
    
</h3>
<p>These checks ensure that administrative roles and permissions follow best practices.</p>
<ul>
<li><strong>Role assignments</strong>:</li>
<li>Confirms that least-privilege principles are enforced, ensuring roles are assigned only as needed.</li>
<li>Validates that privileged roles are not permanently active, reducing the risk of privilege escalation.</li>
<li><strong>Alerts for privileged role activation</strong>: Verifies whether notifications are configured for privileged role activations to alert administrators of potential misuse.</li>
<li><strong>Privileged identity management (PIM)</strong>: Ensures that PIM is configured and active, providing just-in-time access and additional auditing capabilities for sensitive roles.</li>
</ul>

<h3 class="relative group">Email security (Exchange Online)
    <div id="email-security-exchange-online" class="anchor"></div>
    
</h3>
<p>Email-related checks focus on securing communications and preventing spoofing or unauthorized access.</p>
<ul>
<li><strong>SPF, DKIM, and DMARC</strong>:</li>
<li>Validates configurations for Sender Policy Framework (SPF), DomainKeys Identified Mail (DKIM), and Domain-based Message Authentication, Reporting, and Conformance (DMARC) to protect against email spoofing and phishing.</li>
<li><strong>External sender warnings</strong>: Ensures warning banners are displayed for emails originating from external domains, helping users identify potential phishing attempts.</li>
<li><strong>Email forwarding</strong>: Verifies that automatic forwarding to external domains is blocked to prevent sensitive data from being inadvertently shared.</li>
</ul>

<h3 class="relative group">Consent and app management
    <div id="consent-and-app-management" class="anchor"></div>
    
</h3>
<p>These checks assess how permissions and consent workflows are managed for applications in the tenant.</p>
<ul>
<li><strong>Admin consent policies</strong>: Ensures policies require admin approval for third-party applications requesting sensitive permissions, reducing the risk of unauthorized app access.</li>
<li><strong>App consent reviews</strong>: Validates whether periodic reviews of app consent workflows are performed to detect and revoke unnecessary or risky permissions.</li>
</ul>

<h3 class="relative group">Risk management
    <div id="risk-management" class="anchor"></div>
    
</h3>
<p>Risk-based checks evaluate the organization’s ability to detect and respond to suspicious activities.</p>
<ul>
<li><strong>Sign-in risk policies</strong>: Validates whether conditional access policies address risky user sign-ins, such as those from untrusted locations or devices.</li>
<li><strong>User risk policies</strong>: Checks if thresholds are set for triggering risk-based actions, such as password resets or account lockouts, to mitigate threats.</li>
</ul>

<h3 class="relative group">Microsoft Entra security
    <div id="microsoft-entra-security" class="anchor"></div>
    
</h3>
<p>These checks focus on enforcing security best practices within Microsoft Entra (formerly Azure AD).</p>
<ul>
<li><strong>Blocking legacy protocols</strong>: Ensures legacy authentication protocols are blocked, as these are common attack vectors.</li>
<li><strong>Identity protection policies</strong>: Verifies the implementation of Identity Protection policies to manage and mitigate risks for users and roles with elevated privileges.</li>
</ul>
<hr>

<h2 class="relative group">Interpreting Maester’s output
    <div id="interpreting-maesters-output" class="anchor"></div>
    
</h2>
<p>Maester generates comprehensive reports, categorizing issues by severity:</p>
<p><strong>Pass</strong>: Configuration meets the requirements</p>
<p><strong>Fail</strong>: Configuration violates the defined policy</p>
<figure><img
    class="my-0 rounded-md"
    loading="lazy"
    decoding="async"
    fetchpriority="auto"
    alt="Maester test results in dark mode with the test summary and status chart"
    width="2000"
    height="1270"
    src="https://www.modernsecurity.nl/maester-swiss-army-knife-m365-security/afbeelding_hu_b7b166769ca4123f.webp"
   
   
    data-zoom-src="https://www.modernsecurity.nl/maester-swiss-army-knife-m365-security/afbeelding.webp"></figure><figure><img
    class="my-0 rounded-md"
    loading="lazy"
    decoding="async"
    fetchpriority="auto"
    alt="Maester test details listing Entra ID authentication method tests with their status"
    width="2000"
    height="1270"
    src="https://www.modernsecurity.nl/maester-swiss-army-knife-m365-security/afbeelding-1_hu_89a85b4844f2eb5.webp"
   
   
    data-zoom-src="https://www.modernsecurity.nl/maester-swiss-army-knife-m365-security/afbeelding-1.webp"></figure><p>Reports are available in JSON and CSV formats, making it easy to export.</p>

<h2 class="relative group">Real-Time alerting with Email, Slack, and Microsoft Teams
    <div id="real-time-alerting-with-email-slack-and-microsoft-teams" class="anchor"></div>
    
</h2>
<p>Maester offers flexible alerting options, allowing security teams to stay informed of critical issues as soon as they’re detected. Configuring alerts ensures that any significant findings are communicated instantly, facilitating rapid response.</p>
<ul>
<li><strong>Email alerts</strong>: Set up email notifications for critical findings, delivered directly to your inbox.</li>
<li><strong>Slack integration</strong>: Configure Slack alerts to notify a specific channel, enabling collaborative responses.</li>
<li><strong>Microsoft Teams</strong>: For Teams users, configure alerts to deliver notifications to a designated security channel.</li>
</ul>
<p>These alerting options help you keep your team in the loop, enabling real-time, collaborative incident response.</p>

<h2 class="relative group">Integrating with DevOps pipelines
    <div id="integrating-with-devops-pipelines" class="anchor"></div>
    
</h2>
<p>Maester integrates with DevOps tools to make security an integral part of the CI/CD pipeline.</p>

<h3 class="relative group">Azure DevOps integration
    <div id="azure-devops-integration" class="anchor"></div>
    
</h3>
<ol>
<li><strong>Create an Azure DevOps project</strong>: Set up a dedicated project for Maester tests.</li>
<li><strong>Import Maester Tests</strong>: Clone the <a href="https://github.com/maester365/maester-tests"  target="_blank" rel="noreferrer">Maester Tests repository</a> into Azure DevOps.</li>
<li><strong>Configure pipelines</strong>: Set up an Azure pipeline to automate Maester tests on a schedule or based on specific triggers (e.g., configuration changes).</li>
</ol>
<p>Refer to the <a href="https://maester.dev/docs/monitoring/azure-devops/"  target="_blank" rel="noreferrer">Azure DevOps integration documentation</a> for detailed setup instructions.</p>

<h3 class="relative group">GitHub Actions integration
    <div id="github-actions-integration" class="anchor"></div>
    
</h3>
<ol>
<li><strong>Create a GitHub repository</strong>: Host Maester tests in a repository.</li>
<li><strong>Clone the Maester Tests</strong>: Copy the Maester Tests repository to GitHub.</li>
<li><strong>Set up workflows</strong>: Configure GitHub Actions to run Maester tests on schedule or in response to events (e.g., pushes, pull requests).</li>
</ol>
<p>For setup instructions, see the <a href="https://maester.dev/docs/monitoring/github-actions/"  target="_blank" rel="noreferrer">GitHub Actions integration documentation</a>.</p>

<h2 class="relative group">Writing custom tests in Maester
    <div id="writing-custom-tests-in-maester" class="anchor"></div>
    
</h2>
<p>Custom tests extend Maester’s functionality, allowing you to enforce unique security policies.</p>
<ol>
<li><strong>Create a custom test file</strong>: Add a new <code>.Tests.ps1</code> file in the <code>Custom</code> directory.</li>
<li><strong>Write the test using pester</strong>: Define tests using the Pester framework. For example, to check if a specific security group exists:</li>
</ol>
<div class="highlight-wrapper"><div class="highlight"><div class="ms-code-label">PowerShell</div><pre tabindex="0" class="chroma"><code class="language-powershell" data-lang="powershell"><span class="line"><span class="cl">   <span class="n">Describe</span> <span class="s2">&#34;Security Group Validation&#34;</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">       <span class="n">It</span> <span class="s2">&#34;Verifies the &#39;Admins&#39; group exists&#34;</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">           <span class="nb">Get-AzureADGroup</span> <span class="n">-Filter</span> <span class="s2">&#34;DisplayName eq &#39;Admins&#39;&#34;</span> <span class="p">|</span> <span class="n">Should</span> <span class="o">-Not</span> <span class="n">-BeNullOrEmpty</span>
</span></span><span class="line"><span class="cl">       <span class="p">}</span>
</span></span><span class="line"><span class="cl">   <span class="p">}</span></span></span></code></pre></div></div>
<p>These custom tests provide flexibility to adapt Maester to your organization’s specific security requirements.</p>

<h2 class="relative group">Conclusion
    <div id="conclusion" class="anchor"></div>
    
</h2>
<p>Maester is a comprehensive tool for security compliance and vulnerability management in Microsoft 365 environments. Its extensive test library, customization, seamless DevOps integration, and flexible alerting options make it an essential part of any modern security strategy.</p>
<p>With real-time alerts delivered via email, Slack, or Microsoft Teams, Maester keeps security teams informed, enabling rapid response to critical issues. Whether for routine audits, real-time vulnerability management, or custom policy enforcement, Maester empowers your organization to stay proactive and resilient in today’s complex cybersecurity landscape.</p>
]]></content:encoded><media:content url="https://www.modernsecurity.nl/maester-swiss-army-knife-m365-security/featured_hu_532a35dce89de9e8.jpg" medium="image" type="image/jpeg" width="1200" height="678"/><enclosure url="https://www.modernsecurity.nl/maester-swiss-army-knife-m365-security/featured_hu_532a35dce89de9e8.jpg" type="image/jpeg" length="52749"/></item><item><title>New website</title><link>https://www.modernsecurity.nl/new-website/</link><guid isPermaLink="true">https://www.modernsecurity.nl/new-website/</guid><pubDate>Fri, 01 Dec 2023 18:30:59 +0100</pubDate><dc:creator>Farid Kalaidji</dc:creator><category>Security</category><category>Compliance</category><category>Identity</category><description>For a while, I managed several tech blogs, but due to time constraints, I had to let them go. Now, I'm eager to set one up again, focusing primarily on</description><content:encoded>&lt;p>For a while, I managed several tech blogs, but due to time constraints, I had to let them go. Now, I’m eager to set one up again, focusing primarily on security. It won’t be your typical website; rather, it’ll incorporate more modern security elements. I’m particularly enthusiastic about the current Microsoft ecosystem, so expect posts covering Microsoft Defender XDR, Sentinel and related topics. Additionally, I’ll delve into important CVEs and other areas of personal interest.&lt;/p>
&lt;p>P.S. I post under my own title.&lt;/p>
</content:encoded><media:content url="https://www.modernsecurity.nl/new-website/featured_hu_f8297301accb69de.jpg" medium="image" type="image/jpeg" width="1200" height="800"/><enclosure url="https://www.modernsecurity.nl/new-website/featured_hu_f8297301accb69de.jpg" type="image/jpeg" length="105528"/></item></channel></rss>