Infrastructure as Code Security
The $50,000 Mistake: When a Public S3 Bucket Cost More Than Money
acl = "public-read" # β This destroyed usWhat You'll Learn
The IaC Security Challenge
Terraform Security with Checkov
Basic Checkov Scanning
GitLab CI Integration
Real Vulnerabilities Caught by Checkov
1. Public S3 Bucket (The One That Cost Us)
2. Overly Permissive Security Group
3. Unencrypted RDS Instance
tfsec for Fast Terraform Scanning
Pre-commit Hook
Terrascan for Policy-Based Scanning
Custom Terrascan Policies
CloudFormation Security
CloudFormation Guard
Policy as Code with OPA
OPA Integration
Drift Detection
AWS Config for Drift Detection
Terraform Drift Detection
Best Practices
1. Scan Before Commit
2. Multiple Scanning Tools
3. Policy as Code
4. Continuous Scanning
5. Automated Remediation
Key Takeaways
What's Next
Last updated