What problem does it solve?
During offensive security reconnaissance, exposed source code artifacts, configuration files, and build outputs often contain critical hardcoded secrets, internal API endpoints, and sensitive infrastructure details that are invisible to standard scanning tools, unlocking the full attack surface without manual brute-forcing or social engineering.
Core Features & Use Cases
- Multi-vector leak detection: Scans for 8+ high-value exposure types including JavaScript source maps, Swagger/OpenAPI specifications, exposed .git directories, .env configuration files, webpack chunks, .DS_Store directory listings, and build-info artifacts.
- Automated secret and endpoint extraction: Reconstructs full source code from source maps, parses API specs to enumerate all endpoints, and greps raw JS bundles for hardcoded API keys, internal hostnames, and non-public environment variables.
- Edge case resilient workflows: Includes built-in fallbacks for common pitfalls like fake source maps (SPAs serving HTML for .map URLs) and minimal container environments without Perl-compatible grep, plus chain tables to link discovered leaks to immediate exploitation steps.
- Use case example: For a target React SPA that returns fake HTML source maps, this skill can automatically analyze raw JS bundles to discover an undocumented internal API server running on a non-standard port, revealing a new high-value attack surface in seconds.
Quick Start
Use the hunt-source-leak skill to scan the target domain for exposed source maps, .env files, and .git directories to extract hardcoded secrets and internal API endpoints.