IaC code security scanning pipeline - part 2
Back for the part two, where I will automate the security scanning of manually written IaC files, when these are pushed into a repository on github leveraging github worflows. I will go through some of the major security misconfigurations, existing threat vectors and solutions to mitigate them. Using semgrep for a specific scenario where other tools limitations hinder us. Code source: https://github.com/rgxsec/marizaws-project Tools: Checkov Trivy TruffleHog Semgrep Each of this tools has its own special skill, checkov speciality is to map misconfig findings to compliance standards like CIS AWS Benchmark, NIST, SOC2, PCI-DSS ect, besides having a very large library of built-in policies for Terraform; trivy is more like a swiss army knife, it can scan anything, dockerfiles, container images, kubernetes manifests etc, it also links the findings to real CVEs and attack threats; trufflehog is superb at looking and finding secrets and credentials in specific formats on IaC files and also in git history. Semgrep highly customizable, rule based for each dedicated circunstance or problem. ...