KICS
$ kics Official Low Riskkics (Keeping Infrastructure as Code Secure) scans Terraform, Kubernetes, Dockerfiles, CloudFormation, Ansible, and Helm charts against 2,400+ Rego-based security queries. It runs offline in headless mode and emits structured JSON/SARIF reports via --report-formats.
brew install kics Local multi-IaC security scanner writing structured JSON/SARIF reports; avoids sending proprietary IaC repos to third-party MCP servers.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Outputs native JSON (--report-formats json) and SARIF, supports --no-progress, --no-color, and --fail-on, though writing reports to -o <dir> rather than stdout requires reading the generated file.
- Native
--report-formats json,sarifand--fail-onseverity gates - Writes
results.jsonto-odirectory rather than pure stdout JSON
Strictly static analysis with zero cloud mutations or credential requirements; only writes report artifacts to the -o path.
- Read-only source inspection; optional
--disable-full-descriptionsprevents external doc lookups
Go binary available via Homebrew, Docker, and GitHub Releases, though it bundles a large queries directory (assets/queries).
- Available via Homebrew, Docker, and binaries, but relies on
assets/queriesfolder
Covers Terraform, CloudFormation, Kubernetes, Docker, Ansible, and OpenAPI in one tool with 2,400+ security checks.
- Single scanner spans 15+ IaC and container formats
Official Checkmarx open-source project (Checkmarx/kics) under Apache-2.0.
- Maintained by Checkmarx under Apache-2.0
Comprehensive query catalog and CLI reference at docs.kics.io.
- Full CLI flags and query docs at docs.kics.io
Security, Auth & Guardrails
No authentication required; runs offline against local IaC files using bundled Rego queries.
Apache-2.0 open-source by Checkmarx; free to run locally and in CI.
# KICS Agent Rules - Always pass `--no-progress` and `-o /tmp/...` so scan reports do not dirty the working git tree. - Use `--fail-on high,critical` or `--ignore-on-exit results` depending on whether the check is advisory. - Scope large monorepos with `--type` or `--exclude-paths` to stay fast.
Agent-Ready Command Recipes
Safe Read-Only Queries
kics scan -p . --no-progress --silent --report-formats json -o /tmp/kics-out
Scans all supported IaC files silently and writes results.json to /tmp/kics-out without polluting the repo.
kics scan -p ./infra --type Terraform --fail-on high --no-progress
Scopes the scan to Terraform files and returns a non-zero exit code only on high-severity findings.
Strengths for Agents
- + Broad IaC coverage (Terraform, K8s, Docker, CloudFormation, Ansible) with 2,400+ queries.
- + Supports
--report-formats json,sarif,--no-progress, and--fail-onseverity thresholds. - + Runs completely locally without cloud credentials.
Caveats & Pitfalls
- ! Report JSON is written to a file inside
-o(results.json) rather than directly to stdout. - ! Full repo scans with default progress spinners can be verbose unless
--no-progress --silentis set.