More Info:

Ensuring that no service accounts have admin privileges.

Risk Level

Critical

Address

Security

Compliance Standards

CISGCP, CBP

Triage and Remediation

Remediation

To remediate the misconfiguration “Service Accounts Admin And User Permissions Should Not Be Assigned At The Same Time” for GCP using GCP console, follow the below steps:

  1. Login to the GCP console (https://console.cloud.google.com/).
  2. Navigate to the IAM & Admin page by clicking on the hamburger menu on the top left corner and selecting “IAM & Admin” from the menu.
  3. Select “Service accounts” from the left-hand menu.
  4. Locate the service account that has both admin and user permissions assigned to it.
  5. Click on the service account to view its details.
  6. Click on the “Permissions” tab to view the permissions assigned to the service account.
  7. Remove the admin permissions from the service account by clicking on the “Edit” button next to the role that has admin permissions assigned to it.
  8. Deselect the admin role and click “Save” to remove the admin permissions.
  9. Verify that the service account now only has user permissions assigned to it.

By following these steps, the misconfiguration “Service Accounts Admin And User Permissions Should Not Be Assigned At The Same Time” will be remediated for GCP.

Additional Reading: