1. Resources
  2. Identity Threats
  3. Microsoft Entra ID

Entitlement Management Access Package Abuse

Also known as: Access package backdoor, Assignment policy tampering, Entitlement management persistence, Identity Governance abuse

An attacker who manages an access package widens its assignment policy (who may request, approval, expiry) so they or an outside account can re-request group and app access at any time.

Platform
Microsoft Entra ID
Impact
High
Last updated
Attack difficulty
Medium
Detection difficulty
High
Privileges required: Specific rights or roles
Identity Governance Administrator, or a catalog owner or access package manager of the catalog that holds the package. No directory role is needed for the catalog roles.
What the attacker gains
Self-service access to every group, application role and site in the package, granted again on request after it is removed.

How it works

Entitlement management is the part of Microsoft Entra ID Governance that hands out access in bundles. An access package lists resource roles: membership or ownership of groups and teams, roles in applications, and roles on SharePoint sites. Packages live in catalogs. Each package has one or more assignment policies that say who may request it, whether approval is needed and by whom, how long an assignment lasts and whether it is reviewed.

When a request is approved, or needs no approval, the service itself adds the requestor to the groups and applications in the package. The change to the group is made by entitlement management, not by a person.

That design gives an attacker a quiet lever. They do not add themselves to a privileged group. They change the rule that decides who may ask for it:

  • Wider requestors. The policy's target scope is changed from specific users to all members, all users including guests, or users from connected organizations.
  • No approval. The approval stage is removed, or the approver is replaced with an account the attacker controls.
  • No expiry and no review. The assignment's expiration is set to never and the access review is switched off, so a granted assignment stays.
  • A second policy. Instead of editing the visible policy, the attacker adds another policy to the same package for one account, with no approval. Packages commonly have several policies, and each is evaluated on its own.
  • A connected organization. The attacker adds an external tenant as a connected organization. Its users can then request the package, and entitlement management invites them as guests when the request is fulfilled.
  • More in the package. A resource role for a more powerful group is added to a package the attacker can already request.

Nothing is granted at the moment of the change. The route stays open after the administrator who made it has left, and it works again each time access is taken away.

Prerequisites

  • A role that can edit the package: Identity Governance Administrator or Global Administrator for any catalog, or the delegated catalog owner or access package manager role for the catalog that holds it. The delegated roles are assigned inside entitlement management and are not directory roles.
  • A package whose resource roles are worth having, for example membership of a group that holds a directory role, an Azure role or access to sensitive data.
  • An identity to make the request with: the attacker's own account, a second compromised account, or a user in a tenant the attacker controls.

Attack steps

For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.

1. Map packages, policies and what they deliver

Connect-MgGraph -Scopes 'EntitlementManagement.ReadWrite.All'

# Packages and the policies attached to them
Get-MgEntitlementManagementAssignmentPolicy -All -ExpandProperty accessPackage |
    Select-Object Id, DisplayName, AllowedTargetScope,
        @{ n = 'Package';  e = { $_.AccessPackage.DisplayName } },
        @{ n = 'Approval'; e = { $_.RequestApprovalSettings.IsApprovalRequiredForAdd } },
        @{ n = 'Expiry';   e = { $_.Expiration.Type } }

Look for packages that deliver membership of privileged groups, and note which policies already allow self-service.

2. Widen an existing policy

The update call replaces the policy, so the body carries the full definition. This one opens the package to every member user, removes approval and removes expiry:

$policyId = '00000000-0000-0000-0000-000000000000'
$params = @{
    id                  = $policyId
    displayName         = 'Initial policy'
    description         = 'Members can request access'
    allowedTargetScope  = 'allMemberUsers'
    specificAllowedTargets = @()
    expiration          = @{ type = 'noExpiration' }
    requestorSettings   = @{
        enableTargetsToSelfAddAccess    = $true
        enableTargetsToSelfUpdateAccess = $false
        enableTargetsToSelfRemoveAccess = $true
    }
    requestApprovalSettings = @{
        isApprovalRequiredForAdd    = $false
        isApprovalRequiredForUpdate = $false
        stages                      = @()
    }
    accessPackage = @{ id = '11111111-1111-1111-1111-111111111111' }
}
Set-MgEntitlementManagementAssignmentPolicy -AccessPackageAssignmentPolicyId $policyId -BodyParameter $params

Keeping the display name and description unchanged means the policy list in the portal looks the same.

3. Or add a second policy for an outside organization

A separate policy for connected organizations leaves the original policy untouched:

$params = @{
    displayName        = 'Partner access'
    description        = 'Partner users can request access'
    allowedTargetScope = 'allConfiguredConnectedOrganizationUsers'
    specificAllowedTargets = @()
    expiration         = @{ type = 'noExpiration' }
    requestorSettings  = @{
        enableTargetsToSelfAddAccess    = $true
        enableTargetsToSelfUpdateAccess = $false
        enableTargetsToSelfRemoveAccess = $true
    }
    requestApprovalSettings = @{
        isApprovalRequiredForAdd    = $false
        isApprovalRequiredForUpdate = $false
        stages                      = @()
    }
    accessPackage = @{ id = '11111111-1111-1111-1111-111111111111' }
}
New-MgEntitlementManagementAssignmentPolicy -BodyParameter $params

4. Request the package

The requestor opens the My Access portal at https://myaccess.microsoft.com, finds the package and requests it. With no approval stage the request is fulfilled automatically and the service adds the account to every group and application in the package.

