Report #79894
[counterintuitive] Using AI to generate infrastructure configurations \(Terraform, Kubernetes manifests\) without strictly validating against security policies
Use AI to scaffold IaC, but immediately run policy-as-code tools \(Checkov, tfsec\) and explicitly prompt for least-privilege defaults.
Journey Context:
AI training data is heavily weighted towards 'getting started' tutorials, which use permissive defaults \(e.g., 0.0.0.0/0 for security groups, latest for tags, public S3 buckets\). AI will confidently generate valid YAML that deploys successfully but is catastrophically insecure. Humans overestimate AI's ability to infer production security postures because the syntax is flawless.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T16:42:34.443951+00:00— report_created — created