1. Resources
  2. Identity Threats
  3. AWS

AWS Permissions Boundary Removal

Also known as: DeleteRolePermissionsBoundary privilege escalation, DeleteUserPermissionsBoundary privilege escalation, Permissions boundary replacement, PutRolePermissionsBoundary abuse

A principal that can delete or replace the permissions boundary of a user or role it controls lifts the cap on that identity, so the broad policies already attached to it apply in full.

Platform
AWS
Impact
High
Last updated
Attack difficulty
Medium
Detection difficulty
Low
Privileges required: Specific rights or roles
iam:DeleteUserPermissionsBoundary, DeleteRolePermissionsBoundary, PutUserPermissionsBoundary or PutRolePermissionsBoundary on a controlled identity that has broad policies under a boundary.
What the attacker gains
Every action the identity's own policies already allowed and the boundary blocked. With AdministratorAccess behind a boundary, full control of the account.

How it works

A permissions boundary is a managed policy set on an IAM user or role as a ceiling. The identity can perform an action only when its identity-based policies allow it and the boundary allows it too. The boundary itself grants nothing.

Organizations use boundaries to delegate IAM work safely. A platform team lets developers create roles and attach policies, even broad ones, provided every role carries the agreed boundary. The outcome stays inside the boundary whatever the developers attach. This is why identities with AdministratorAccess or wide inline policies under a narrow boundary are common in such accounts.

Four IAM actions move that ceiling:

  • DeleteUserPermissionsBoundary and DeleteRolePermissionsBoundary remove it.
  • PutUserPermissionsBoundary and PutRolePermissionsBoundary set a boundary or replace the current one with another managed policy, which can be far broader.

A principal that may call one of them on an identity it controls performs a privilege escalation without editing or attaching any policy. The identity's policies are the same before and after; only the cap changes. AWS warns about this in the API documentation: deleting a boundary might increase the identity's permissions by allowing everything its permissions policies grant.

The attack has a second form, which is often easier. If the attacker can edit the managed policy that is used as the boundary, through policy versions, it widens the ceiling for every identity that uses it without calling any boundary action.

The technique also combines with others. An attacker that can attach policies but is held back by a boundary first attaches a broad policy, then removes the boundary. Either step alone achieves little; together they give administrator access.

Prerequisites

  • Valid credentials in the target account.
  • One of the four boundary actions, allowed on a target the attacker controls: its own user, the role of its current session, a role it can assume, or a role it can pass to a service.
  • The target's identity-based policies must already allow more than the boundary does, or the attacker must be able to add such policies.
  • No service control policy or explicit deny that blocks the boundary change. A well-built delegation denies these actions inside the boundary policy itself; the attack works where that deny is missing or where the grant came from elsewhere, such as iam:*.
  • Service-linked roles are out of scope: a boundary cannot be set on them.

Attack steps

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

1. Read the boundary and the policies behind it

# The response includes PermissionsBoundary when one is set
aws iam get-user --user-name alice
aws iam get-role --role-name team-app-role

# What the identity's own policies allow
aws iam list-attached-role-policies --role-name team-app-role

Compare the boundary policy with the attached policies. The difference between them is what the removal will release.

Pacu's iam__enum_permissions module collects the permissions of the current identity, which shows whether the boundary actions are available:

Pacu > run iam__enum_permissions

2a. Delete the boundary

aws iam delete-role-permissions-boundary --role-name team-app-role

# User equivalent
aws iam delete-user-permissions-boundary --user-name alice

2b. Or replace it with a broader policy

aws iam put-role-permissions-boundary --role-name team-app-role \
    --permissions-boundary arn:aws:iam::aws:policy/AdministratorAccess

# User equivalent
aws iam put-user-permissions-boundary --user-name alice \
    --permissions-boundary arn:aws:iam::aws:policy/AdministratorAccess

The identity still has a boundary after 2b, so checks that only test for the presence of a boundary continue to pass.

3. Use the released permissions

For the caller's own user or current role, the next request is evaluated without the old cap. For another role, assume it:

aws sts assume-role \
    --role-arn arn:aws:iam::111122223333:role/team-app-role \
    --role-session-name deploy

Impact

The identity gains every action its policies allowed and the boundary blocked. Where delegated administrators attach AdministratorAccess under a boundary, that is full control of the account. Where the policies are narrower, the gain is smaller, and in the limiting case the removal changes nothing.

The change persists until someone sets the boundary again. Setting it again bounds the interval but does not undo what was done while it was absent: credentials created, policies attached and data read in that window remain.