The same request through Graph, made by the requesting user:

$params = @{
    requestType = 'userAdd'
    assignment  = @{
        accessPackageId    = '11111111-1111-1111-1111-111111111111'
        assignmentPolicyId = '00000000-0000-0000-0000-000000000000'
    }
}
New-MgEntitlementManagementAssignmentRequest -BodyParameter $params

5. Come back later

When defenders remove the group membership, or the assignment itself, the attacker repeats step 4. As long as the policy stands, the request is granted again.

Impact

The attacker gets whatever the package delivers: group memberships, application roles and site access, including any directory or Azure roles that those groups carry. The access can be re-created at will, by an account inside or outside the tenant, without any privileged action at the time of the request.

The effect is also wider than the attacker. A policy opened to all members lets every employee request access that was meant for a small team, which is an exposure even if the attacker never returns.

OPSEC and artifacts

  • Change the rule, not the membership. No privileged group is touched by the attacker's account. The group's audit trail shows the entitlement management service adding a member, which looks like the governance process working. The policy edit is recorded as Update access package assignment policy with the actor.
  • Keep the names. Display name and description stay the same, so the portal shows nothing new. The before and after values of requestor scope, approval and expiration are what differ.
  • Add instead of edit. A new policy on a package that already has several is one more row in a list. It is recorded as a policy creation for that package.
  • Wait before requesting. A request made weeks after the policy change is not linked to it by time. The request, approval history and delivery are still recorded: Fulfill access package assignment request when everything was delivered, Partially fulfill access package assignment request when only some resource roles were.
  • Request from outside. A user from a connected organization is invited as a guest on fulfilment, which adds an Invite external user event and a guest account with an assignment.
  • Leave the old assignment. Access delivered under an earlier version of a package can differ from what the package lists today, and a remaining group membership alone does not show which policy kept it there. Investigators have to check for another package, a direct membership or a delayed removal.

Detection

A policy edit by a governance administrator is routine, so detection depends on comparing the change with the owner's intent and following it to the requests it enabled.

  • Policy changes. Alert on Update access package assignment policy and on new policies for existing packages. Compare allowed requestors, approval settings, expiration and review settings with the previous version.
  • Fulfilment without approval. For packages that deliver privileged access, every fulfilled request should have an approval step from an expected approver.
  • New populations. Assignees who are guests, or who are outside the department the package serves, after a policy change. Guest creation is covered by the external guest user invited rule, which reads Invite external user.
  • Catalog role changes. New catalog owners and access package managers are privilege changes and should be reviewed like directory role assignments.
// Access package policy changes and fulfilled requests
AuditLogs
| where OperationName in~ ("Update access package assignment policy",
                           "Fulfill access package assignment request",
                           "Partially fulfill access package assignment request")
| mv-expand Target = TargetResources
| project TimeGenerated, OperationName, Result, InitiatedBy,
          TargetName = tostring(Target.displayName), TargetType = tostring(Target.type),
          Changes = Target.modifiedProperties
| order by TimeGenerated asc
// What your tenant writes for entitlement management
AuditLogs
| where OperationName has "access package"
| summarize Events = count(), Last = max(TimeGenerated) by OperationName, Result
| order by Last desc

Run the inventory query first and confirm the activity names in your own data. Keep failed and pending rows in view: an error followed by a completed change explains differences between a ticket and the current state.

Mitigation

  • Treat catalog roles as privileged. Review catalog owners, access package managers and assignment managers on every catalog that contains privileged resources, and keep Identity Governance Administrator eligible through PIM.
  • Keep privileged access out of self-service. Packages that deliver role-holding groups should require approval by named approvers who are not the requestor, and should not be requestable by all users or by connected organizations.
  • Bound every assignment. Set an expiration and a recurring access review on policies, and confirm at each delivered resource that access was removed when the assignment ended.
  • Review connected organizations and remove the ones without an active business relationship.
  • Baseline the policies. Export assignment policies on a schedule and compare requestor scope, approval settings and expiration with the package owner's documented lifecycle.
  • Separate duties. The people who can change a package's policy should not be able to approve requests for it.
  • When responding, restore the policy first, then remove the assignments it produced, and check each delivered group and application for a direct membership that would survive the assignment's removal.

Detection rules for this attack

Log events to collect

FAQ

Why is an access package a persistence mechanism?

Because it grants access on request. If the attacker's account, or an outside organization the attacker controls, is allowed to request the package and no approval is required, removing the attacker's group membership fixes nothing: they request the package again and entitlement management adds them back. The policy outlives the administrator who edited it.

Does changing an assignment policy grant anything by itself?

No. A policy describes who can request, who approves and how long an assignment lasts. Access is granted only when a request is made and fulfilled. That is why a policy change is easy to overlook, and why an investigation has to follow the change to the later requests, approvals and deliveries.

Can someone without a directory role do this?

Yes. Entitlement management has its own delegated roles per catalog. A catalog owner or access package manager can edit the policies of packages in that catalog without holding any Microsoft Entra directory role. Reviews that only list directory role assignments do not show these people.

How do you detect access package abuse?

Alert on Update access package assignment policy and compare the requestor scope, approval settings and expiration before and after. Then follow the fulfilled assignment requests for that package and check each new assignee against the population the package owner intended. A request fulfilled without an approval step on a package that used to require one is the clearest sign.

References

Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.

Does this attack work in your environment?

Forestall maps every identity and the attack paths between them across Active Directory, Entra ID and cloud, read-only and agentless.