Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    CloudFormation Template Security Audit

    by CashonlyTian

    1

    Deploying AWS infrastructure with insecure defaults is a primary cause of cloud breaches.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    CloudFormation Template Security Audit

    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

    CategoryScoreStatus
    Public Storage0/15FAILED
    Open Security Groups5/15WARNING
    Encryption at Rest10/10PASSED
    Secrets in Templates0/15FAILED
    IAM Wildcards5/10WARNING
    Logging & Monitoring10/10PASSED
    Backup & Retention5/5PASSED
    Metadata Hardening0/5FAILED
    Deletion Protection5/10WARNING
    Lambda Runtime2/5WARNING

    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.md to identify the specific lines in template.yaml triggering 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 Retain on 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

    Generated

    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 AdministratorAccess policy.
    • Resilience Review checks for DeletionPolicy on stateful resources, database backups, and Lambda runtime support.

    How it works

    1. Provide the local directory path containing your .yaml or .json CloudFormation templates.
    2. The agent runs a local Python-based scanner that evaluates your templates against 10 specific security categories.
    3. Review the generated scan-report.md which prioritizes fixes based on point loss and risk level.
    4. View the scan-date.png score-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 AdministratorAccess or 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed4 days ago

    What's inside

    Frequently Asked Questions

    The skill performs a local static analysis of your files; it does not require AWS CLI credentials or an active connection to your AWS account, ensuring your cloud environment remains isolated during the audit.

    The audit currently supports AWS CloudFormation templates in both YAML and JSON formats, though it is limited to files under 2MB and does not resolve complex intrinsic functions like ImportValue.

    You will receive the core auditing logic, a local Python-based scanning engine, and templates for the Markdown security report and the visual PNG score-card.

    The 0-100 score provides a standardized, objective metric for your infrastructure's security posture, making it easy to track improvements over time and present clear risks to non-technical stakeholders.

    Unlike generic LLM prompts that may hallucinate or miss syntax-specific risks, this skill uses a rigorous 10-point checklist designed specifically to catch nuances like IMDSv2 requirements and DeletionPolicy logic.

    New in LLM Ops