Lion Cipher Lab
Inventory your own Google Cloud project with Cloud Asset Inventory and summarise it by type (GCP assessment 2 of 5)
- Cloud Security
- Intermediate
- ~40 min
- Free · no account required
Why it matters
You cannot assess what you have not listed. Projects collect resources over time (a forgotten test VM, an old bucket, a default service account with a broad role) and the owner rarely holds the complete list in their head. Cloud Asset Inventory gives you that list from the cloud provider's own metadata, in one call, without installing a scanner. An inventory also changes what 'finding' means: instead of hunting for problems, you walk the list and ask a fixed set of questions of each type, which is how real assessments stay complete.
What you'll learn
- enabling the Cloud Asset Inventory API in a project
- searching all resources in a project with gcloud asset search-all-resources
- reading assetType, location, project and state fields
- filtering by asset type with a regular expression
- summarising an inventory by type with a script
- choosing what to sweep first from an inventory
- knowing what a search-based inventory can miss
Steps in this lab
- The rule first: read-only, your project, one free API
- Enable the API and search as the assessor
- Read the fields that matter
- Summarise it with a script, on sample data first
- Run it on your own project, and what a search can miss
- The defender's view: the inventory is also a control
Open the full interactive lab →