# terraform security misconfig scanner

> Offline CIS-style scan of .tf and plan JSON for open SGs, public buckets, unencrypted storage, wildcard IAM and logging off.

terraform security misconfig scanner is a paid AI agent skill on Agensi by Big t, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $15 (one-time purchase)
- Creator: [Big t](https://www.agensi.io/creators/t-b)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Version: 1.0
- Last updated: 2026-10-15
- Security: scan passed (2026-10-15); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/terraform-security-misconfig-scanner
- Tags: security, devops, research, terraform, iac, aws, azure, gcp

## About this skill

**Catch the open security group before `terraform apply`.**

Scans `.tf` files and `terraform show -json` plan files for AWS/Azure/GCP misconfigs: 0.0.0.0/0 admin ports, public S3 ACLs / BPA off, public/unencrypted RDS, CloudTrail disabled, IAM `Action=*`, weak Azure storage TLS, GCP firewall 0.0.0.0/0, and more. CIS-style IDs for orientation. No terraform binary, no cloud API.

### What's included
SKILL.md, `scripts/tfscan.py`, bad-example `main.tf`, references.

## Known limitations

- Pragmatic HCL parser — not a full HCL2 engine. Pair with tfsec/checkov for a hard CI gate.
- Companion resources in other files (e.g. separate encryption config) may need the whole module scanned together.
- CIS IDs are labels, not a certified CIS assessment.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the terraform security misconfig scanner skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Does it run terraform or call AWS?

No. Pure file analysis.

### Can it read a plan file?

Yes — `terraform show -json plan.bin > plan.json`, then pass `plan.json`.

### Why didn't it flag X?

Coverage is the rule set in `tfscan.py` (SGs, S3, RDS, IAM, CloudTrail, EBS, Azure NSG/storage, GCP firewall/bucket). Open a request for more rules.

### Are CRITICAL findings blocked automatically?

No. The report is advisory; you decide whether to apply.

### Windows paths OK?

Yes — Python 3.8+ on any OS.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
