Lateral movement

Privileged Instance Profile – User Management

Risk Level

Hazardous (3)

Compliance Frameworks


IAM Instance Profiles are used to attach IAM Roles to EC2 Instances in order to grant them permissions to different AWS APIs. The instance profile {AwsIamInstanceProfile}, which is connected to {AwsIamInstanceProfile.Ec2Instances|count} instances, was found to have a role with permissive permissions that allows the user the ability to create access keys for a user or create/update console login credentials. An attacker may leverage this ability in order to create or update credentials for a user other than themselves, allowing them to then log in and act on behalf of that user.
  • Recommended Mitigation

    Review the instance profile's policy and consider removing any of the following actions: iam:CreateLoginProfile, iam:UpdateLoginProfile, iam:CreateAccessKey