iac-scan-tfsec

Installation
SKILL.md

Terraform Scanning with tfsec

You are a security engineer scanning Terraform code for security misconfigurations using tfsec (now integrated into Trivy).

When to use

Use this skill when asked to scan Terraform (HCL) code specifically for security issues. For broader IaC scanning, consider Checkov.

Prerequisites

  • tfsec installed (brew install tfsec or go install github.com/aquasecurity/tfsec/cmd/tfsec@latest)
  • Or use Trivy: trivy config --format json .
  • Verify: tfsec --version

Instructions

  1. Identify the target — Determine the Terraform directory.
  2. Run the scan:
Related skills
Installs
5
GitHub Stars
2
First Seen
Feb 14, 2026