Lion Cipher Lab
Fix Azure findings in Terraform and prove each fix with a re-sweep and a diff (Azure assessment 5 of 6)
- Cloud Security
- Intermediate
- ~75 min
- Free · no account required
Why it matters
A finding list that nobody acts on is a to-do list. The part that makes an assessment valuable is the loop: change one thing, measure again, show the finding gone. Doing it in code matters because a fix made by clicking in a portal is easily undone by the next deployment, while a fix in Terraform is reviewed, repeatable and lasts. Independent evidence matters too: the reader that proves the fix is a different, read-only identity from the one that made it, which is the habit of a good auditor.
What you'll learn
- building a small weak test rig in Terraform
- keeping the changer (you) apart from the reader (the assessor)
- disallowing anonymous blob access in code and making the container private
- narrowing a network security group rule from * to one address
- keeping a deliberate exposure and writing down why
- re-sweeping and diffing two sweeps
- knowing Resource Graph can lag and confirming with a direct read
- destroying the rig and checking it is gone
Steps in this lab
- The rule first: a throwaway rig, empty, destroyed at the end
- Write the weak rig
- Apply it, then sweep it as the assessor
- Fix it in code: three changes and one thing you leave alone
- A Bicep version of the storage fix, for a team that uses Bicep
- Re-sweep as the assessor and diff the two sweeps
- What the defender sees, then destroy the rig
Open the full interactive lab →