How to take over a production system in the cloud
summary
Demo shows an AWS account-wide failure: an IAM assumed-role policy uses Principal: "" so any external AWS account can assume a role that grants EC2, S3 and Route53 rights — the bad JSON is four lines, the fix is two lines, and one environment has ~50 prod servers exposed until the patch finally reaches prod three weeks later. Also reproduces public S3 object ACL despite private bucket exposing password_file.csv and an incident where leaked GitHub keys cause a $64k crypto bill; scans use Scout2 and gitrob*.
AI-written summary · about
