Diff That Looked Fine: Catching Malicious IaC Changes
summary
Scans augment Checkov and tfsec by flagging structural‑plus‑semantic anomalies in 4,200 real diffs from 130+ repos, combining an abstract syntax tree branch with a lightweight language model and an attention fusion layer. The fused model reaches F1 ≈ 0.92 (precision 0.94, recall 0.89); removing the LLM drops F1 to ~0.79 and removing AST to ~0.84. False positives cluster on security hardening, large refactors, and provider‑quirks, so deployment uses human review for mid‑confidence (≈0.6–0.85) and auto‑block only at very high confidence.
AI-written summary · about
chapters (18)
- 0:00Introduction and premise
- 1:11Research story behind
- 3:43Blind spots in IaC scanning
- 5:08Malicious changes in plain sight
- 6:54Hybrid detection architecture
- 8:18Why hybrid approach works
- 10:07Study design and dataset
- 11:13Experiment results and metrics
- 13:00Deployment policy and trust
- 15:50Risk bands and human review
- 17:14Actionable explanations matter
- 18:40AI as a starting point
- 19:44Deployment judgment and context
- 20:05Shadow mode and calibration
- 21:30Trust metrics and rollout
- 22:12Model and training details
- 23:40PR integration patterns
- 24:25Q&A session
