Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

KICS

$ kics Official Low Risk
Checkmarx · Cloud & Infra · Apache-2.0 · macos / linux / windows

kics (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.

FCRS-1.0 Score
90 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install kics
CLI vs MCP Decision CLI Preferred vs MCP

Local multi-IaC security scanner writing structured JSON/SARIF reports; avoids sending proprietary IaC repos to third-party MCP servers.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

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,sarif and --fail-on severity gates
  • Writes results.json to -o directory rather than pure stdout JSON
Trust & Safety 24 / 25

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-descriptions prevents external doc lookups
Setup & Portability 13 / 15

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/queries folder
Utility & Efficiency 14 / 15

Covers Terraform, CloudFormation, Kubernetes, Docker, Ansible, and OpenAPI in one tool with 2,400+ security checks.

  • Single scanner spans 15+ IaC and container formats
Maintenance & Lineage 9 / 10

Official Checkmarx open-source project (Checkmarx/kics) under Apache-2.0.

  • Maintained by Checkmarx under Apache-2.0
Docs & Verifiability 9 / 10

Comprehensive query catalog and CLI reference at docs.kics.io.

  • Full CLI flags and query docs at docs.kics.io

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No authentication required; runs offline against local IaC files using bundled Rego queries.

Side Effects
Read-Only Local Write
Cost & Quotas

Apache-2.0 open-source by Checkmarx; free to run locally and in CI.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Scan IaC directory and print JSON report
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.

Filter scan to Terraform with high-severity gate
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-on severity 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 --silent is set.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI