Lion Cipher Lab
Fix Google Cloud findings in Terraform and prove each fix with a re-sweep (GCP assessment 5 of 5)
- Cloud Security
- Advanced
- ~75 min
- Free · no account required
Why it matters
A finding that is fixed by hand in a console is a finding that comes back: the next deployment, the next teammate or the next template will recreate it. Fixing in code puts the correction where the next change will see it, and a plan shows exactly what will change before anything does. Proving each fix with the same sweep that found it is the other half. It is the difference between 'I changed a setting' and 'I can show the exposure is gone', and it is how remediation is accepted in a real engagement.
What you'll learn
- building a deliberately weak test pair in Terraform
- applying Terraform with your own admin credentials, not the assessor's
- fixing a public bucket by removing the binding and enforcing public access prevention
- restricting a firewall rule to one address
- re-running a sweep and diffing before and after
- destroying lab resources cleanly
Steps in this lab
- The rule first: a throwaway project, empty resources, a destroy at the end
- Write the weak configuration
- Plan, apply, then sweep as the assessor
- Fix it in code: remove the binding, enforce prevention, narrow the rule
- Re-sweep and diff: prove each fix
- Destroy it, write the note, and take the defender's view
Open the full interactive lab →