source-leak

Detect leaked source code and credentials via GitHub, Gitee, and search engine dorking.

2|1|Updated Aug 28, 2026
One-click install
npx skills add https://github.com/lycheer1126/xs-bigdan --skill source-leak-lycheer1126
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: source-leak
Source: https://github.com/lycheer1126/xs-bigdan/tree/main/knowledge/skills/source_leak
Command: npx skills add https://github.com/lycheer1126/xs-bigdan --skill source-leak-lycheer1126

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? During authorized security testing, organizations often unknowingly expose source code, configuration files, and credentials on public code hosting platforms. Manually searching for these leaks is slow and unsystematic, and testers frequently miss high-value exposures like database credentials in config files. ## Core Features & Use Cases - Fingerprint-Driven Search: Converts tech stack fingerprints (framework patterns, cookie names, error messages, page titles) into targeted search queries for GitHub, Gitee, and Google dorks. - High-Value Target Prioritization: Focuses on config files (application.yml, .env, settings.py), database credentials, API keys, CI/CD configs, and Docker environment variables. - Secondary Confirmation Workflow: Verifies candidate leaks by comparing directory structures, API routes, and frontend JS variable names before saving links, without downloading the code. - Use Case: While testing an authorized target running Spring Boot, extract a unique error string from its responses, search GitHub for matching code, and discover a leaked application.yml containing live database credentials. ## Quick Start Analyze the target's tech fingerprint and search GitHub and Gitee for leaked source code, config files, and credentials matching its unique identifiers.

Frequently Asked Questions about source-leak

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find leaked source code on GitHub for a target?

Extract unique strings from the target such as error messages, cookie names, or frontend JS snippets, then search GitHub code with those identifiers. Confirm matches by comparing directory structures and API routes before recording the link.

What search queries work best for finding leaked credentials?

Target config file patterns like "application.yml" with "spring.datasource.url", ".env" with "DB_PASSWORD", and framework paths like path:pom.xml. Google dorks such as site:github.com with a unique target string also surface exposures.

Which files are highest value in source code leak searches?

Prioritize config files (application.yml, .env, settings.py, config.js), database connection strings, cloud and third-party API keys, CI/CD configs like .gitlab-ci.yml and Jenkinsfile, and Docker environment variables.

Can I use Gitee as well as GitHub for leak detection?

Yes. Search Gitee open source repositories with the product or company name, and use Google dorks like site:gitee.com with target-unique identifiers. Gitee is especially relevant for organizations with Chinese development teams.

Should I download leaked source code when I find it?

No. The methodology explicitly saves links only after secondary confirmation and does not download the code. This keeps the activity within authorized testing boundaries and avoids handling potentially sensitive third-party data.