Skip to content
Ho Dinh Tri
Work

Security

Context-Aware Infrastructure-as-Code Security

Evaluating static analysis for Terraform and Kubernetes (29 runners, 1,346 Checkov rules) and studying how AST and graph context can reduce false positives.

At a glance

Checkov runners evaluated
29
Terraform, Kubernetes, CloudFormation and more
Checkov security rules studied
1,346
CKV rule set
test suites
3,700+
CI security gating with Bandit and secret scanners

Problem#

Static analysers such as Checkov and tfsec are good at spotting a risky setting. They are much weaker at context: a rule looks at one resource without seeing what it is connected to. The result is alert fatigue (findings that are technically true but not exploitable) and missed issues that only show up across resources, such as multi-tier IAM misconfigurations.

My role#

Undergraduate researcher at the IaC Lab, Faculty of IT, HCMUS.

What surprised me#

Two things. First, how scattered the data is: every platform (Terraform, Kubernetes, CloudFormation…) and every paper uses its own data, so results are hard to compare. Second, how much the tools disagree: run several scanners on the same file and you get noticeably different findings.

What I did#

  • Evaluated Checkov across 29 runners and 1,346 CKV security rules to see what is actually covered.
  • Studied AST context propagation and graph-based analysis as ways to judge a resource together with what it connects to.
  • Evaluated SARIF and CycloneDX/SPDX SBOM reporting for driving CI/CD gates, and gating with Bandit and secret scanners across 3,700+ test suites.

A decision I made#

Because the disagreement comes partly from scattered data, I’m now focusing on building a consolidated IaC dataset with a shared classification taxonomy, so tools can be compared on the same ground.

Limitations: what this does not prove#

This is ongoing research. The numbers above describe the scope of the evaluation, not a detection-accuracy result; accuracy figures will come once the dataset and benchmark are finished.

All work