verify_zero_leak_security
Scan files, code snippets, or repositories for hardcoded API keys, private keys, JWTs, and cloud secrets before commit or release to prevent leaks.
Instructions
100% Zero-Leak security scanner. Analyzes a file, code snippet, or repository workspace for hardcoded API keys (OpenAI, Anthropic, NVIDIA, Gemini, HuggingFace, GitHub), private keys, JWT tokens, and cloud secrets (100% private, 0 external network calls, $0 cost).
Behavior:
Read-only: Pattern matching and entropy analysis; does NOT modify, expose, or upload credentials.
Idempotent: Deterministic security findings for identical content.
100% Offline & Private: Never transmits inspected text to any remote server; all secret detections are masked.
Usage Guidelines:
When to use: Run before git commit, push, or public release to guarantee zero secret leaks.
Sibling Routing: For broad code quality audits including complexity, docstrings, and layer rules, use 'audit_codebase_quality'.
Returns: Security pass/fail report with masked secret snippets, affected file paths, and line numbers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_file | No | Optional single file path to inspect instead of the full workspace. | |
| code_snippet | No | Optional in-memory code string to inspect instead of files on disk. | |
| project_root | No | Workspace root directory to scan for secret leaks (default: current directory). | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |