MT.1181 - Conditional Access policy is present that blocks high agent risk signins
Overviewβ
Checks whether your tenant has at least one enabled Conditional Access policy that blocks agent identities detected as high risk.
This check looks for enabled Microsoft Entra (Azure AD) Conditional Access policies that target agent identity with risk levels set to High and enforce a Block grant control.
Agents (service or managed identities used by automation or AI) that are flagged as high risk by Entra ID Protection should be prevented from authenticating to prevent potentially compromised AI agents from accessing organizational resources.
Remediation action:β
To remediate, create or update a Conditional Access policy that:
- Users or agents: all agent identities.
- Target resources: All resources (formerly 'All cloud apps')
- Conditions:
Agent riskto includehigh. - Uses a grant control that includes the
Blockaction.
Refer to Microsoft documentation when creating policies to ensure correct targeting and scope.
Related linksβ
- Microsoft doc: https://learn.microsoft.com/entra/identity/conditional-access/policy-agent-block-high-risk
Test Metadataβ
| Field | Value |
|---|---|
| Test ID | MT.1181 |
| Severity | High |
| Suite | Maester |
| Category | CA |
| PowerShell test | Test-MtCaAgentRiskBlockPolicy |
| Tags | CA, Maester, MT.1181 |
Sourceβ
- Pester test:
tests/Maester/Entra/Test-ConditionalAccessBaseline.Tests.ps1 - PowerShell source:
powershell/public/maester/entra/Test-MtCaAgentRiskBlockPolicy.ps1

