DataDog / stratus-red-team

:cloud: :zap: Granular, Actionable Adversary Emulation for the Cloud
https://stratus-red-team.cloud
Apache License 2.0
1.67k stars 200 forks source link

GCP: Add SSH key to project metadata #149

Open christophetd opened 1 year ago

christophetd commented 1 year ago

Sources:

By default, allows access to all VMs in a project (unless the VMs disable project-wide SSH keys, which is not the default)

christophetd commented 1 year ago

challenge: might be very noisy and not actionable enough for detection, as the gcloud compute ssh seems to do it

christophetd commented 1 year ago

Note: OS login is generally used, so that could be a good detection

christophetd commented 1 year ago

Might also be added at the VM level.

christophetd commented 4 months ago

Moving to "to implement" considering we now have evidence from https://unit42.paloaltonetworks.com/cloud-lateral-movement-techniques/ it's been exploited in the wild