Skip to content
Misconfiguration Write-up Beginner

How I got hacked in 10 hours on Google Cloud Platform

A freshly deployed LAMP virtual machine on Google Compute Engine was compromised within about ten hours of creation, with the attacker gaining root SSH access. The author found a root session opened in the authentication log at a time they were not at their computer, and could no longer connect through the cloud console.

kidsil.net

Published on kidsil.net

This is a long article, covering my entire journey in the Google Cloud Platform, choosing the right tool for my websites (mostly blogs), configuring the entire thing, and crashing in despair. Trials and tribulations, sweat, tears, and the surprising defeat (for now…), I hope you’ll enjoy it.

The author, on kidsil.net

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely weak or default SSH credentials on an internet-exposed VM, since the text only shows many login attempts and a successful root session without stating how access was obtained.

Impact

The attacker obtained root access to the VM, taking down the hosted websites; the author notes the cloud console SSH was also unavailable, though the text does not detail further damage.

What the attacker needed

Internet-exposed VM with SSH; likely weak or default credentials

The fix

The text offers no fix; the author only argues that the cloud provider should block obvious attacks out of the box and that they will avoid unmanaged VMs in future.

How it was found

  1. Deploy a click-to-deploy LAMP stack VM instance on Compute Engine
  2. Notice websites failing with a database connection error the next morning
  3. Try to connect through the cloud console SSH window and fail
  4. Connect using another SSH key and inspect the authentication log
  5. Find a root session opened at a time the owner was away

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Someone set up a rented server in the cloud and, within a day, an outsider broke into it. The intruder logged in as the most powerful user on the machine, called root, which means they could do anything on it. The owner noticed because the websites stopped working and the cloud console would not let them connect.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.