3 ms·
Scanning is a good idea but unfortunately most inexpensive scans only do vulnerability scanning which wouldn't catch this particular problem. A potential solut
by tbourne 9y ago
Scanning is a good idea but unfortunately most inexpensive scans only do vulnerability scanning which wouldn't catch this particular problem. A potential solution is to have a second set of eyes on something. Take some insight from the pair programming model and have 2 sys admins look over a system design before it goes into production. I once heard someone say "Experience isn't worth what it costs, but you just can't get it any other way." It's really unfortunate that 14 million of us Verizon customers had to pay the price for that sys admin to learn the lesson.
But back to the original article, this whole thing was broken on many levels. Whoever wrote the logging function really shouldn't have been logging sensitive data like that. The logs should have been consumed by some sort of logging platform directly instead of flat files on an S3 bucket. The S3 bucket shouldn't have been publicly accessible. Someone should have reviewed this system. It's also quite possible that someone did review it and threw up red flags and was squashed by management because they had to hit a shipment date. And I'm sure there are many other reasons.
- true_tuna 9y agoThere are monitoring tools to alert on this situation and many like it. I use threatstack but there are several others. I think Cloudwatch can even do it. If you want to be stupid simple you can use the utility mon. You have that curl a test file from the public URL and alert if you ever get it. Also, in what universe does it take more than five minutes to fix this? "Dude, you're leaking customer info from an S3 bucket", "Shit! Which one?", "customers-bucket", "OK fixed, postmortem scheduled"