More Info:

Policies with NotAction in Statements.

Risk Level

Low

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the misconfiguration of policies with NotAction in the statements in AWS IAM, follow these steps using the AWS Management Console:

  1. Sign in to the AWS Management Console.
  2. Open the IAM console.
  3. In the navigation pane, click on “Policies”.
  4. Search for the policy that contains the “NotAction” statement.
  5. Select the policy by clicking on its name.
  6. In the policy summary page, click on the “Edit policy” button.
  7. In the policy editor, locate the statement with the “NotAction” condition that needs to be remediated.
  8. Remove the “NotAction” condition from the statement.
  9. Review the remaining conditions and ensure they are correct and aligned with your intended permissions.
  10. Click on the “Review policy” button to validate the changes.
  11. Review the policy summary page to verify that there are no errors or warnings.
  12. Click on the “Save changes” button to apply the remediation.

Once the policy is saved, the misconfiguration of having “NotAction” in the statements will be resolved. It is recommended to thoroughly review the policy to ensure that the desired permissions are correctly defined and that the policy aligns with your security requirements.