LOCAL AI SANDBOX

AWS IAM Policies & CloudFormation in Cursor, Copilot & Claude Code AI IDEs

When engineers index workspaces or query AI assistants in Cursor or Claude Code, raw AWS IAM Policies & CloudFormation files are parsed into local context buffers. Inadvertently exposing sensitive fields like `DBMasterPassword` exfiltrates production credentials to remote model completion logs. StackEngine intercepts `cloudformation-iam.json` at the context boundary, replacing unredacted scalars with deterministic shadow tokens such as `__SE_AWS_8A68CC__` before context serialization.

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 copy (then stackengine paste)

Free for Individual Developers

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

0ms Static Pre-rendered
Engine Benchmark: 10.13ms
Input Payload:[AWS IAM Policies & CloudFormation]3 Sensitive Scalar(s) Intercepted
{
  "AWSTemplateFormatVersion": "2010-09-09",
  "Parameters": {
    "DBMasterPassword": {
      "Type": "String",
      "Default": "__SE_DB_476008__"
    }
  },
  "Resources": {
    "DeploySyncFunction": {
      "Type": "AWS::Lambda::Function",
      "Properties": {
        "FunctionName": "fin-prod-sync",
        "Environment": {
          "Variables": {
            "AWS_ACCESS_KEY_ID": "__SE_AWS_5DF6B0__",
            "AWS_SECRET_ACCESS_KEY": "__SE_AWS_8A68CC__"
          }
        }
      }
    }
  }
}
Zero-Plaintext-Egress: All evaluation runs locally inside browser memoryFNV-1a 32-bit Hash (6-Char Hex Digest)

1. Token Extraction Audit Matrix (Real-Time In-Memory Map)

3 Sensitive Scalar(s) Intercepted · 0 Bytes Plaintext Egress
Scalar Target FieldDetection Invariant / EngineShadow Token (__SE_*)Original Value (Sanitized Preview)Vault State
AWS_SECRET_ACCESS_KEY (IAM Secret Key)Preflight Invariant + WASM AST__SE_AWS_8A68CC__S******910-min Ephemeral (FIFO)
AWS_ACCESS_KEY_ID (IAM Access Key)Preflight Invariant + WASM AST__SE_AWS_5DF6B0__A******410-min Ephemeral (FIFO)
DB_MASTER_PASSWORD (Sensitive Credential)Preflight Invariant + WASM AST__SE_DB_476008__w******Y10-min Ephemeral (FIFO)

2. Local AST Scalar Extraction & Shadow Tokenization

Deterministic Verified Baseline

StackEngine runs client-side Web-Tree-sitter WASM tokenization in <15ms directly in local process memory. `ShadowCaster` maps sensitive credentials to deterministic shadow tokens like `__SE_AWS_8A68CC__`, enabling developers to prompt AI assistants with structural fidelity while guaranteeing zero plaintext credentials ever leave the local workstation.

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