VM Instance should block project-wide SSH keys
ID |
gcp_projectwide_ssh_keys_enabled_in_vm_instances |
Severity |
low |
Remediation Complexity |
trivial |
Remediation Risk |
high |
Remediation Effort |
medium |
Vendor |
GCP |
Resource |
Secret Management |
Tags |
ASVS50:v13.3.1, reachable |
Description
Disabling block-project-ssh-keys for a compute instance allow project-wide public SSH keys to be used for connecting to that instance. This can be a security risk as other project members could access the instance.
To fix it, you must configure the metadata.block-project-ssh-keys property to yes.
Learn more about this topic at Create a VPC-native cluster.