[New Rule] AWS IAM Permissions Boundary Modified or Removed#6300
Merged
Conversation
Contributor
Rule: New - GuidelinesThese guidelines serve as a reminder set of considerations when proposing a new rule. Documentation and Context
Rule Metadata Checks
New BBR Rules
Testing and Validation
|
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new AWS CloudTrail detection rule to alert on IAM permissions boundary removal or modification for IAM users/roles, a common privilege-escalation precursor in AWS environments.
Changes:
- Introduces a new KQL (kuery) rule targeting
Put*PermissionsBoundaryandDelete*PermissionsBoundaryactions iniam.amazonaws.com. - Includes investigation guide content, false positive guidance, and ATT&CK mapping for triage workflows.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
imays11
approved these changes
Jun 24, 2026
imays11
left a comment
Contributor
There was a problem hiding this comment.
Nice, but you should probably consider broadening that terraform exclusion with the wildcards
| ) | ||
| and event.outcome: "success" | ||
| and not aws.cloudtrail.user_identity.type: "AWSService" | ||
| and not aws.cloudtrail.user_identity.arn: arn*/terraform |
Contributor
There was a problem hiding this comment.
Maybe check for ansible and pulumi here too. I'd check for instances where ARN is none of these but UA still is just to be sure.
terrancedejesus
approved these changes
Jun 25, 2026
…undary_modified.toml Co-authored-by: Terrance DeJesus <99630311+terrancedejesus@users.noreply.github.com>
…undary_modified.toml Co-authored-by: Terrance DeJesus <99630311+terrancedejesus@users.noreply.github.com>
Co-authored-by: Terrance DeJesus <99630311+terrancedejesus@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Issue link(s):
Summary - What I changed
Add detection of the modification or removal of an IAM permissions boundary on an IAM user or role. A permissions boundary caps the maximum permissions an identity can have, regardless of its attached identity policies. An adversary who can delete a boundary (
DeleteUserPermissionsBoundary,DeleteRolePermissionsBoundary) or replace it with a morepermissive one (
PutUserPermissionsBoundary,PutRolePermissionsBoundary) can lift that cap and unlock permissions the identity's policies already grant, enabling privilege escalation. Boundary changes are infrequent and usually performed by a small set of administrators or infrastructure-as-code pipelines, so changes by unexpected principals warrant review.How To Test
Query & data can be assessed in TRADE stack and other telemetry stacks.
Checklist
bug,enhancement,schema,maintenance,Rule: New,Rule: Deprecation,Rule: Tuning,Hunt: New, orHunt: Tuningso guidelines can be generatedmeta:rapid-mergelabel if planning to merge within 24 hoursContributor checklist