Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

cfn-nag

Free#17 of 22 in Infrastructure as Code Security SoftwareIaC Security ScannersInfrastructure Testing Tools

cfn-nag: A focused, free scanner for common CloudFormation security risks. Ranked #17 of 22 in Infrastructure as Code Security Software by our editors (7.7/10); pricing: Free plan; best for free CloudFormation rule scanning.

7.7/10Editor score
cfn-nag7.7 Visit cfn-nag

At a glance

  • Editor score
    7.7 / 10
  • Pricing
    Free plan
  • Best for
    Free CloudFormation rule scanning
  • Free plan
    Yes
  • Paid from
    Free
  • Custom policies
    Yes
  • Facts checked
    20 Sep 2026
cfn-nag screenshot
  • Where it wins

    • Covers IAM, security groups, logging, encryption, and password literals
    • Supports custom rules, rule profiles, deny lists, and suppressions
    • Runs locally, in Docker, GitHub Actions, and AWS CodePipeline
  • Where it doesn't

    • Analyzes CloudFormation only, not Terraform or Kubernetes
    • Integration coverage centers on GitHub Actions and AWS services
    • Requires command-line workflows rather than a broader visual interface

Our verdict on cfn-nag

cfn-nag is an open-source Ruby command-line tool for auditing AWS CloudFormation templates against patterns associated with insecure infrastructure. It suits developers and platform teams that want focused rule scanning for JSON, YAML, and template files across macOS, Linux, or self-hosted environments. Findings cover overly permissive IAM and security-group rules, missing access logging or encryption, and password literals. Results can be returned as text or JSON, making the tool suitable for local checks and automated pipelines.

Its main strength is configurable policy depth within a narrow framework. Teams can use rule profiles and global deny lists, suppress findings for individual resources, provide parameter values, and create custom rules or custom rule repositories. That makes cfn-nag more adaptable than a fixed checklist while keeping its focus on CloudFormation. The Docker-based GitHub Action supports repository automation, and integrations also include AWS CodePipeline and the AWS Serverless Application Repository.

The trade-off is breadth. cfn-nag does not analyze Terraform or Kubernetes, so organizations managing multiple infrastructure-as-code frameworks will need additional tooling for those files. Its listed workflow is centered on a Ruby CLI, local or self-hosted execution, Docker, and selected AWS or GitHub integrations. Choose cfn-nag when free, open-source CloudFormation scanning and customizable rules are the priority. Consider an alternative when the requirement is multi-framework analysis, a wider integration ecosystem, or a workflow built around interfaces beyond command-line and pipeline execution.

Questions about cfn-nag

What does cfn-nag run on? macOS and Linux. It runs self-hosted.

What does cfn-nag integrate with? 3 integrations: GitHub Actions, AWS CodePipeline and AWS Serverless Application Repository.

Who is cfn-nag built for? Small businesses, mid-market companies and enterprises (our editorial estimate).

Your product? Our editors can test cfn-nag in depth and publish a review, labelled as paid · from $149/mo →

cfn-nag pricing

Plans Free planFree Free to use — no paid tier required for the core job.
See plans on github.com

cfn-nag fact sheet

Free planYes
Paid fromFree
Terraform analysisNo
Kubernetes analysisNo
CloudFormation analysisYes
Custom policiesYes
Secrets detectionYes
Pull request scanningNot verified
IDE integrationNot verified
DeploymentSelf-hosted
PlatformsmacOS, Linux
SupportCommunity, Docs
Built forSmall business, Mid-market, Enterprise (editorial estimate)
Integrations3 integrations: GitHub Actions, AWS CodePipeline, AWS Serverless Application Repository
PricingFree plan
Websitegithub.com
Facts checked20 Sep 2026

cfn-nag integrations

cfn-nag lists 3 integrations on its own site.

  • GitHub Actions
  • AWS CodePipeline
  • AWS Serverless Application Repository

Alternatives to cfn-nag

See all cfn-nag alternatives →

Also Ranked In

cfn-nag is ranked in 3 of our directories.

Used cfn-nag? Be the first to review it

The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used cfn-nag for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.

Write a reviewTwo minutes · verified accounts only · read by an editor before it appears

Reviews come only from verified accounts. Sign in or create an account first — your e-mail is never shown.

Your rating

0 characters · at least 80, up to 3,000

Posted from your verified account. Reviews appear after an editor reads them, usually within two working days.

Featured on iTechGuides

Featured on iTechGuides — cfn-nag 7.7/10

cfn-nag is listed in our Infrastructure as Code Security Software directory. Add the badge to your site — it links back to this page.

<a href="https://www.itechguides.com/products/cfn-nag/"><img src="https://www.itechguides.com/best/badge/cfn-nag.svg" alt="Featured on iTechGuides" width="230" height="46"></a>

Reviewed by iTechGuides Editors · Editorial team · Updated Nov 2026

Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.

Last updated · How we research and update