tfsec — screenshot of aquasecurity.github.io

tfsec

tfsec is a static security linter for Terraform. I find it useful for early detection of security misconfigurations in my infrastructure-as-code.

Visit aquasecurity.github.io →

Questions & Answers

What is tfsec?
tfsec is a static analysis security scanner designed for Terraform code. It identifies potential security issues and misconfigurations in Infrastructure-as-Code templates before deployment.
Who should use tfsec?
tfsec is primarily for developers, DevOps engineers, and security teams working with Terraform. It helps them proactively identify and remediate security vulnerabilities in their infrastructure definitions.
How does tfsec compare to other Terraform security tools?
tfsec focuses on a developer-first approach, providing clear, actionable feedback directly in CI pipelines or locally. It deeply integrates with the official HCL parser to ensure accurate detection of security issues specific to Terraform syntax.
When should tfsec be incorporated into a development workflow?
tfsec should be used early and often, ideally as part of a pre-commit hook, during code review, or within CI/CD pipelines. Running it early allows for quick detection and remediation of security concerns before infrastructure changes take effect.
What kind of security issues can tfsec detect?
tfsec can detect a wide range of security misconfigurations, such as overly permissive ingress/egress rules, unencrypted storage, exposed secrets, disabled logging, and insecure default settings across various cloud providers supported by Terraform.