MT.1196 - Review who can change attributes used by dynamic group rules
Overviewโ
Dynamic group membership rules should use attributes that only trusted people and systems can change.
Dynamic groups can grant access to applications, Microsoft 365 resources, Azure resources, and Conditional Access policy scope. If a user or application can change an attribute used by a rule, it might be able to add or remove an account without an administrator changing group membership.
This test identifies rules that use attributes whose values may be influenced by a user or changed by a privileged writer. A detected rule is marked Investigate, not Failed, because the rule alone does not prove who can write the attribute or whether the group controls sensitive access.
The results are separated into two risk levels:
- Risky - user-influenceable attributes:
city,companyName,country,department,displayName,givenName,jobTitle,mobile,otherMails,preferredLanguage,state,surname, andtelephoneNumber. A user might influence these profile or employment values directly or indirectly through HR, onboarding, profile-editing, or support workflows. - Low risk - application or administrator-controlled attributes:
mail,mailNickname,proxyAddresses,userPrincipalName,extensionAttribute1-15, andextension_*. These attributes are normally written by privileged applications, administrators, Exchange, provisioning systems, or directory synchronization.
These labels describe the likelihood of user influence, not the sensitivity of the group. A low-risk attribute can still create a serious exposure if an untrusted or compromised writer can change it.
Pattern and partial-match operators receive additional emphasis because they can match a broader population than an exact comparison.
Remediation action:โ
- In the Microsoft Entra admin center, open Entra ID > Groups > All groups.
- Open each reported group, select Dynamic membership rules, and compare the rule with the Property and Rule columns in the Maester result.
- For Risky results, review user profile editing and every indirect workflow that accepts information from the user, including HR, onboarding, and support processes.
- For Low risk results, review administrators, Exchange permissions, applications with permission to update users, provisioning systems, and Microsoft Entra Connect. For synchronized properties, also review permissions in the source Active Directory.
- Determine what access the group grants. Start with the Licenses and Conditional Access policies columns in the Maester result, then check assignments to enterprise applications, Azure resources, Microsoft Teams, SharePoint, and other Microsoft 365 resources.
- If an untrusted user or system can change the property and gain sensitive access, restrict who can change it or replace it with a property controlled by a trusted system. Prefer exact comparisons over broad pattern matching. Use assigned membership if no suitable property exists.
- After changing the rule, verify the group's effective membership and assigned access.
Related linksโ
- Manage rules for dynamic membership groups
- Dynamic group featuring an exploitable rule
- How to abuse Entra ID dynamic groups
Test Metadataโ
| Field | Value |
|---|---|
| Test ID | MT.1196 |
| Severity | Medium |
| Suite | Maester |
| Category | Entra |
| PowerShell test | Test-MtDynamicGroupUserControlledAttributes |
| Tags | Entra, Maester, MT.1196 |
Sourceโ
- Pester test:
tests/Maester/Entra/Test-MtDynamicGroupMembership.Tests.ps1 - PowerShell source:
powershell/public/maester/entra/Test-MtDynamicGroupUserControlledAttributes.ps1
