Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Terraform
  3. tfsec

tfsec

MITGov1.28.14

A static analysis security scanner for Terraform code that identifies misconfigurations across major cloud providers.

Visit WebsiteGitHubGitHub
7.1k stars560 forks0 contributors

What is tfsec?

tfsec is a static analysis security scanner specifically designed for Terraform infrastructure as code. It analyzes Terraform configurations to identify potential security misconfigurations and compliance violations before deployment to cloud environments. The tool helps prevent security breaches by catching issues early in the development cycle.

Target Audience

DevOps engineers, infrastructure developers, and security teams working with Terraform to manage cloud infrastructure across AWS, Azure, GCP, Kubernetes, and other platforms.

Value Proposition

Developers choose tfsec for its deep Terraform-specific analysis capabilities, comprehensive multi-cloud coverage, and seamless integration into CI/CD pipelines. It provides fast, accurate security feedback directly in the development workflow.

Overview

Tfsec is now part of Trivy

Use Cases

Best For

  • Scanning Terraform code for AWS security misconfigurations before deployment
  • Integrating security checks into Terraform CI/CD pipelines
  • Checking Kubernetes Terraform configurations for compliance violations
  • Identifying public exposure risks in cloud infrastructure code
  • Enforcing security policies across multi-cloud Terraform deployments
  • Automating security reviews for infrastructure as code repositories

Not Ideal For

  • Projects using multiple infrastructure as code tools beyond Terraform (e.g., CloudFormation, Pulumi)
  • Teams requiring guaranteed long-term support and active feature development
  • Organizations needing commercial support or extensive third-party integrations
  • Environments where scanning must include non-cloud or application code security issues

Pros & Cons

Pros

Deep Terraform Analysis

Evaluates HCL expressions, Terraform functions, and resource relationships, not just literal values, reducing false positives.

Comprehensive Multi-Cloud Coverage

Includes hundreds of built-in rules for AWS, Azure, GCP, Kubernetes, and minor providers, covering most cloud deployments.

Fast and Scalable

Capable of quickly scanning huge repositories, making it efficient for CI/CD pipelines with large codebases.

Flexible Ignore Rules

Supports inline comments with expiration dates for ignoring warnings, aiding in managed technical debt and compliance.

Cons

Imminent Obsolescence

The project is being phased out in favor of Trivy, meaning future updates, new checks, and engineering focus will shift away from tfsec.

Terraform-Only Limitation

Only scans Terraform code, not other IaC languages or general application security, restricting its use in mixed environments.

Limited Older Version Support

For Terraform <0.12, only v0.1.3 of tfsec is available with fewer checks and reduced functionality, hindering legacy projects.

Frequently Asked Questions

Quick Stats

Stars7,056
Forks560
Contributors0
Open Issues0
Last commit7 months ago
CreatedSince 2019

Tags

#google-cloud-platform#azure#terraform-security#ci#security-scanning#compliance-checking#security#terraform#infrastructure-as-code#devsecops#ci-cd-integration#compliance#scanner#aws#static-analysis#cloud-security

Built With

G
Go

Links & Resources

Website

Included in

Terraform6.3k
Auto-fetched 1 day ago

Related Projects

terraformerterraformer

CLI tool to generate terraform files from existing infrastructure (reverse Terraform). Infrastructure to Code

Stars14,540
Forks1,837
Last commit7 months ago
InfracostInfracost

Cloud cost intelligence for engineers, AI coding agents, and CI/CD 💰📉 Shift FinOps Left!

Stars12,579
Forks701
Last commit2 days ago
TerragruntTerragrunt

Terragrunt is a flexible orchestration tool that allows Infrastructure as Code written in OpenTofu/Terraform to scale.

Stars9,891
Forks1,244
Last commit1 day ago
atlantisatlantis

Terraform Pull Request Automation

Stars9,331
Forks1,360
Last commit1 day ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub