MT.1209 - Agent Identities and Blueprint Principals should not be assigned privileged Entra directory roles (Preview)
Overviewβ
Agent Identities and Blueprint Principals should not be assigned privileged Entra directory roles.
Assigning Entra ID directory roles (such as Global Administrator, Privileged Role Administrator, Application Administrator, or Agent ID Administrator) directly to Agent Identities or Blueprint Principals allows an AI agent or service principal to modify directory objects, credentials, or tenant configurations.
AI agents should adhere strictly to the principle of least privilege. They should be granted scoped resource permissions or delegated application permissions rather than broad administrative directory roles.
This check queries all active directory role assignments to identify Agent Identities and Blueprint Principals holding directory roles.
Remediation action:β
- Open the Microsoft Entra admin center and navigate to Entra ID > Roles & administrators.
- Search for the reported role name (e.g., Global Administrator, Application Administrator).
- Under Assignments, locate the reported Agent Identity or Blueprint Principal.
- Select the principal and click Remove assignment.
- Replace administrative role assignments with specific, least-privileged API permissions or scoped resource permissions where necessary.
Related linksβ
Test Metadataβ
| Field | Value |
|---|---|
| Test ID | MT.1209 |
| Severity | High |
| Suite | Maester |
| Category | Entra |
| PowerShell test | Test-MtEntraAgentDirectoryRoles |
| Tags | Entra, Graph, LongRunning, Maester, MT.1209, Preview, Severity:High |
Sourceβ
- Pester test:
tests/Maester/Entra/Test-MtEntraAgentSecurity.Tests.ps1 - PowerShell source:
powershell/public/maester/entra/Test-MtEntraAgentDirectoryRoles.ps1
