Skip to main content
Version: 2.2.1-preview

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:​

  1. Open the Microsoft Entra admin center and navigate to Entra ID > Roles & administrators.
  2. Search for the reported role name (e.g., Global Administrator, Application Administrator).
  3. Under Assignments, locate the reported Agent Identity or Blueprint Principal.
  4. Select the principal and click Remove assignment.
  5. Replace administrative role assignments with specific, least-privileged API permissions or scoped resource permissions where necessary.

Test Metadata​

FieldValue
Test IDMT.1209
SeverityHigh
SuiteMaester
CategoryEntra
PowerShell testTest-MtEntraAgentDirectoryRoles
TagsEntra, 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