
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
cdk-insights
Advanced tools
AWS CDK security and cost analysis tool with AI-powered insights
AI-Powered Analysis Tool for AWS CDK Stacks
CDK Insights helps you identify security vulnerabilities, cost optimization opportunities, and best practice issues in your AWS CDK infrastructure. It combines static analysis with AI-powered recommendations to provide actionable insights for improving your cloud infrastructure.
🚧 Currently in Beta - We're actively developing and improving CDK Insights. The current version is stable for testing and early adoption, but we recommend using it in development environments first.
# Run immediately without installing anything
npx cdk-insights scan
That's it! CDK Insights will:
For Teams (Recommended):
# Install in your project
npm install --save-dev cdk-insights
# Add to your package.json scripts
{
"scripts": {
"cdk-insights": "node scripts/cdk-insights-wrapper.js"
}
}
Using NPM Scripts (Recommended):
After installing, you can use convenient npm scripts:
# Basic scan
npm run scan
# Scan all stacks
npm run scan:all
# Different output formats
npm run scan:json
npm run scan:markdown
npm run scan:summary
# Setup CDK Nag integration
npm run cdk-insights -- setup-cdk-nag
# Install Git pre-commit hooks
npm run cdk-insights -- hook
# Cache management
npm run cdk-insights -- cache-status
npm run cdk-insights -- cache:clear
# Configuration
npm run cdk-insights -- config list
For Personal Use:
# Install globally
npm install -g cdk-insights
# Use from anywhere
cdk-insights scan
# Scan a specific stack
cdk-insights scan MyStack
# Scan all stacks in your project
cdk-insights scan --all
# Interactive mode (recommended for first time)
cdk-insights scan
🔍 Analyzing stack: MyStack
📊 Found 12 issues across 8 resources
🔴 CRITICAL (2)
• IAM policy allows full access to all resources
• S3 bucket allows public ACLs
🟡 MEDIUM (7)
• Lambda function has high memory allocation
• DynamoDB table has no auto-scaling enabled
🟢 LOW (3)
• S3 bucket does not use Intelligent-Tiering
✅ Analysis complete.
Choose how you want to see your results:
# Table format (default) - great for quick review
cdk-insights scan --output table
# Markdown format - perfect for GitHub issues and PRs
cdk-insights scan --output markdown
# JSON format - ideal for CI/CD pipelines
cdk-insights scan --output json
# Summary format - just the essentials
cdk-insights scan --output summary
CDK Insights checks your infrastructure across these AWS services:
Service | What It Checks | Focus Areas |
---|---|---|
IAM | Policy permissions | Security, Least privilege |
S3 | Bucket settings | Security, Cost optimization |
Lambda | Function configuration | Performance, Security |
DynamoDB | Table settings | Cost optimization, Performance |
RDS | Database configuration | Security, Cost optimization |
EC2 | Instance settings | Cost optimization, Security |
API Gateway | Endpoint security | Security |
CloudTrail | Logging setup | Security, Compliance |
KMS | Key policies | Security |
SNS/SQS | Message security | Security |
Step Functions | Workflow configuration | Security, Performance |
EventBridge | Rule configuration | Security, Performance |
Secrets Manager | Secret configuration | Security |
EBS | Volume management | Cost optimization |
# Focus on security issues
cdk-insights scan --services IAM,S3,KMS,SecretsManager
# Find cost savings opportunities
cdk-insights scan --services EC2,DynamoDB,RDS,EBS
# Full scan before going to production
cdk-insights scan --all --output markdown
# Automated checks in your deployment process
cdk-insights scan --output json | jq '.summary.totalIssues'
Set your preferences once and CDK Insights will remember them:
# Set your preferred output format
cdk-insights config set output markdown
# Set default services to scan
cdk-insights config set services IAM,S3,Lambda
# View your current settings
cdk-insights config list
# Clear your settings
cdk-insights config reset
Upgrade to Pro for intelligent, context-aware recommendations:
Learn more about AI features →
CDK Insights offers three flexible tiers to meet your needs:
Perfect for getting started and small projects
Price: $0/month
Core Features:
Limits:
Ideal for development teams and growing projects
Price: $29/month
Everything in Free, plus:
Limits:
For large organizations with advanced requirements
Price: Contact sales
Everything in Pro, plus:
Limits:
Free → Pro: Unlock AI-powered insights and team features Pro → Enterprise: Get enterprise-grade features and unlimited usage
Feature Category | Free | Pro | Enterprise |
---|---|---|---|
Scanning | 5/month | Unlimited | Unlimited |
AI Features | ❌ | 100/month | Unlimited |
Team Features | 1 user | 5 users | Unlimited |
Integrations | Basic | GitHub | All |
Support | Community | Priority | |
Compliance | Basic | SOC2/HIPAA | FedRAMP |
Get Started Free → | View Pro Plan → | Contact Sales →
For detailed pricing information, see our complete pricing guide.
Create GitHub issues directly from your findings:
# Create issues for all findings
cdk-insights scan --with-issue
# Create issues for critical findings only
cdk-insights scan --with-issue --rule-filter Security
"No stacks found"
cdk synth
first to generate CloudFormation templates"Permission denied"
"Scan is slow"
--services
to limit what gets scanned--output summary
for faster resultsCDK Insights is licensed under the MIT License. Some functionality integrates with cdk-nag, which is licensed under Apache License 2.0.
Ready to improve your CDK infrastructure? Start with npx cdk-insights scan
and discover what insights await! 🚀
FAQs
AWS CDK security and cost analysis tool with AI-powered insights
The npm package cdk-insights receives a total of 17 weekly downloads. As such, cdk-insights popularity was classified as not popular.
We found that cdk-insights demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.