For a Terraform policy and compliance checker, the first results are tenable/terrascan, liamg/tfsec and aquasecurity/tfsec (tfsec is a dedicated Terraform static analysis and policy enforcement tool that detects security misconfigurations and compliance violations, directly covering HCL linting, policy-as-code rules, CI/CD integration, and cloud security auditing). bridgecrewio/checkov and tfsec/tfsec round out the shortlist. Compare the match explanations and check the project documentation against your requirements.
Automated tools that lint and validate infrastructure as code configurations against security and compliance policies.
Terrascan is a static analysis tool designed to evaluate infrastructure-as-code configuration files for security vulnerabilities and compliance violations. By parsing these files into an intermediate representation, it identifies risks before cloud resources are provisioned, serving as a compliance auditor for cloud-native environments. The tool functions as a policy-as-code engine, allowing users to define and enforce custom security rules and industry benchmarks using a specialized query language. It distinguishes itself through its ability to integrate directly into development and deploym
Terrascan is a static analysis tool purpose-built for infrastructure-as-code security and compliance, enforcing policies as code against Terraform configurations with HCL linting, custom rule engines, and CI/CD pipeline integrations — exactly the kind of Terraform policy enforcement and static analysis tool this search is after.
tfsec is a static analysis tool and security scanner for Terraform configuration files. It functions as an infrastructure as code security scanner and compliance linter designed to detect misconfigurations and vulnerabilities across multiple cloud providers before resources are deployed. The tool identifies security risks by analyzing infrastructure code and variable files to evaluate the final state of the environment. It supports custom policy enforcement and allows for the suppression of specific security warnings through inline comments. Its capabilities cover cloud security posture mana
tfsec is a dedicated Terraform static analysis and security scanner that enforces policy rules and compliance checks through custom rules and HCL-specific linting, with native CI/CD integration—exactly matching the need for automated Terraform policy enforcement and validation before deployment.
tfsec is a static analysis tool and infrastructure as code linter designed to detect security misconfigurations and compliance violations in Terraform infrastructure code. It functions as a cloud security posture tool and policy enforcement engine that evaluates configurations against established security benchmarks. The tool provides multi-cloud security auditing for providers including AWS, Azure, Google Cloud, and Kubernetes, as well as specialized scanning for DigitalOcean, OpenStack, CloudStack, and GitHub configurations. It identifies insecure settings such as public access or unencrypt
tfsec is a dedicated Terraform static analysis and policy enforcement tool that detects security misconfigurations and compliance violations, directly covering HCL linting, policy-as-code rules, CI/CD integration, and cloud security auditing.
Checkov is a static analysis tool and security scanner designed to identify misconfigurations in infrastructure as code, container images, and Kubernetes configurations. It functions as a cloud security posture tool, an SCA vulnerability scanner, and a secret scanning utility to prevent security breaches and version control leaks. The project distinguishes itself through deep graph analysis and variable resolution, allowing it to map relationships between interconnected resources and evaluate the final state of infrastructure attributes. It provides extensibility for defining custom security
Checkov is the leading open-source static analysis tool purpose-built for scanning Terraform and other IaC against security and compliance policies, with policy-as-code custom rules, terraform plan integration, and deep graph-based variable resolution — exactly the comprehensive policy enforcement and linting solution this search is after.
tfsec is a static analysis tool and security scanner for infrastructure as code, specifically designed to detect misconfigurations and compliance violations in Terraform and cloud infrastructure definitions before deployment. It functions as a cloud security policy engine that identifies vulnerabilities across multiple cloud platforms. The tool provides capabilities for cloud compliance auditing and scanning of Cloud Development Kit code. It supports custom security policy enforcement and allows for the definition of organization-specific security requirements. The scanner includes features
tfsec is a static analysis and security scanner for Terraform code, directly fulfilling the need for policy enforcement, HCL linting, custom rules, and CI/CD integration.
Terrascan is an infrastructure as code security scanner and cloud configuration auditor designed to detect security violations and compliance risks in cloud templates and Dockerfiles before provisioning. It utilizes the Open Policy Agent to evaluate infrastructure templates against both standard security policies and custom organizational rules. The project functions as a security guardrail within build pipelines, blocking risky deployments by integrating scanning logic directly into CI/CD workflows. It also includes a container registry vulnerability scanner that collects vulnerability data
Terrascan is an infrastructure-as-code security scanner that uses Open Policy Agent for policy-as-code enforcement, detects security and compliance violations in Terraform (HCL) templates, integrates into CI/CD pipelines, and supports custom rule definitions — directly matching this search for Terraform policy enforcement and static analysis.
Trivy is a comprehensive security scanner designed to identify vulnerabilities and misconfigurations across container images, filesystems, and infrastructure as code files. It functions as a software composition analysis tool and an infrastructure security scanner, providing automated checks for CI/CD pipelines and cloud environments to ensure the integrity of the software supply chain. The tool distinguishes itself through a modular, plugin-based architecture that allows for the independent inspection of diverse targets. It utilizes a declarative policy engine to evaluate configurations agai
Trivy is a comprehensive security scanner that includes static analysis and policy-based validation of Terraform infrastructure-as-code files, using a declarative policy engine for compliance, security, and best-practice checks directly in CI/CD pipelines — exactly matching the visitor's need for Terraform policy enforcement and linting.
Regula checks infrastructure as code templates (Terraform, CloudFormation, k8s manifests) for AWS, Azure, Google Cloud, and Kubernetes security and compliance using Open Policy Agent/Rego
Regula enforces customizable Rego policies on Terraform code, supports security and compliance checks, and integrates with CI/CD pipelines, directly fulfilling the need for Terraform policy enforcement and static analysis.
TFLint is a static analysis tool and infrastructure-as-code validator designed to identify errors and enforce best practices within Terraform configuration files. It functions as a quality gate for automated workflows and a language server that provides real-time diagnostics and linting errors directly within supported text editors. The project utilizes a gRPC plugin framework that allows for the integration of custom provider-specific validation rules via independent binaries and a dedicated SDK. This architecture separates core linting logic from cloud-specific validation, supporting the au
TFLint is a dedicated static analysis and linting tool for Terraform HCL, offering custom rules via a plugin SDK and CI/CD integration, but it focuses on configuration file analysis rather than direct terraform plan integration, which is one of the desired features.
Infracost is an infrastructure-as-code financial governance platform that calculates the cost impact of cloud resource changes. By performing static analysis on configuration files, the tool identifies infrastructure resources and their properties to estimate spending changes before deployment occurs. The platform distinguishes itself by integrating directly into development workflows, providing automated cost reporting and policy validation within pull request comments. It utilizes a modular architecture to map infrastructure definitions to real-time pricing data from cloud providers, allowi
Infracost is a cost-estimation platform that analyzes Terraform configurations for financial impact, not a tool for linting or validating code against security and compliance policy rules.
This project is a unified, cloud-native policy engine designed to decouple authorization and security logic from application codebases. It functions as a centralized authorization service that evaluates structured input data against declarative rules, enabling consistent policy enforcement across microservices, infrastructure, and continuous integration pipelines. The engine utilizes a specialized logic programming language to express complex constraints, which are compiled into an optimized intermediate representation for high-performance evaluation. By supporting both sidecar-based deployme
OPA is a general-purpose policy engine that can enforce rules on Terraform plans through integrations like Conftest, but it is not a dedicated Terraform linting and validation tool—it lacks built-in HCL-specific analysis and Terraform plan integration.
Cloud Custodian is a multi-cloud governance engine and policy enforcement tool designed to automate security, compliance, and cost optimization across various cloud providers. It functions as a rules engine that uses a declarative domain specific language to query cloud resources and execute corrective actions based on predefined filters. The system operates as a serverless policy orchestrator, deploying provider-specific functions to trigger real-time enforcement in response to cloud resource changes. It provides a provider-agnostic resource abstraction to maintain consistent operational pol
Cloud Custodian enforces policies on live cloud resources but does not lint or validate Terraform code or HCL, which is the core need for Terraform-specific static analysis and policy validation before deployment.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| tenable/terrascan | 5.2K | Go | Apache-2.0 | |
| liamg/tfsec | 7K | Go | MIT | |
| aquasecurity/tfsec |
| 7K |
| Go |
| MIT |
| bridgecrewio/checkov | 8.8K | Python | Apache-2.0 |
| tfsec/tfsec | 7K | Go | MIT |
| accurics/terrascan | 5.2K | Go | Apache-2.0 |
| aquasecurity/trivy | 36.5K | Go | Apache-2.0 |
| fugue/regula | 964 | Open Policy Agent | Apache-2.0 |
| terraform-linters/tflint | 5.7K | Go | MPL-2.0 |
| infracost/infracost | 12.4K | Go | Apache-2.0 |