Skip to content

LS-TF-001: Terraform Cloud Token

Severity HIGH
Blast radius Infrastructure-as-code and state file compromise
Rotate at https://app.terraform.io/app/settings/tokens

If this leaks

Allows triggering runs, reading state files (which often contain plaintext secrets and resource IDs), and modifying infrastructure configuration.

What to do

  1. Rotate or revoke the credential at https://app.terraform.io/app/settings/tokens.
  2. Check the provider's audit logs for use you don't recognise.
  3. Remove it from git history (leakscan purge --help) and load it from an environment variable or secret manager instead.

Pattern

[A-Za-z0-9]{14}\.atlasv1\.[A-Za-z0-9\-_=]{60,}

Suppress

On one line: # leakscan:ignore LS-TF-001. For the whole project:

disable_rules: [LS-TF-001]