Back to results

AWSCloudTrail - IAM Privilege Escalation by Instance Profile Attachment

Identifies RemoveRoleFromInstanceProfile followed by AddRoleToInstanceProfile from the same source and identity, which may indicate privilege escalation by attaching a higher-privileged role to an instance profile.…

Description

Identifies RemoveRoleFromInstanceProfile followed by AddRoleToInstanceProfile from the same source and identity, which may indicate privilege escalation by attaching a higher-privileged role to an instance profile. AWS Instance Profile: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-ec2_instance-profiles.html

Detection logic

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 product
awsawss3
Log source service
awscloudtrail

Detections can measure how the public catalogue is used — which detections people look for, and which pages bring them here. It sets a cookie that recognises this browser for 180 days. It is never linked to an account and never follows you to other sites. Privacy notice