AWS IAM Inline Policy Added to a Group
Identifies an inline policy added to an IAM group via PutGroupPolicy. An inline policy attached to a group grants its permissions to every current and future member of that group. Adversaries can abuse this to…
Description
Identifies an inline policy added to an IAM group via PutGroupPolicy. An inline policy attached to a group grants its permissions to every current and future member of that group. Adversaries can abuse this to escalate privileges (grant elevated permissions to a group they belong to, or will add themselves to) and to establish persistence through a durable, membership-based grant that is easy to overlook. Group inline policies are uncommon compared to managed-policy attachments, so their creation by an unexpected principal warrants review.
Detection logic
Its licence does not clear it for publishing here
Sunturai publishes a detection's own text where the licence it arrived under has been reviewed and permits it, and Elastic License 2.0 has not. The query as its source wrote it, its canonical form and the hash that pins this revision are in the workspace record.
Detection requirements
- Platform
- ContainersESXiIaaSIdentity ProviderLinuxmacOSNetwork DevicesOffice SuiteSaaSWindows
The rule states no platform. This is derived from the ATT&CK technique it maps to.
- Log source category
- event_index
Known benign triggers
- Identity and platform teams and infrastructure-as-code pipelines occasionally manage group inline policies as part of normal access governance. Verify the principal in `aws.cloudtrail.user_identity.arn`, the targeted group, and the policy document against approved change records. Known administration roles and deployment automation can be excluded after validation.
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| docs.aws.amazon.com/IAM/latest/APIReference/API_PutGroupPolicy.html | Only this detection cites it |
| docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_managed-vs-inline.html | Only this detection cites it |
From the source
- At source
- Open at source
- Upstream identifier
- 87f8141e-4275-4d49-9e76-d215b4614a0b
- Tagged by the source as
- Data Source: Amazon Web ServicesData Source: AWSData Source: AWS CloudTrailData Source: AWS IAMDomain: CloudDomain: IdentityNoise: UnknownPerformance: FastPlatform: AWSResources: Investigation GuideRule Type: Custom Query (KQL)Service: AWS IAMTactic: PersistenceTactic: Privilege EscalationUse Case: Threat Detection
Licence
- Published under
- Elastic License 2.0Read the licence
- Attribution
- Required
Authorship
- Written by
- Published
- Sep 20, 2026
- Version
- 3