# Break-glass accounts should be excluded from the Compliant Network Conditional Access policy

A Conditional Access policy that enforces the Global Secure Access Compliant Network control blocks access when the session is not on a compliant network.

Source: https://maester.dev/docs/tests/MT.1191

<!-- This file is generated by website/scripts/generate-test-docs.mjs. Do not edit manually. -->

<div class="test-byline"><div class="test-byline-avatars"><a class="test-byline-avatar test-byline-avatar--author" href="/contributors/crmhh" title="Christopher Brumm · Original author"><img src="https://github.com/crmhh.png" alt="Christopher Brumm" width="28" height="28" loading="lazy" decoding="async" /></a></div><div class="test-byline-meta"><span class="test-byline-text">Contributed by <a href="/contributors/crmhh">Christopher Brumm</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/maester">Maester</a> · Entra ID · Global Secure Access · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId MT.1191 -IncludePreview
```

## Overview

A Conditional Access policy that enforces the Global Secure Access **Compliant Network** control blocks access when the session is not on a compliant network. If such a policy does not exclude the emergency access (break-glass) accounts, it can lock out the very accounts needed to recover the tenant during an outage or misconfiguration.

Every Compliant Network enforcement policy must therefore exclude all break-glass accounts - either directly, or via a group they belong to (nested group membership is honored, as Conditional Access evaluates it). Emergency access accounts are read from the `EmergencyAccessAccounts` setting in `maester-config.json`.

#### Remediation action

1. Sign in to the [Microsoft Entra admin center](https://entra.microsoft.com) as at least a **Conditional Access Administrator**.
2. Browse to **Entra ID** > **Conditional Access** > **Policies** and open each flagged policy.
3. Under **Assignments** > **Users** > **Exclude**, add the emergency access accounts or the break-glass group.

#### Related links

* [Manage emergency access accounts in Microsoft Entra ID](https://learn.microsoft.com/entra/identity/role-based-access-control/security-emergency-access)
* [Enable compliant network check with Conditional Access](https://learn.microsoft.com/entra/global-secure-access/how-to-compliant-network)

## Details

<details>
<summary>Every attribute of this check</summary>

| Field | Value |
| --- | --- |
| Test ID | MT.1191 |
| Severity | Medium |
| Suite | Maester |
| Product | Entra ID |
| Feature | Global Secure Access |
| Area | Privileged access |
| Resource type | ConditionalAccessPolicy |
| User impact | Low |
| Implementation cost | Low |
| MITRE ATT&CK | None |
| PowerShell test | [Test-MtGsaCompliantNetworkBreakGlassExcluded](https://github.com/maester365/maester/blob/main/tests/maester/global-secure-access/Test.MT.1191.ps1) |
| Services | Graph |
| Compatible licenses | AAD_PREMIUM |
| Lifecycle | Preview |

</details>

## Source

- Test: [`tests/maester/global-secure-access/Test.MT.1191.ps1`](https://github.com/maester365/maester/blob/main/tests/maester/global-secure-access/Test.MT.1191.ps1)
- Documentation: [`tests/maester/global-secure-access/Test.MT.1191.md`](https://github.com/maester365/maester/blob/main/tests/maester/global-secure-access/Test.MT.1191.md)
