More Info:

Ensures that no users have the Service Account User role. The Service Account User role gives users the access to all service accounts of a project. This can result in an elevation of privileges and is not recommended.

Risk Level

Medium

Address

Security

Compliance Standards

CISGCP, CBP, HIPAA, ISO27001

Triage and Remediation

Remediation

To remediate the issue “Service Account User Should Not Have Service Account Token Creator Role” for GCP using GCP console, follow these steps:

  1. Login to your GCP console.
  2. Navigate to the IAM & admin page.
  3. Click on the “IAM” tab.
  4. Find the user account that has the “Service Account Token Creator” role assigned to it.
  5. Click on the edit icon (pencil) next to the user account.
  6. Scroll down to the “Service Account Actor” section.
  7. Find the service account that the user account is associated with.
  8. Click on the edit icon (pencil) next to the service account.
  9. Scroll down to the “Role” section.
  10. Find the “Service Account Token Creator” role and remove it from the list of assigned roles.
  11. Click on “Save” to save the changes.

After completing these steps, the user account will no longer have the “Service Account Token Creator” role assigned to it, which will remediate the misconfiguration.

Additional Reading: