Works with the AI Agents you already use
CloudFormation Template Security Audit
by CashonlyTian
Deploying AWS infrastructure with insecure defaults is a primary cause of cloud breaches.
$7
CloudFormation Template Security Audit
Example session with this skill installed
Audit the CloudFormation templates in the ./infra/production folder for project "NebulaCore" with brand "Nebula Security".
- Read your context and instructions
- Compiled the cloudformation template security
- Generated the document
I have completed the security audit for project
NebulaCore. The scan identified critical-risk misconfigurations that should be addressed before deployment.
Score: 2/100
Grade: F
Risk Level: CRITICAL
Findings: 60 (16 critical, 24 high, 20 medium)
Audit Results
| Category | Score | Status |
|---|---|---|
| Public Storage | 0/15 | FAILED |
| Open Security Groups | 5/15 | WARNING |
| Encryption at Rest | 10/10 | PASSED |
| Secrets in Templates | 0/15 | FAILED |
| IAM Wildcards | 5/10 | WARNING |
| Logging & Monitoring | 10/10 | PASSED |
| Backup & Retention | 5/5 | PASSED |
| Metadata Hardening | 0/5 | FAILED |
| Deletion Protection | 5/10 | WARNING |
| Lambda Runtime | 2/5 | WARNING |
Top 3 Recommended Fixes
Remediate Public Access: Update S3Bucket resources to include PublicAccessBlockConfiguration and ensure PubliclyAccessible is set to false for RDS instances.
2.
Remove Hardcoded Secrets: Move literal values found in Parameters.DbPassword.Default to AWS Secrets Manager or use parameter references.
3.
Enforce IMDSv2: Update AWS::EC2::Instance LaunchTemplateData to set HttpTokens: required to prevent metadata service exploits.
The visual scorecard has been generated at scan-2025-05-20.png and a detailed line-by-line finding report is available at scan-report.md.
Next steps
- Review
scan-report.mdto identify the specific lines intemplate.yamltriggering the Secret and IAM failures. - Apply the recommended fixes for the top 3 issues and re-run the scan to verify the new score.
- Implement a DeletionPolicy of
Retainon your production DynamoDB tables to prevent accidental data loss.
Clean demo: Score 100/100, Grade A, 0 findings.
scan-2025-05-20.png
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Deploying AWS infrastructure with insecure defaults is a primary cause of cloud breaches. This skill audits local CloudFormation templates to identify misconfigurations before they reach production. It prevents the deployment of public S3 buckets, open security groups, and unencrypted databases by scanning your code against 10 critical security checks.
What it does
- Storage Audit flags public S3 buckets, open database instances, and missing Public Access Blocks.
- Network Security identifies security groups opening sensitive ports like 22, 3389, or 5432 to
0.0.0.0/0. - Encryption Check verifies that S3 buckets, EBS volumes, and DynamoDB tables have encryption at rest enabled.
- Secret Detection finds hardcoded passwords, keys, or tokens in resource Properties or parameter Defaults.
- IAM Analysis detects wildcard actions, wildcard principals, and the use of the
AdministratorAccesspolicy. - Resilience Review checks for
DeletionPolicyon stateful resources, database backups, and Lambda runtime support.
How it works
- Provide the local directory path containing your
.yamlor.jsonCloudFormation templates. - The agent runs a local Python-based scanner that evaluates your templates against 10 specific security categories.
- Review the generated
scan-report.mdwhich prioritizes fixes based on point loss and risk level. - View the
scan-date.pngscore-card for a high-level visual summary of your stack's security posture.
Frameworks & tools
Specifically designed for AWS CloudFormation templates in YAML or JSON format. The auditing logic utilizes a local Python script for static analysis without requiring AWS CLI credentials or active cloud connections.
Why this beats prompting it yourself
Generic prompts often miss specific CloudFormation syntax nuances like IMDSv2 requirements or DeletionPolicy logic. This skill provides a quantitative 0-100 score and consistent grading system, ensuring every audit follows the same rigorous 10-point checklist.
Use cases
- Auditing a legacy CloudFormation codebase to establish a security baseline.
- Pre-deployment check to avoid launching resources with
AdministratorAccessor open ingress. - Generating a visual security score-card for stakeholder reports or client handovers.
- Rapidly identifying end-of-life Lambda runtimes across complex stacks.
Known limitations
Does not resolve intrinsic functions like Fn::ImportValue or evaluate Condition branches. Files over 2MB are skipped.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.
Does not resolve complex Fn::Sub/Join strings or Fn::If conditions. Static analysis only. Templates over 2MB are ignored. Local scanning only, no live AWS environment probing.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 4 days ago
- Software
Python 3Pillow