Skip to content

Google Cloud identity, MFA & sign-in security checks

Who can sign in, how strongly they authenticate, and whether sessions, passwords and sign-in locations meet the baseline every admin account should clear.

On Google Cloud, Black Cat runs 4 checks in this area on every scan. Each one below lists its severity, how to fix it, and the compliance controls it satisfies where a control applies. See what access the Google Cloud connector needs.

Checks (4)

severity: high Instance Uses Full Cloud-Platform API Scope fix difficulty: medium #

Use a custom service account with only the OAuth scopes the workload requires (CIS GCP 4.2)

  1. Create a dedicated service account with least-privilege IAM roles
  2. Navigate to GCP Console > Compute Engine > VM Instances
  3. Stop the instance and click Edit
  4. Under Service account, select the new dedicated account
  5. Under Access scopes, select Set access for each API and grant only required scopes
  6. Save and restart the instance

Vendor docs ↗

Satisfies: ISO 27001:2022 A.5.18 SOC 2 Type II CC6.3 CIS Controls v8 CIS-04.2 NIST CSF 2.0 PR.AA-05 NIS2 Directive NIS2-21.i.2 DORA (SaaS Security) DORA-9.6

severity: medium Instance Does Not Block Project-Wide SSH Keys fix difficulty: easy #

Enable block-project-ssh-keys metadata on the instance to prevent project-level SSH key access (CIS GCP 4.3)

  1. Navigate to GCP Console > Compute Engine > VM Instances
  2. Select the flagged instance and click Edit
  3. Under SSH Keys, check Block project-wide SSH keys
  4. Save changes

Vendor docs ↗

Satisfies: ISO 27001:2022 A.5.18 SOC 2 Type II CC6.3 CIS Controls v8 CIS-04.3 NIST CSF 2.0 PR.AA-05 NIS2 Directive NIS2-21.i.2 DORA (SaaS Security) DORA-9.6

severity: medium OS Login Disabled on Instance fix difficulty: easy #

Enable OS Login for centralized SSH key management via IAM (CIS GCP 4.4)

  1. Navigate to GCP Console > Compute Engine > VM Instances
  2. Select the flagged instance and click Edit
  3. Under Metadata, add key enable-oslogin with value TRUE
  4. Grant users the roles/compute.osLogin or roles/compute.osAdminLogin IAM role
  5. Save changes

Vendor docs ↗

Satisfies: ISO 27001:2022 A.5.18 SOC 2 Type II CC6.3 CIS Controls v8 CIS-04.4 NIST CSF 2.0 PR.AA-05 NIS2 Directive NIS2-21.i.2 DORA (SaaS Security) DORA-9.6

severity: medium Cloud Function Default Service Account fix difficulty: medium #

Assign a dedicated service account with least-privilege permissions instead of the default compute SA

  1. Create a new service account with only the permissions the function requires
  2. Navigate to GCP Console > Cloud Functions
  3. Select the flagged function and click Edit
  4. Under Runtime service account, select the new dedicated service account
  5. Deploy the updated function

Vendor docs ↗

Satisfies: ISO 27001:2022 A.5.15 SOC 2 Type II CC6.3 CIS Controls v8 CIS-05.4 NIST CSF 2.0 PR.AA-05 NIS2 Directive NIS2-21.i.2 DORA (SaaS Security) DORA-9.6

More Google Cloud checks

The information on this page is provided for general informational purposes and is believed to be accurate as of its most recent update. Product names, logos, and trademarks are the property of their respective owners and are used for identification purposes only; their use does not imply any affiliation with or endorsement by those owners. Descriptions of third-party applications and of compliance frameworks are based on publicly available documentation and may change over time.

See these checks run on your stack

Start a free 14-day trial — no credit card required.

Start Free Trial