compliance.tf
Google Cloud Compliance ControlsGoogle Cloud Compute Engine

Compute Engine instances should have 'Block Project-wide SSH keys' enabled

It is recommended to use Instance specific SSH key(s) instead of using common/shared project-wide SSH key(s) to access Instances. Compute Engine VMs are evaluated for the metadata key `block-project-ssh-keys` set to `true`.

What this control checks

Checks whether Compute Engine instances have Block Project-wide SSH keys enabled

Framework mappings

The clauses this control is mapped to in each framework.

SOC 2

  • CC6.6: The entity implements logical access security measures to protect against threats from sources outside its system boundaries.

PCI DSS v4.0

  • 8.2.5: User identification and related accounts for users and administrators are strictly managed throughout an accounts lifecycle.

NIS2 Directive (EU 2022/2555)

  • 6 Security in network and information systems acquisition, development and maintenance
  • 9 Cryptography
  • 11 Access control

NIST SP 800-53 Rev 5

  • AC-17 Remote Access
  • IA-5: Authenticator Management
  • Transmission Confidentiality And Integrity (SC-8)

NIST Cybersecurity Framework v2.0

  • ID.AM-01: Inventories of hardware managed by the organization are maintained.

CIS GCP Benchmark v3.0.0

  • 4.3 Ensure 'Block Project-Wide SSH Keys' Is Enabled for VM Instances

CIS GCP Benchmark v4.0.0

  • 4.3 Ensure 'Block Project-Wide SSH Keys' Is Enabled for VM Instances

BSI C5:2025

  • IAM-08.05B The cloud service provider documents, communicates and makes available to all users under its responsibility rules and recommendations for the management of credentials, including at least: - Non-reuse of credentials;- Trade-offs between entropy and ability to memorise;-...
  • OIS-08.02B The following aspects are taken into account when identifying risks, insofar as they are applicable to the cloud service provided and are within the area of responsibility of the cloud service provider: - Processing, storage or transmission of cloud service customer data and cloud...
  • PSS-05.01B The cloud service provider provides authentication mechanisms that can force strong authentication (e.g. two or more factors) for users, IT components or applications within the cloud users' area of responsibility. These authentication mechanisms are set up at all access points that...

CIS GCP Benchmark v1.2.0

  • 4.3 Ensure 'Block Project-wide SSH keys' is enabled for VM instances

CIS GCP Benchmark v1.3.0

  • 4.3 Ensure 'Block Project-wide SSH keys' is enabled for VM instances

CIS GCP Benchmark v2.0.0

  • 4.3 Ensure 'Block Project-wide SSH keys' is enabled for VM instances

NIST Cybersecurity Framework v1.0

  • PR.DS-2: DData-in-transit is protected.

Tool mappings

Use these identifiers to cross-reference this control across tools, reports, and evidence.

  • Compliance.tf Control: compute_instance_block_project_wide_ssh_enabled
  • Checkov Check: CKV_GCP_32
  • Powerpipe Control: gcp_compliance.control.compute_instance_block_project_wide_ssh_enabled
  • Prowler Check: compute_instance_block_project_wide_ssh_keys_disabled
  • KICS Query: 3e4d5ce6-3280-4027-8010-c26eeea1ec01
  • Trivy Check: GCP-0030

Last reviewed: 2026-10-09

View all Google Cloud controls →

On this page

Ask AI about this

Help improve this page