Zero-Knowledge AES-256-GCM .env Vaults & CI Secret Leak Scanning (2026)
Direct Answer
Eliminate Slack-pasted
.env secrets by encrypting environment files client-side with PBKDF2-derived AES-256-GCM keys, AAD environment binding, and pre-commit regex + Shannon entropy SARIF gates that verify identically in Node.js and Python.
1. Cross-Runtime Envelope Encryption with AAD Binding
Encode project/environment descriptors as AES-GCM Additional Authenticated Data alongside a fresh 96-bit random IV so even a 1-byte ciphertext flip or cross-environment replay raises an authentication tag error.
const cipher = crypto.createCipheriv("aes-256-gcm", keyBytes, iv12);
cipher.setAAD(Buffer.from(`${project}:${env}:v1`, "utf8"));
const ciphertext = Buffer.concat([cipher.update(plaintext), cipher.final()]);
const tag16 = cipher.getAuthTag();
2. SARIF v2.1.0 Leak Scanning & Rotation SLAs
Combine vendor prefix detectors with Shannon entropy checks, track key age against 30/90-day rotation SLAs, and run the live WebCrypto tamper demo inside SecretPulse Kit ($49).
Run SecretPulse Zero-Knowledge Vault & Scanner
Included inside the $79 26-Kit All-Access Commercial Pass with 9 Node tests and 5 Python tests.