LOCAL SANDBOX — DRIFT ANALYZER

Terraform & OpenTofu (.tf / .tfstate) in Infrastructure Plan & Drift Auditing

During speculative infrastructure drift evaluation, serialized Terraform & OpenTofu (.tf / .tfstate) outputs and plan files expose sensitive production fields including `password`. Passing raw configuration files to external LLMs for drift analysis exfiltrates production credentials beyond the perimeter. StackEngine sanitizes `main.tf` locally, mapping sensitive scalars into `__SE_AWS_8A68CC__` before speculative review.

Latency: <15ms WASM PassVault: Ephemeral In-MemoryZero-Plaintext-EgressSource-Available BSL 1.1

1. Workstation Setup & Local CLI

Install the deterministic client-side CLI. Runs 100% offline with zero cloud telemetry and zero plaintext egress:

npm i -g stackengine
Primary Execution Command
stackengine redact main.tf -o sanitized.out

Free for Individual Developers

Ad-hoc CLI, local memory vaults, and standard heuristic redaction are free forever.

Infrastructure Plan & Drift Spec Sanitizer

Sanitized Spec for Speculative Drift Analysis
resource "aws_db_instance" "prod" {
  identifier = "fin-prod-primary"
  engine     = "postgres"
  username   = "pg_admin"
  password   = "__SE_DB_476008__"
}

provider "aws" {
  access_key = "__SE_AWS_5DF6B0__"
  secret_key = "__SE_AWS_8A68CC__"
}
Plan scalars tokenized in <15ms. Safe to analyze with external LLMs without leaking VPC secret state.

2. Local AST Scalar Extraction & Shadow Tokenization

Deterministic Verified Baseline

Engineers execute `stackengine redact` to sanitize speculative infrastructure diffs before AI-assisted troubleshooting. `TreeSitterWasmExtractor` maps sensitive scalars to deterministic shadow tokens in local process memory, enabling high-fidelity drift analysis while guaranteeing zero plaintext credential egress.

AST Parser (Baseline)
tree-sitter-hcl.wasm
Execution Latency (Baseline)
0.28ms
Intercepted Tokens (Baseline)
3 found
Vault Lifecycle
10m Sliding TTL