More Info:

IAM User or Role can be leveraged to escalate privileges and can present higher risk.

Risk Level

Medium

Address

Security

Compliance Standards

CISGCP,HIPAA,SCO2,NISTCSF,NIST,AWSWAF,ISO27001,HITRUST

Triage and Remediation

Remediation

To remediate the “Roles With Privilege Escalation” misconfiguration in GCP using the GCP console, follow these step-by-step instructions:

  1. Log in to the GCP Console (console.cloud.google.com) using your credentials.

  2. Navigate to the “IAM & Admin” section by clicking on the navigation menu (☰) and selecting “IAM & Admin”.

  3. In the IAM & Admin page, click on “IAM” from the left-hand side menu. This will display a list of all the IAM roles and members in your project.

  4. Identify the roles that have privilege escalation potential. These roles typically include roles like “Owner”, “Editor”, or any custom roles with excessive permissions.

  5. Click on the role that you want to remediate. This will open the “Role details” page.

  6. On the “Role details” page, review the permissions assigned to the role and identify any unnecessary or excessive permissions.

  7. To remediate the misconfiguration, click on the “Edit” button at the top of the page.

  8. In the “Edit role” dialog, review the permissions and remove any unnecessary or excessive permissions by clicking on the “x” button next to each permission.

  9. After removing the permissions, review the remaining permissions to ensure that the role has the minimum necessary privileges for its intended purpose.

  10. Once you are satisfied with the changes, click on the “Save” button to save the modified role.

  11. Repeat the above steps for any other roles with privilege escalation potential.

  12. Finally, regularly review and monitor the IAM roles in your project to ensure that they continue to have the appropriate permissions and to prevent future privilege escalation misconfigurations.

By following these steps, you can remediate the “Roles With Privilege Escalation” misconfiguration in GCP using the GCP console.