- Home
- Skills
- DevOps & Cloud
- CloudFormation Safety Check
More screenshots
Works with the AI Agents you already use
CloudFormation Safety Check
One bucket policy with Principal "*", one security group with port 22 open to 0.0.0.0/0, or one password in the template is enough to lose data or the whole AWS account.
$5
CloudFormation Safety Check
Example session with this skill installed
Check this project with cloudformation-safety-check.
- Read your context and instructions
- Compiled the cloudformation safety check
$ python3 scripts/check_cfn.py examples/risky
BLOCK infra/template.yaml:12 C01 BUCKET_OPEN_TO_EVERYONE
AccessControl: PublicReadWrite
Why: An S3 bucket lets everyone write, delete or list (AccessControl PublicReadWrite, or a bucket policy that allows s3:, s3:Put, s3:Delete* or s3:List* to Principal * with no Condition). Anyone can upload malware, delete your files or run up your bill.
Safer: Remove the public grant, keep Block Public Access on, and give access to specific roles; serve public files through CloudFront with origin access control.
BLOCK infra/template.yaml:34 C02 ADMIN_PORT_OPEN
BLOCK infra/template.yaml:46 C05 PUBLIC_DATABASE
BLOCK infra/template.yaml:48 C03 SECRET_IN_TEMPLATE
BLOCK infra/template.yaml:73 C04 ADMIN_PERMISSIONS
REVIEW infra/template.yaml:4 C14 SECRET_PARAMETER_SHOWN
REVIEW infra/template.yaml:23 C12 BUCKET_READABLE_BY_EVERYONE
REVIEW infra/template.yaml:38 C13 PORT_OPEN_TO_INTERNET
REVIEW infra/template.yaml:39 C11 STORAGE_NOT_ENCRYPTED
REVIEW infra/template.yaml:41 C15 DATA_DELETED_WITH_STACK
REVIEW infra/template.yaml:49 C15 DATA_DELETED_WITH_STACK
REVIEW infra/template.yaml:78 C16 FUNCTION_OPEN_TO_ANYONE
REVIEW infra/template.yaml:85 C17 PLAIN_HTTP_ALLOWED
(Each finding also has Why and Safer lines, as in the first one.)
Verdict: BLOCK. Checked 1 file, 1 with CloudFormation content.
This is a static check of file text. NOT FLAGGED is not a guarantee.
Connects securely to your tools. The creator never sees your data.
About this skill
One bucket policy with Principal "*", one security group with port 22 open to 0.0.0.0/0, or one password in the template is enough to lose data or the whole AWS account. This skill finds those and nine other CloudFormation mistakes before you deploy, and tells you how to fix each one.
Your agent runs a scanner on your templates in YAML (with !Ref, !Sub, !GetAtt and !If) and JSON, including SAM and CDK output. It finds each resource by its Type and judges the properties that matter for it, treats intrinsic functions and {{resolve:...}} dynamic references as references, not values, and reports each finding at the property's line. It never calls AWS or deploys anything. It returns BLOCK, REVIEW, or NOT FLAGGED, with the file, line, reason, and a safer approach. Secrets are never printed.
What it checks
BLOCK
- C01: S3 buckets that everyone can write to, delete from or list
- C02: SSH, RDP, database or all ports open to 0.0.0.0/0 or ::/0
- C03: passwords, keys and tokens written in the template or parameter defaults
- C04: IAM policies with Action * on Resource *, or AdministratorAccess
- C05: RDS, Aurora or Redshift with PubliclyAccessible true
REVIEW
- C11: RDS, EBS, EFS or Redshift storage without encryption
- C12: S3 buckets that everyone can read
- C13: other ports open to the internet
- C14: secret parameters without NoEcho
- C15: DynamoDB, EFS or RDS data deleted with the stack
- C16: Lambda function URLs or permissions open to anyone
- C17: load balancers or CloudFront serving plain HTTP
What's included
- The scanner (Python 3.9+, standard library only)
- A rules guide with the reason and safer approach for each rule
- A risky and a safe example template, and the real report the scanner produces on the risky one
Limits It reads each template as written: values passed at deploy time, Conditions, nested stacks, StackSets, account-level Block Public Access and service control policies are not evaluated. NOT FLAGGED is not a guarantee.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.
Static check of template text. Deploy-time parameters, Conditions and nested stacks are not evaluated. NOT FLAGGED is not a guarantee.
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 5 days ago
Permissions
Runs one local Python script in the terminal. It reads your project's files, writes nothing, and makes no network calls. The example template includes a clearly fake, inert password (not-a-real-...) for the scanner to find. Nothing is deployed.