scan_for_secrets
Scan project directories for hardcoded secrets, API keys, tokens, and passwords, including AWS, GitHub, and Stripe patterns. Get file paths, line numbers, severity, and masked previews.
Instructions
Scan a project directory for hardcoded secrets, API keys, tokens, and passwords. Detects patterns like AWS keys, GitHub tokens, Stripe keys, private keys, and generic high-entropy strings. Returns file path, line number, severity, and a masked preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| extensions | No | File extensions to scan, e.g. [".ts",".js",".env"]. Defaults to common source files. | |
| projectPath | Yes | Absolute path to the project root to scan, e.g. /project |