Repository navigation
Releases
Releases · MokuLakshithReddy/Secret_Leak_Detector
v1.0.4 — Scale Performance, Subprocess Hardening & Open VSX Release
🛡️ Secret Leak Detector v1.0.4
Highlights & Key Improvements
- Immediate Child Process Termination on Stream Failure: In
getBranchesForCommits, immediately terminates (child.kill()) affected Git child processes upon receiving stdout/stderr/readline stream errors, awaiting theircloseevent to prevent hanging processes and returningfailed: truewith original error details. - Subprocess Lifecycle Ordering: Ensured branch discovery completion waits for child process
closerather than resolving prematurely on readline EOF, ensuring non-zero exit codes (e.g. Git fatal errors) are reliably caught and reported. - Streaming Branch Discovery Scale Benchmark: Scaled benchmark coverage to 2,000 commits and 50 branches, verifying flat heap memory delta and bounded concurrency.
- Risk Score vs. Blast Radius Mathematical Separation: Hardened the clear separation between intrinsic static credential risk and operational containment blast radius under incomplete history.
- Fail-Closed Staged Scanning & Git Config Resilience: NUL-delimited status parsing (
git diff --cached -z --name-status) with explicit prefixes and disabled colors. Immune todiff.noprefix,diff.mnemonicPrefix,color.diff=always, and filenames containing quotes or backslashes. - Batch Git Object Streaming: Converted staged scanning to single-process streaming via
git cat-file --batch-checkandgit cat-file --batch, accelerating multi-hundred file scans by 20x. - Ignore Glob Engine Overhaul: Tokenizer-based glob compiler, restoring proper matching for
**/dist/**,**/node_modules/**,**/*.min.js,docs/**, and lockfiles without regex corruption. - Verification Matrix: 828 tests passing (771 core across 50 sections + 40 git hook scenarios + 17 manifest integration tests).
- Open VSX Availability: Published and active on Eclipse Open VSX Registry.
Installation
# From GitHub Release Asset
code --install-extension secret-leak-detector-1.0.4.vsix
# Or via Open VSX in VSCodium / Cursor / Windsurf
codium --install-extension MokuLakshithReddy.secret-leak-detectorv1.0.2 — Marketplace Publication Release
v1.0.2 Marketplace Publication Release
- Sanitized CLI documentation examples to eliminate marketplace secret-scanner false alarms.
- Bundled with complete production-hardened core, staged scanner, and pre-commit hook.
- Full regression test suite: 191/191 passed.
Asset
secret-leak-detector-1.0.2.vsix
v1.0.1 — Production Hardened Release
v1.0.1 Production Hardened Release
Security & Reliability Hardening
- Command injection prevention across all Git history tracing commands.
- Staged scanning with NUL-delimited output (
-z) for space/special character handling. - Pre-commit hook fail-closed policy (blocks commit if scanner is missing).
- Transactional rollback with atomic restore, permission preservation, and verified integrity.
- Unified security threshold policy (
HIGH). - Full regression test suite: 191/191 passed.
Assets
secret-leak-detector-1.0.1.vsixincluded for VS Code Marketplace upload and manual installation.
v1.0.0 — Context-Aware Secret Leak Detection & Git DAG Intelligence
🔐 Secret Leak Detector Action v1.0.0
Developer-first credential protection: detect, prove, trace in Git DAG, and block secret leaks in CI/CD.
🚀 Key Features:
- Zero False-Positive Rate: Shannon entropy thresholds and documentation placeholder suppression.
- AST Syntactic Analysis: Catches environmental fallback expressions (
process.env.KEY || "...") and deep object property assignments. - Provider-Specific Structural Validators: Stripe checksums, Slack bot token structures, Database URI credential parsing, AWS prefixes, PEM certificates, and JWTs.
- Git Exposure Timeline: Deep DAG history walk, merge-commit tracking, and branch reachability.
- OASIS SARIF v2.1.0: Direct integration with the GitHub Security tab and CodeQL scanning.
- Fast Execution: Standalone bundled runner (<50ms execution overhead).
📦 Usage in GitHub Actions:
- name: Run Secret Leak Detector
uses: MokuLakshithReddy/Secret_Leak_Detector@v1
with:
path: '.'
sarif-file: 'secret-findings.sarif'
fail-on: 'CRITICAL'