security-review-skill-for-terraform

Audit Terraform HCL, JSON, and Terragrunt configurations for AWS security risks.

316|42|Updated Apr 5, 2026
One-click install
npx skills add https://github.com/xwtro0tk1t-cloud/harness --skill security-review-skill-for-terraform
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-review-skill-for-terraform
Source: https://github.com/xwtro0tk1t-cloud/harness/tree/main/bundled-skills/security-review-skill-for-terraform
Command: npx skills add https://github.com/xwtro0tk1t-cloud/harness --skill security-review-skill-for-terraform

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Terraform/IaC security audits for AWS infrastructure. It helps teams identify hard-coded credentials, overly broad IAM permissions, public S3 exposure, unencrypted storage, leaked state, container privileges, missing logs, and insecure provider/module usage in Terraform configurations across .tf, .tfvars, JSON, or Terragrunt.

Core Features & Use Cases

  • Identify hard-coded credentials and secrets in Terraform code to prevent credential leakage.
  • Detect overly permissive IAM policies and wildcard actions/resources, public S3 exposure, and unencrypted or leaked state data.
  • Use case: during CI/CD, perform a full or differential IaC audit to surface actionable fixes and generate a remediation plan.

Quick Start

Use security-review-skill-for-terraform to scan your Terraform/IaC codebase and generate actionable remediation findings.

Frequently Asked Questions about security-review-skill-for-terraform

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan Terraform code for hard-coded credentials and AWS IAM misconfigurations?

To scan Terraform code for hard-coded credentials and AWS IAM misconfigurations, apply a security audit to your .tf, .tfvars, JSON, or Terragrunt files. This surfaces overly permissive policies and provides structured findings with remediation guidance.

What is the best way to detect public S3 exposure and unencrypted storage in Terraform IaC?

Detecting public S3 exposure and unencrypted storage in Terraform IaC involves auditing your configurations for insecure resource definitions. The process identifies vulnerable storage settings and outputs actionable fixes to secure your AWS infrastructure.

Can I run a Terraform security audit during CI/CD pipeline deployment?

Yes, you can run a Terraform security audit during CI/CD pipeline deployment. Applying the audit to your repositories and pipelines surfaces security risks and misconfigurations during development, allowing you to generate a remediation plan before deployment.

Does the IaC security review work with Terragrunt and JSON configurations?

The IaC security review works with Terragrunt and JSON configurations, alongside standard Terraform HCL files. It analyzes these formats to detect insecure provider or module usage, missing logging, and privileged container settings across your codebase.

Why should I audit Terraform state files for leaked data and missing logs?

Auditing Terraform state files for leaked data and missing logs prevents sensitive information exposure and ensures traceability. The audit identifies leaked state data and missing logging configurations, outputting structured findings to secure your AWS resources.