1
    Cloud & Infrastructure Config Security Gate — Catch Misconfigurations Before You terraform apply

    Cloud & Infrastructure Config Security Gate — Catch Misconfigurations Before You terraform apply

    by PubsProToolkit

    An adversarial gate that audits cloud and infrastructure-as-code config — Terraform, Kubernetes, IAM, security groups, buckets — for the misconfigurations that cause real breaches, and returns a structured PASS/REVISE/BLOCK verdict with severities and exact fixes before anything reaches your environment.

    Updated Jun 2026
    Security scanned
    GPT

    $34

    · or 170 credits

    30-day refund guarantee

    Secure checkout via Stripe

    Included in download

    • Auditing a Terraform or CloudFormation plan before terraform apply
    • Reviewing Kubernetes manifests and IAM policies in a CI/CD pipeline
    • file_read automation included
    • Ready for GPT
    • Instant install

    Sample input

    resource "aws_s3_bucket" "logs" { bucket = "app-prod-logs" acl = "public-read" } resource "aws_iam_policy" "app" { policy = jsonencode({ Statement = [{ Effect = "Allow", Action = "", Resource = "" }] }) }

    Sample output

    VERDICT: BLOCK

    SUMMARY: A log bucket is publicly readable and an IAM policy grants unrestricted access to every action on every resource. Both are critical and this config is not safe to apply.

    FINDINGS:

    • [SEVERITY: CRITICAL] aws_s3_bucket.logs — acl = "public-read" exposes production logs (which often contain tokens and PII) to the public — set acl to "private" and attach a public-access block.
    • [SEVERITY: CRITICAL] aws_iam_policy.app — Action "" on Resource "" is full admin access — scope to the specific actions and ARNs the workload actually needs.

    BLOCKERS: both CRITICAL findings must be fixed before apply.

    SAFE TO APPLY: no

    About This Skill

    The Cloud & Infrastructure Config Security Gate turns your agent into a skeptical cloud security reviewer that judges configuration before it ships. Give it any infrastructure-as-code or cloud config — Terraform, CloudFormation, Kubernetes and Helm, Docker Compose, IAM policies, security-group rules, bucket settings, or CI/CD pipelines — and it runs an ordered, adversarial audit across five fronts: identity and access (wildcard permissions, over-broad roles, long-lived credentials), network exposure (open-internet ingress, public databases, permissive groups), data protection (public buckets, disabled encryption, plaintext state), secrets and supply chain (hardcoded keys, unpinned images, untrusted registries), and guardrails and drift (logging, deletion protection, resource limits). It does not rewrite or apply anything — it returns a structured PASS / REVISE / BLOCK verdict, with every finding mapped to the exact resource and line, a CRITICAL/HIGH/MEDIUM/LOW severity, and the specific fix. A single CRITICAL or HIGH forces BLOCK, so the dangerous mistakes — a public customer-data bucket, a database open to 0.0.0.0/0, an inline API key — get stopped before terraform apply, not discovered in an incident review. It is a pre-apply judgment gate, not a cloud scanner or auto-remediation tool.

    Use Cases

    • Auditing a Terraform or CloudFormation plan before terraform apply
    • Reviewing Kubernetes manifests and IAM policies in a CI/CD pipeline
    • Auditing inherited cloud infrastructure you did not write

    Reviews

    No reviews yet - be the first to share your experience.

    Only users who have downloaded or purchased this skill can leave a review.

    Security Scanned

    Passed automated security review

    Permissions

    Read Files

    File Scopes

    cloud-infrastructure-config-security-gate/**

    Read-only by design. The skill reads the configuration text you provide and reasons about it. It never connects to a cloud account, makes network calls, modifies files, or applies infrastructure — it only judges the config and reports findings, so you stay in full control of what is applied.

    Model-agnostic. Works with any SKILL.md-compatible agent (Claude, GPT, Gemini, Llama, Mistral). Pure reasoning over the config text you provide — read-only, with no cloud connection, no network, and no write access. It judges configuration and reports findings; it never modifies or applies infrastructure.

    Creator

    PubsProToolkit builds AI agent skills that bring regulated-industry rigor to written output. Created by a CMPP-certified medical writer with a PhD and 10+ years in pharma — covering clinical and scientific publishing, plus evidence-grounded QC for any agent.

    Frequently Asked Questions

    More Premium Skills

    $34