Lion Cipher Lab
Sweep your own Google Cloud project for public buckets, open firewall rules and external IPs (GCP assessment 3 of 5)
- Cloud Security
- Intermediate
- ~55 min
- Free · no account required
Why it matters
Most cloud breaches that make the news are not clever. A bucket was readable by everyone, or a management port was open to the whole internet. The three checks in this lab are the cheapest way to find those, and they take minutes. They are also a good example of a rule that serious assessors follow: read the configuration instead of probing from outside. You can prove a bucket is public by reading its policy, with no need to download a single file from it, and you can prove a port is open to the world by reading the rule, without scanning it.
What you'll learn
- reading a bucket's IAM policy for allUsers and allAuthenticatedUsers
- explaining public access prevention and what it overrides
- reading firewall rules for 0.0.0.0/0 sources and port lists
- knowing which rules the default network ships with
- finding VMs with an external IP from accessConfigs
- turning saved JSON into a ranked findings list with a script
- separating intended exposure from accidental exposure
Steps in this lab
- The rule first: read configuration, never probe from outside
- What 'public' means: allUsers and allAuthenticatedUsers
- Collect the three inputs as the assessor
- The sweep script, on sample data first
- Run it on your project and decide what is intended
- The defender's view: the checks Google can run for you
Open the full interactive lab →