More Info:

Ensure that user managed service accounts do not have any admin, owner, or write privileges. Service accounts are primarily used for API access to Google. It is recommended to not use admin access for service accounts.

Risk Level

Medium

Address

Security

Compliance Standards

CISGCP, CBP, HIPAA, ISO27001, HITRUST, SOC2, NISTCSF, PCIDSS

Triage and Remediation

Remediation

To remediate the misconfiguration “User Managed Service Account Should Not Have Admin Privileges” in GCP using GCP console, follow the below steps:

  1. Login to the Google Cloud Console with your credentials.
  2. Navigate to the “IAM & Admin” section of the console.
  3. Select “Service Accounts” from the left-hand menu.
  4. Locate the user-managed service account that has admin privileges.
  5. Click on the service account to open its details page.
  6. Click on the “Permissions” tab.
  7. Scroll down to the “Role” section and click the “Edit” button.
  8. Remove the admin role from the service account by unchecking the box next to the role.
  9. Click “Save” to save the changes.
  10. Verify that the service account no longer has admin privileges by checking the “Permissions” tab.

By following these steps, you have successfully remediated the misconfiguration “User Managed Service Account Should Not Have Admin Privileges” in GCP using GCP console.

Additional Reading: