Looking to upgrade your CDKΒ Nag setup?See how CDK Insights compares
CDK Insights is a CDK-native security and cost scanner: 100+ rules across 35 AWS services, AI-powered recommendations, and a dashboard β free to start via npm. It works alongside CDK Nag, capturing its findings into your reports rather than replacing it.
How the CDK security tools compare
| Capability | β
Most completeCDK Insights | CDK Nag | Checkov | cfn-lint | cfn_nag | AWS Config |
|---|---|---|---|---|---|---|
| CDK-native (understands constructs) | ||||||
| Security best-practice rules | ||||||
| Cost optimisation analysis | ||||||
| AI-powered recommendations | ||||||
| Web dashboard & history | ||||||
| Pre-deployment (shift-left) | ||||||
| Free / open-source tier | Free tier | |||||
| Multi-framework (Terraform, K8s) | ||||||
| Actively maintained |
Comparison maintained by the CDK Insights team. Last updated June 2026. Tools evolve β verify specifics against each project's current documentation.
CDK Insights vs CDK Nag
CDK Nag is an open-source CDK Aspect that checks constructs against compliance rule packs (HIPAA, NIST, PCI DSS). It runs during synthesis and, by default, blocks on violations. CDK Insights is a separate tool with 100+ built-in static analysis rules covering security, cost, and operational best practices across 35 AWS services. If you use CDK Nag alongside CDK Insights, the cdk-insights aspect captures CDK Nag findings into your reports β without blocking your deploys, even on critical findings β so you decide what to fail on. The two tools work well together, and CDK Insights adds AI-powered analysis, a web dashboard, and team collaboration on top.
CDK Insights strengths
- βCompatible with CDK Nag; surfaces its findings in your reports
- βAI-powered recommendations that catch architectural issues
- βWeb dashboard with historical tracking
- βMultiple output formats (JSON, Markdown, Table, Summary)
CDK Nag strengths
- βFully open-source (Apache 2.0)
- βZero external dependencies
- βWorks in air-gapped environments
CDK Insights vs Checkov
Checkov is a general-purpose infrastructure-as-code scanner from Bridgecrew (Prisma Cloud). It supports Terraform, CloudFormation, Kubernetes, Helm, and more. Because Checkov targets multiple IaC frameworks, its CDK coverage is indirect. It scans the synthesized CloudFormation output rather than understanding CDK constructs natively. CDK Insights is built specifically for AWS CDK, which means it understands construct hierarchies, L2/L3 abstractions, and CDK-specific patterns that a generic scanner misses.
CDK Insights strengths
- βCDK-native analysis that understands constructs
- βFindings mapped to CDK code, not just CloudFormation resources
- βAI recommendations tailored to CDK patterns
- βFaster setup with zero configuration for CDK projects
Checkov strengths
- βSupports Terraform, Kubernetes, Helm, and other frameworks
- βLarge community-maintained rule library
- βPart of the Prisma Cloud ecosystem
CDK Insights vs cfn-lint
cfn-lint (CloudFormation Linter) validates CloudFormation templates against the AWS resource specification. It catches syntax errors, invalid property values, and type mismatches. It is a linter, not a security tool. cfn-lint tells you whether your template is valid CloudFormation; CDK Insights tells you whether your infrastructure is secure, well-architected, and following best practices. The two tools solve different problems and can be used together.
CDK Insights strengths
- βSecurity and best practices analysis, not just syntax validation
- β100+ rules covering security, cost, and operations
- βAI-powered architectural recommendations
- βUnderstands CDK constructs, not just raw CloudFormation
cfn-lint strengths
- βCatches CloudFormation syntax errors CDK Insights does not check for
- βValidates against the full AWS resource specification
- βUseful as a complementary tool alongside CDK Insights
CDK Insights vs cfn_nag
cfn_nag is the predecessor to CDK Nag. It scans raw CloudFormation templates (JSON/YAML) for security issues using a Ruby-based rule engine. It predates CDK and has no awareness of CDK constructs. cfn_nag is no longer actively maintained, and most teams have migrated to CDK Nag or other tools. CDK Insights covers everything cfn_nag checks and significantly more, with active development and CDK-native analysis.
CDK Insights strengths
- βActively maintained with regular rule updates
- βCDK-native analysis with construct awareness
- βBroader rule coverage (100+ rules vs ~70 in cfn_nag)
- βAI-powered recommendations beyond static rules
cfn_nag strengths
- βWorks on raw CloudFormation without CDK
- βRuby-based, useful if your tooling is Ruby-centric
CDK Insights vs AWS Config
AWS Config monitors your deployed AWS resources and evaluates them against rules in real time. It is a runtime compliance tool that detects drift and policy violations after resources are created. CDK Insights is a pre-deployment tool that catches issues before they reach AWS. The two are complementary: CDK Insights shifts security left into your development workflow, while AWS Config provides ongoing runtime monitoring in production.
CDK Insights strengths
- βPre-deployment analysis catches issues before they reach AWS
- βNo AWS costs for scanning (runs locally)
- βFaster feedback loop during development
- βUnderstands CDK constructs and developer intent
AWS Config strengths
- βMonitors live infrastructure in real time
- βDetects configuration drift after deployment
- βIntegrates with AWS Systems Manager for auto-remediation
Why Choose CDK Insights?
Built for CDK
CDK Insights understands CDK constructs, L2/L3 abstractions, and construct hierarchies. Findings map to your CDK code, not just raw CloudFormation resources.
Broadest Rule Coverage
100+ built-in rules across 35 AWS services. Compatible with CDK Nag for additional compliance checks. Security, cost optimization, and operational best practices in one tool.
AI-Powered Analysis
Go beyond pattern matching. The AI engine examines your overall architecture and produces context-aware recommendations that static rules cannot catch.
Free Static Analysis
Run unlimited static analysis scans with no account required. The free tier gives you 100+ rules across 35 AWS services, multiple output formats, and CLI integration forever.
CI/CD Ready
The official GitHub Action, CLI tool, and CDK Aspect mode let you integrate analysis wherever it fits your workflow. Block PRs on critical findings automatically.
Dashboard & Collaboration
Track findings over time, compare scans across branches, and assign issues to team members. The web dashboard gives your team visibility into security posture.
CDK security tool FAQs
Try CDK Insights for Free
100+ rules, zero configuration, no account required. Run your first scan in under a minute.