OPSEC and artifacts

  • Replace instead of delete. Swapping the boundary for a broad policy keeps the "has a boundary" property that compliance checks test. The PutRolePermissionsBoundary and PutUserPermissionsBoundary events still record the target and the ARN of the new boundary policy.
  • Edit the boundary policy, not the attachment. Widening the boundary's managed policy through a new policy version avoids all four boundary events. It writes CreatePolicyVersion or SetDefaultPolicyVersion on the boundary policy instead, and affects every identity that uses it.
  • Put it back. The operator removes the boundary, creates a durable backdoor such as an access key on an administrator, and restores the original boundary. State-based reviews then find nothing. The delete and the put are both in CloudTrail, minutes apart.
  • Target a role, act through a service. Lifting the boundary on a role that a Lambda function or an instance uses keeps the attacker's own identity out of the later activity, which is logged under the role.
  • What always remains: an IAM management event per call, in the US East (N. Virginia) Region, with the caller, the source address, the user agent and requestParameters.userName or requestParameters.roleName. See the DeleteRolePermissionsBoundary and DeleteUserPermissionsBoundary events.
  • What the event does not show: which actions became effective. That has to be worked out from the identity's policy documents and the old boundary document at the time of the change.

Detection

  • Every boundary deletion. In an account that uses boundaries for delegation, boundaries are set when an identity is created and almost never removed. Alert on both delete calls. The permissions boundary detection rules cover the delete and the put calls.
  • Boundary replaced with a different policy. A put call on an identity that already had a boundary, where the new ARN differs from the approved boundary policy. Keep the approved ARN per account or per path and compare.
  • Self-benefit. The target is the caller's own user, or the role named in userIdentity.sessionContext.sessionIssuer.arn, or a role the caller assumes shortly afterwards.
  • Changes to the boundary policy itself. CreatePolicyVersion and SetDefaultPolicyVersion where requestParameters.policyArn is a policy used as a boundary.
  • The combination. A broad policy attached to an identity, followed by a boundary change on the same identity. See the administrator policy attachment rules.
-- Athena, CloudTrail table: permissions boundary changes
SELECT eventtime, eventname, useridentity.arn AS caller,
       useridentity.sessioncontext.sessionissuer.arn AS issuer,
       json_extract_scalar(requestparameters, '$.userName') AS target_user,
       json_extract_scalar(requestparameters, '$.roleName') AS target_role,
       json_extract_scalar(requestparameters, '$.permissionsBoundary') AS new_boundary,
       sourceipaddress, errorcode
FROM cloudtrail_logs
WHERE eventsource = 'iam.amazonaws.com'
  AND eventname IN ('DeleteUserPermissionsBoundary', 'DeleteRolePermissionsBoundary',
                    'PutUserPermissionsBoundary', 'PutRolePermissionsBoundary')
  AND eventtime >= '2026-11-28T00:00:00Z'
ORDER BY eventtime

To judge a hit, read the target's policies and the previous boundary together. A removed ceiling over narrow policies supports a weaker conclusion than one over AdministratorAccess.

Mitigation

  • Deny boundary changes inside the boundary. AWS's delegation pattern is explicit: the policy used as a boundary must not allow iam:DeleteUserPermissionsBoundary and iam:DeleteRolePermissionsBoundary, and where iam:* is allowed these actions must be explicitly denied. Deny the put actions as well unless the new boundary equals the approved one, with the iam:PermissionsBoundary condition key.
  • Protect the boundary policy. Deny iam:CreatePolicyVersion, iam:SetDefaultPolicyVersion and iam:DeletePolicy on the boundary policy's ARN for everyone except the platform administration role.
  • Enforce both with a service control policy in AWS Organizations, so that the protection does not depend on every delegated policy being written correctly.
  • Require the boundary at creation. Allow iam:CreateUser and iam:CreateRole for delegated administrators only when the request sets the approved boundary, using the iam:PermissionsBoundary condition key.
  • Do not rely on the boundary alone. Keep the policies behind it close to what the identity needs, following least privilege. The less the boundary is holding back, the less its removal releases.
  • Baseline and compare. Record the expected boundary ARN for each delegated path and report any identity whose boundary is missing or different.

Detection rules for this attack

Log events to collect

FAQ

Does removing a permissions boundary grant new permissions?

Not by itself. A boundary never grants anything; it only limits what the identity's own policies can grant. Removing it matters when those policies already allow more than the boundary did, for example AdministratorAccess attached to a role that a boundary kept inside a few services. Then the removal turns allowed-but-capped actions into effective ones.

Why would an identity have broad policies under a boundary in the first place?

That is how delegated IAM administration works. A team is allowed to create roles and attach almost any policy, on the condition that each role carries a boundary. Broad policies behind a boundary are normal in such accounts, and they are exactly what makes the boundary's removal an escalation.

Is replacing a boundary as dangerous as deleting it?

Yes. PutUserPermissionsBoundary and PutRolePermissionsBoundary set whichever managed policy the caller names. Replacing a restrictive boundary with AdministratorAccess leaves an identity that still shows a boundary in reviews, while the cap is gone. A check that only asks whether a boundary exists does not notice.

How is the change detected?

CloudTrail records the four boundary calls as IAM management events with the caller and the target user or role. The Put calls also carry the ARN of the new boundary policy. Alert on every delete, and on every put that changes an existing boundary to a different policy.

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.