Lion Cipher Lab

Sweep your own Google Cloud project for public buckets, open firewall rules and external IPs (GCP assessment 3 of 5)

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

Steps in this lab

  1. The rule first: read configuration, never probe from outside
  2. What 'public' means: allUsers and allAuthenticatedUsers
  3. Collect the three inputs as the assessor
  4. The sweep script, on sample data first
  5. Run it on your project and decide what is intended
  6. The defender's view: the checks Google can run for you

Open the full interactive lab →

Keep learning