Skip to content
SPECIFICTION
Get listed

cfn-nag vs kube-score

cfn-nag

github.com

kube-score

kube-score.com

Side by side

Figurecfn-nagkube-score
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
Web—Yes
Windows—Yes
macOSYesYes
LinuxYesYes
Self-hostedYesYes
Plans published11
Spec score · Infrastructure Testing Tools8.0 (#9)8.2 (#5)
Spec score · IaC Security Scanners8.0 (#7)8.3 (#4)
Spec score · Infrastructure as Code Security Software7.9 (#14)8.1 (#11)
ChecksThe project lists checks for overly permissive IAM and security group rules, disabled access logs or encryption, and password literals.Default checks include container resource settings, network policies, disruption budgets, probes, security contexts, and stable APIs.
IntegrationsThe project documents running cfn-nag in GitHub Actions workflows and deploying it in AWS CodePipeline through the AWS Serverless Application Repository.The README demonstrates use with Helm, Kustomize, static YAML files, existing clusters, and Docker.
LicenseThe project uses the MIT License, which grants permission to use, copy, modify, merge, publish, distribute, sublicense, and sell the software subject to its terms.The project is open source under the MIT license.
Purposecfn-nag scans CloudFormation templates for patterns that may indicate insecure infrastructure.kube-score statically analyzes Kubernetes object definitions and recommends improvements to security and resilience.

Plans

cfn-nag

  • cfn-nagFree

cfn-nag pricing →

kube-score

  • Free and open sourceFree

kube-score pricing →

In their own words

cfn-nag

cfn-nag is free, MIT-licensed software that scans AWS CloudFormation templates for patterns that may indicate insecure infrastructure. It checks for overly permissive IAM policies and security-group rules, disabled access logging or encryption, and password literals. The scanner accepts JSON, .template, YAML, and YML files, and recursively processes subdirectories when given a directory. Results print to standard output, with JSON output available; failures return a non-zero exit code while warnings return success. Installation is documented through RubyGems and Homebrew, with Ruby 2.5 or later required for gem installation. A Dockerfile and Docker Hub image are provided. cfn-nag can run in GitHub Actions and AWS CodePipeline. Profiles, deny lists, per-resource suppressions, and custom rules support policy tailoring. Static analysis needs supplied parameter values to assess them and does not inspect false Fn::If outcomes by default.

Visit github.com

kube-score

kube-score statically analyzes Kubernetes object definitions and recommends changes intended to improve application security and resilience. Its checks cover container limits, NetworkPolicy targeting, PodDisruptionBudget, Pod anti-affinity, container probes, security context, and stable APIs. Optional checks include matching resource requests and limits, container ports, and seccomp profile configuration. You can configure tests to be ignored or enabled globally or for individual objects. kube-score works with Helm, Kustomize, static YAML files, Docker, and resources retrieved from a Kubernetes cluster. Its browser demo accepts Kubernetes YAML or JSON and, according to the maker, processes it in the browser without sending data to a server. Local options include prebuilt binaries for Linux, macOS, and Windows, along with Docker, Homebrew, and Kubernetes Krew. Output formats include human-readable, JSON, CI, and SARIF. In CI/CD, critical errors return exit code 1; warnings can also be set as the exit threshold. The free, MIT-licensed project recommends analyzing all applications deployed to the same namespace together. Building from source requires Go 1.21 or later.

Visit kube-score.com