Skip to content

[New Rules] AWS Identity Center Coverage - #6977

Open
bryans3c wants to merge 21 commits into
mainfrom
new-rule/aws-identity-center-detections
Open

bryans3c wants to merge 21 commits into
mainfrom
new-rule/aws-identity-center-detections

Conversation

@bryans3c

@bryans3c bryans3c commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Pull Request

Issue link(s):

Summary - What I changed

Adds 21 production ES|QL rules for AWS IAM Identity Center (aws.cloudtrail), covering self-escalation through permission sets and policies, directory and federation tampering, token and session abuse, and provisioning persistence.

Permission set and policy self-escalation

  • AWS Identity Center User Self-Added to Administrator Group
  • AWS Identity Center Admin Permission Set Created and Self-Assigned
  • AWS Identity Center Role Removed Its Own Permissions Boundary
  • AWS Identity Center Role Escalated Its Own Inline Policy
  • AWS Identity Center Role Activated Admin Policy Version on Itself
  • AWS Identity Center Deny Policy Removed and Provisioned
  • AWS Identity Center Account-Access Scope Self-Granted and Used

Directory, federation and attribute tampering

  • AWS Identity Center Identity Source Changed
  • AWS Identity Center Federated Identity Attribute Rebound
  • AWS Identity Center ABAC Attribute Mapping Changed
  • AWS Identity Center New User Granted Account Access
  • AWS Identity Center MFA Device Removed or Replaced

Token and session abuse

  • AWS Identity Center Token Minting Granted to Any Principal
  • AWS Identity Center Token Refreshed by a Different Principal
  • AWS Identity Center Token Redeemed from Multiple ASNs
  • AWS Identity Center Session Created Long-Lived IAM Credential
  • AWS Identity Center Revoked User Bypassed Assignment for Credentials
  • AWS Identity Center Temporary Group Membership Used for Credentials

Provisioning and logging persistence

  • AWS Identity Center SCIM Provisioning Token Created
  • AWS Identity Center Application Opened to All Users and Used
  • AWS Identity Center Admin Assigned After CloudTrail Logging Stopped

Adds three non-ECS CloudTrail fields first mapped by AWS integration 7.4.0 (user_identity.credential_id, user_identity.on_behalf_of.user_id, user_identity.on_behalf_of.identity_store_arn) and the Service: AWS IAM Identity Center rule tag.

How To Test

Data is on the TRADE stack.

@bryans3c bryans3c self-assigned this Oct 8, 2026
Copilot AI balanced review requested due to automatic review settings October 8, 2026 09:45
@bryans3c bryans3c added the Integration: AWS AWS related rules label Oct 8, 2026
@botelastic botelastic Bot added python Internal python for the repository schema labels Oct 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

bryans3c and others added 2 commits October 8, 2026 18:45
…_token_redeemed_from_unrelated_networks.toml

Co-authored-by: Terrance DeJesus <99630311+terrancedejesus@users.noreply.github.com>

@terrancedejesus terrancedejesus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

full review done:

  • reviewed overall intent of rules
  • reviewed rule metadata for each. some descriptions could be reduced, extended MITRE mappings, etc.
  • reviewed rule logic. biggest challenge is the multi-event requirements where not necessary. could be reduced to 2-3 instead. couple of rules have logic that may introduce FPs, added some comments around those.

nits & suggestions are at your discretion. Approving as not to block. Great work!

bryans3c and others added 3 commits November 5, 2026 14:01
…nsient_group_membership_used_for_credentials.toml

Co-authored-by: Terrance DeJesus <99630311+terrancedejesus@users.noreply.github.com>
…lication_assignment_requirement_disabled_and_token_issued.toml

Co-authored-by: Terrance DeJesus <99630311+terrancedejesus@users.noreply.github.com>
…et_session_creates_persistent_iam_credential.toml

Co-authored-by: Terrance DeJesus <99630311+terrancedejesus@users.noreply.github.com>
bryans3c and others added 6 commits November 5, 2026 14:32
Co-authored-by: Terrance DeJesus <99630311+terrancedejesus@users.noreply.github.com>
…_inline_admin_policy_provisioned.toml

Co-authored-by: Terrance DeJesus <99630311+terrancedejesus@users.noreply.github.com>
…pture names

- new_admin_self_assign: admin attach + self-assign (drop create/delete stages)
- own_inline_admin: unconditional admin inline policy -> IAM CreateUser (30m)
- own_boundary: boundary removed -> IAM CreateUser (30m)
- revoked_user: revoke -> jwt-bearer issuance -> GetRoleCredentials (15m)
- rename auto-generated gk_*_N captures to intentional names across 10 rules
Drop the sign-in enrichment pipeline; detection is the identity-source
operation set alone. Add FROM/KEEP metadata for non-agg ES|QL.

@Samirbous Samirbous left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bryans3c over-use of GROK (80+) and INLINE STATS (30+), maybe you should look for less expensive alternatives, unless its a critical scenario/use case.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport: auto Domain: Cloud Integration: AWS AWS related rules patch python Internal python for the repository Rule: New Proposal for new rule schema

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants