IaC static code scanning
DevSecOps cycle

IaC static code scanning

I'm using Kics to scan my Terraform code for bad practices and shift-left security (i.e., fixing issues before AWS Security Hub can blame my deployment). But a co-worker is using Checkov, and I was wondering if it was better than Kics, so the best way to check is by a battle!

The test was done with a Git repository that contains a lot of really bad IaC code. Not only the test was done with Kics and Checkov, but also with tfsec, trivy, and Snyk.

How much findings each of them found?

  • Kics: 232 findings, in 54 files
  • Checkov: 257 findings, in 54 files
  • tfsec : 124 findings, in 28 files
  • trivy: 46 findings, in 11 files
  • Snyk: 141 findings, in 37 files

Quite surprising that Snyk detected a lot less issues than Kics and Checkov.

Both Kics and Checkov are really good choices, and they support multiple export formats (Kics support a little more export formats), so choosing of the two will be based on which one feeds for reporting needs, or if you want to use Checkov with a Bridgecrew account, which enable to scan not just a Docker Compile or Dockerfile, but also the actual content of the container.


Hum... La version de Kics lancée par GitHub Actions détecte pas mal plus de problèmes. https://github.com/CollabInfra/security-tools-showdown/pull/1

Like
Reply

Thanks for sharing. Excellent article Pascal Robert 🙌🏽. Trivy is a very good tool for image scanning and security issues on IaC. This can explain why it shows less bugs than Checkov.

Like
Reply

Intéressant comme chiffres! Et plusieurs de ces outils s'intègre bien avec un tool comme DefectDojo

To view or add a comment, sign in

More articles by Pascal Robert

  • Detection of secrets in Git repos

    I was looking at different tools to avoid committing secrets (password, API token, SSH private key, TLS private key…

  • Migrate chat messages to MS Teams

    I was looking at a way to migrate the content of a Rocket.chat instance to MS Teams, while preserving at much as…

    1 Comment

Explore content categories