KICS IaC 安全扫描
KICS(Keeping Infrastructure as Code Secure)扫描 Terraform、Kubernetes、Dockerfile、CloudFormation、Ansible 等多种 IaC,内置大量安全查询。适合多技术栈的统一扫描。
支持 CLI、Docker 和 CI 集成,输出 JSON、SARIF、HTML 等格式。
Docker 扫描:
docker run -t -v $(pwd):/path \
checkmarx/kics:latest scan -p /path -o /path/results
本地 CLI:
kics scan -p ./infra --report-formats json,sarif --output-path ./reports
只扫描指定类型:
kics scan -p . -t Terraform,Kubernetes
按严重级别失败:
kics scan -p . --fail-on high
查看查询列表:
kics list-queries
.terraform 和缓存,结果噪声大。