More Info:

The IAM service role associated with your Amazon CloudFormation stack should adhere to the principle of least privilege in order avoid unwanted privilege escalation.

Risk Level

Medium

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate this misconfiguration in AWS, you can follow the below steps:

  1. Log in to the AWS Management Console.
  2. Go to the CloudFormation service.
  3. Select the stack that needs remediation.
  4. Click on the “Update Stack” button.
  5. In the “Specify template” section, select the current template used by the stack.
  6. In the “Configure stack options” section, select “Permissions”.
  7. Under “Permissions”, select “Create a new IAM role”.
  8. Enter a name for the new IAM role.
  9. Select the appropriate policies for the IAM role.
  10. Click “Create”.

Once the new IAM role is created, it will be associated with the CloudFormation stack and the misconfiguration will be remediated.

Additional Reading: