Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>LeakNinja — Secret DetectionNew to Visual Studio Code? Get it now.
LeakNinja — Secret Detection

LeakNinja — Secret Detection

leakninja-labs

|
6 installs
| (0) | Free
Local detection and blocking of secrets/API keys in VS Code — on-save scanning, highlights, diagnostics, and Git integration. © 2025 LeakNinja by NinjaSoft. Licensed under LeakNinja License v1.0.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

LeakNinja — Secret Detection

Local, zero-network extension to prevent secret/API key leaks in your code. Scans on save and integrates with Git. No data leaves your machine.

Features

  • Auto scan on save (pre-save hook)
  • Manual scan with Ctrl+Alt+L (Cmd+Alt+L on macOS)
  • Immediate blocking when a critical secret is detected
  • Inline highlights (red = critical, orange = warning)
  • Workspace scan command
  • Git helpers: scan changed/staged files

Commands

  • LeakNinja: Scan current file
  • LeakNinja: Scan workspace
  • LeakNinja: Scan Git changed files
  • LeakNinja: Scan Git staged files
  • LeakNinja: Toggle pre-save scanning
  • LeakNinja: Open settings

Settings

  • leakninja.enablePreSave — scan on save (default: true)
  • leakninja.warnThreshold — warning threshold (0..1, default 0.65)
  • leakninja.blockThreshold — blocking threshold (0..1, default 0.78)
  • leakninja.ignorePaths — glob patterns to ignore
  • leakninja.patterns — extra regexes (strings) to detect secrets

Privacy

LeakNinja runs entirely locally. No network calls. Telemetry is opt-in and off by default.

License

LeakNinja License v1.0 — see LICENSE. © 2025 LeakNinja by NinjaSoft.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft