# tfsec

> Security scanner for your Terraform code

Source: https://talira.ai/catalog/tfsec-y170xfqd
Every listing: https://talira.ai/catalog.md

Status: tfsec looks abandoned: nothing has changed since May 2025, and its makers haven't said it has ended. Aqua moved tfsec's Terraform scanning into Trivy in 2023 and asks users to migrate; the repository's last commit and release (1.28.14) were in May 2025. Source: https://github.com/aquasecurity/tfsec/blob/master/README.md

- Kind: Open source
- Types: Command-line tool
- Categories: [devops / infrastructure as code / security scanning](https://talira.ai/categories/devops/infrastructure-as-code/security-scanning), [security / static analysis](https://talira.ai/categories/security/static-analysis)
- Platforms: linux, macos, windows, docker, cli[^1]
- Licence: MIT[^3]
- Pricing: Free and open source[^3]
- Free tier: yes[^3]
- Self-hostable: yes[^1]
- Backed by: [Aqua Security](https://talira.ai/orgs/aqua-security.md)
- Funding: Series E, 2024[^4]

tfsec is Aqua Security's static analysis scanner for [Terraform](https://talira.ai/catalog/terraform-zdejdqmx.md) code: it checks resources against hundreds of built-in rules for misconfigurations across the major cloud providers, evaluating HCL expressions, functions and module calls, with user-defined Rego policies and output as JSON, SARIF, JUnit, CSV or CheckStyle. In February 2023 Aqua announced that tfsec was joining [Trivy](https://talira.ai/catalog/trivy-bwebatvr.md): tfsec's engine became the basis of Trivy's IaC and misconfiguration scanning (`trivy config`), Aqua encourages tfsec users to move to Trivy and directs its engineering there, and tfsec's own last release was 1.28.14 in May 2025. It's MIT.

## Links

- Website: https://aquasecurity.github.io/tfsec/latest/
- GitHub: https://github.com/aquasecurity/tfsec
- Docs: https://aquasecurity.github.io/tfsec/latest/

## Problems it solves

- scan our Terraform code for insecure cloud settings like public S3 buckets before we apply it
- fail the CI build when a Terraform change opens a security group to the whole internet
- static analysis of Terraform modules, including remote modules, for cloud misconfigurations
- write our own Terraform security rules as Rego policies
- upload Terraform security findings to GitHub code scanning as SARIF
- what replaced tfsec now that Aqua moved Terraform scanning into Trivy

## Features

- hundreds of built-in rules across AWS, Azure, Google Cloud and other providers
- scans local and remote modules
- evaluates HCL expressions, Terraform functions and relationships between resources
- compatible with the Terraform CDK
- user-defined Rego policies
- output: default, JSON, SARIF, CSV, CheckStyle, JUnit, text
- IDE plugins for JetBrains, VS Code and Vim
- Docker images and a GitHub Action (tfsec-pr-commenter-action)

## Limitations

- No longer actively developed: Aqua directs its engineering to Trivy and asks tfsec users to migrate[^1][^2]

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.17 out of 1.
Signals: maintenance 0.00, backing 0.55, extensibility 0.20.

- backed by Aqua Security
- funding: Series E, 2024

Warnings:

- abandoned: not maintained since May 2025
- GitHub activity not fetched yet

## Related

- Works with [Terraform](https://talira.ai/catalog/terraform-zdejdqmx.md)

## Alternatives

- [Checkov](https://talira.ai/catalog/checkov-x7fvaqw4.md): Prevent cloud misconfigurations and find vulnerabilities during build-time in infrastructure as code, container images and open source packages
- [KICS](https://talira.ai/catalog/kics-t04x3tvt.md): Keeping Infrastructure as Code Secure
- [Trivy](https://talira.ai/catalog/trivy-bwebatvr.md): Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more
- [TFLint](https://talira.ai/catalog/tflint-4a8xgw05.md): A Pluggable Terraform Linter
- [DeepSource](https://talira.ai/catalog/deepsource-fd2qg7dz.md): AI code review platform that combines static analysis with AI review agents

## Sources

[^1]: https://github.com/aquasecurity/tfsec/blob/master/README.md (checked 20 Nov 2026)
[^2]: https://github.com/aquasecurity/tfsec/discussions/1994 (checked 20 Nov 2026)
[^3]: https://github.com/aquasecurity/tfsec/blob/master/LICENSE (checked 20 Nov 2026)
[^4]: https://www.aquasec.com/news/60m-additional-funding/ (checked 20 Nov 2026)
