Agent Identity Blueprints should not have expired, excessive, or long-lived client credentials (Preview)
-IncludePreview: Invoke-Maester -TestId MT.1208 -IncludePreviewPart of Maester · Entra ID · Agent identities · All checks
Invoke-Maester -TestId MT.1208 -IncludePreviewOverview
Section titled “Overview”Agent Identity Blueprints should not have expired, excessive, or overly long-lived client credentials.
Credentials on Agent Identity Blueprints are used for token exchange to authenticate all child Agent Identities. If a blueprint accumulates expired secrets, secrets valid for years without rotation, or an excessive number of active secrets, the risk of credential compromise and unmanaged persistence increases significantly.
This check inspects the credential metadata of all Agent Identity Blueprints in the tenant to identify expired secrets, credentials valid for more than 730 days (2 years), blueprints with more than 2 active secrets, or a blueprint that retains an active client secret alongside a federated identity credential (FIC).
Remediation action:
Section titled “Remediation action:”- Open the Microsoft Entra admin center and navigate to Entra ID > Agents > Agent blueprints.
- Locate the reported Blueprint using its Object ID or display name.
- Under Developer settings, select Credentials.
- On the Certificates and Client secrets tabs, delete any expired credentials that are no longer in use.
- If secrets have validity periods longer than your organization’s maximum rotation window (recommended ≤ 365–730 days), create a new secret and decommission the old one.
- Prefer using Federated credentials or Certificates instead of shared client secrets wherever supported. If a federated credential is already configured, remove the remaining client secret entirely rather than keeping it as a fallback.
Related links
Section titled “Related links”Details
Section titled “Details”Every attribute of this check
| Field | Value |
|---|---|
| Test ID | MT.1208 |
| Severity | Medium |
| Suite | Maester |
| Product | Entra ID |
| Feature | Agent identities |
| Area | AI and agents |
| Resource type | Agent |
| User impact | Low |
| Implementation cost | Medium |
| MITRE ATT&CK | T1078.004 Cloud Accounts, T1098.001 Additional Cloud Credentials, T1552 Unsecured Credentials |
| Supports controls | nist-800-53-r5:IA-5 |
| PowerShell test | Test-MtEntraAgentBlueprintCredentialHygiene |
| Services | Graph |
| Lifecycle | Preview |
| Long running | Yes |
Source
Section titled “Source”- Test:
tests/maester/entra/Test.MT.1208.ps1 - Documentation:
tests/maester/entra/Test.MT.1208.md
About this check
- Severity
- Medium
- Effort to fix
- Medium
- Impact on users
- Low
- Product
- Entra ID
- Feature
- Agent identities
- Area
- AI and agents
- Suite
- Maester