Skip to content

Tfsec + AppGuard

Static analysis for Terraform code to detect potential security issues.

What is Tfsec?

Tfsec is a static analysis tool for Terraform code that scans for security misconfigurations. It checks Terraform plans and code against a library of security best practices, covering AWS, Azure, GCP, and generic providers. Tfsec provides inline annotations and integrates with CI/CD pipelines for automated security checks.

Supported result formats

JSONSARIF

Integrate Tfsec with AppGuard

1

Install Tfsec

Install Tfsec via the official script.

curl -fsSL https://raw.githubusercontent.com/aquasecurity/tfsec/master/install.sh | bash
2

Scan your Terraform

Run Tfsec against your Terraform directory.

tfsec . --format json --out results.json
3

Push to AppGuard

Send the results to AppGuard.

curl -X POST "$APPGUARD_PUBLIC_URL/api/ingest" \
  -H "X-Api-Token: $API_TOKEN" \
  -F "[email protected]"

What AppGuard adds to Tfsec

IaC correlation

See Terraform findings alongside Checkov and Kubernetes scanner results.

Remediation tracking

Track Terraform security findings through detection to fix.

Provider-specific views

Filter findings by cloud provider (AWS, Azure, GCP).

Track Tfsec results with AppGuard

Self-host AppGuard and connect Tfsec in minutes. AGPLv3 licensed, full data ownership.

Frequently Asked Questions

What is the difference between Tfsec and Checkov?
Tfsec is Terraform-specific with deep provider coverage. Checkov supports Terraform, CloudFormation, Kubernetes, and more. Tfsec may catch Terraform-specific issues that Checkov misses. Use both for comprehensive IaC coverage.
Does Tfsec support Terraform plans?
Yes. Tfsec can scan Terraform plan JSON output to identify issues in planned changes before they are applied.