███╗ ███╗██╗███╗ ██╗██████╗ ███████╗███████╗███████╗██╗ ██╗███████╗██████╗
████╗ ████║██║████╗ ██║██╔══██╗██╔════╝██╔════╝██╔════╝██║ ██╔╝██╔════╝██╔══██╗
██╔████╔██║██║██╔██╗ ██║██║ ██║███████╗█████╗ █████╗ █████╔╝ █████╗ ██████╔╝
██║╚██╔╝██║██║██║╚██╗██║██║ ██║╚════██║██╔══╝ ██╔══╝ ██╔═██╗ ██╔══╝ ██╔══██╗
██║ ╚═╝ ██║██║██║ ╚████║██████╔╝███████║███████╗███████╗██║ ██╗███████╗██║ ██║
╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚═════╝ ╚══════╝╚══════╝╚══════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
Advanced GitHub OSINT & Secret Scanning Suite for Security Research
A comprehensive toolkit for defensive security research consisting of two powerful tools:
- Mind_Finder: GitHub employee discovery and reconnaissance
- Mind_Scanner: Repository secret scanning with TruffleHog, Gitleaks, and custom patterns
FOR DEFENSIVE SECURITY RESEARCH ONLY
This toolkit is designed for authorized security research, bug bounty programs, and defensive security operations. Users must:
- Have explicit authorization before scanning any organization
- Comply with bug bounty program scope and rules
- Follow responsible disclosure practices
- Respect GitHub's Terms of Service and API rate limits
- Only use for defensive security purposes
Unauthorized access to computer systems is illegal. Misuse of these tools may violate laws including the Computer Fraud and Abuse Act (CFAA) and similar legislation worldwide.
- 8 Discovery Methods: Comprehensive employee identification
- Official organization members
- Profile bio/company field search
- Repository contributors analysis
- Commit email discovery
- Advanced pattern matching
- GitHub dorking
- Fork analysis
- Package maintainer identification
- Confidence Scoring: Ranked results from 0-100%
- Export Formats: JSON results + username lists
- API Optimization: Smart rate limiting and caching
- Multiple Scanning Engines:
- TruffleHog (full git history)
- Gitleaks (optional)
- Custom regex patterns
- Custom Pattern Support: Company-specific secret detection
- Risk Scoring: Automatic classification (HIGH/MEDIUM/LOW)
- Comprehensive Reporting: JSON + human-readable outputs
- Smart Repository Management: Keeps findings, removes clean repos
- Commit-Level Attribution: Direct links to exposed secrets
- Python 3.8+
- Git
- 4GB+ RAM (for large scans)
- Linux/macOS/WSL2
# TruffleHog
pip3 install trufflehog
# jq (for JSON processing)
sudo apt install jq # Debian/Ubuntu
brew install jq # macOS# Gitleaks (optional but recommended)
# https://github.com/zricethezav/gitleaks
brew install gitleaks # macOS
# or download from GitHub releases# Clone the repository
git clone https://github.com/YOUR_USERNAME/MindSeeker_Suite.git
cd MindSeeker_Suite
# Install Python dependencies
pip3 install -r requirements.txt
# Set GitHub token (highly recommended)
export GITHUB_TOKEN=ghp_your_token_here
# Make scripts executable
chmod +x Mind_Finder.py Mind_Scanner.pyBasic Usage:
python3 Mind_Finder.py -c <company_name> -d <company_domain>Examples:
# Find employees for a company
python3 Mind_Finder.py -c Slack -d slack.com
# Find employees for Microsoft
python3 Mind_Finder.py -c Microsoft -d microsoft.comOutput:
employee_discovery_<company>_<timestamp>.json- Full results with confidence scoresusernames_<company>.txt- Username list for Mind_Scanner
Auto Mode (auto-discover employees):
python3 Mind_Scanner.py -c <company> -d <domain> --autoManual Mode (use existing username list):
python3 Mind_Scanner.py -c <company> -d <domain> --manual usernames.txtWith Custom Patterns:
python3 Mind_Scanner.py -c Adobe -d adobe.com --manual users.txt -p examples/patterns/adobe_patterns.jsonComplete Workflow:
# Step 1: Find employees
python3 Mind_Finder.py -c Slack -d slack.com
# Step 2: Scan their repositories
python3 Mind_Scanner.py -c Slack -d slack.com --manual usernames_Slack.txtCreate company-specific pattern files in JSON format:
{
"api_keys": [
"company_api_key['\"]?\\s*[:=]\\s*['\"]?([a-zA-Z0-9]{32,})",
"x-api-key['\"]?\\s*[:=]\\s*['\"]?([a-zA-Z0-9]{32,})"
],
"internal_domains": [
".*\\.company\\.com",
".*\\.company\\.internal"
],
"aws_resources": [
"arn:aws:[^:]+:[^:]*:[^:]*:.*company.*",
"s3://[a-z0-9\\-]*company[a-z0-9\\-]*"
]
}Example patterns are provided in examples/patterns/.
employee_discovery_<company>_<timestamp>.json
├─ confirmed_employees (90-100% confidence)
├─ probable_employees (70-89% confidence)
├─ possible_employees (50-69% confidence)
└─ statistics
usernames_<company>.txt (for Mind_Scanner input)
github_hunt_<company>_<timestamp>/
├─ reports/
│ ├─ SUMMARY.json
│ ├─ HIGH_RISK_FINDINGS.json
│ ├─ MEDIUM_RISK_FINDINGS.json
│ ├─ CUSTOM_PATTERN_FINDINGS.json
│ ├─ all_findings.json
│ ├─ REPORT.txt
│ └─ repos_scanned.json
├─ repos/ (repositories with findings)
└─ raw_results/ (raw scanner outputs)
A GitHub token dramatically improves results and rate limits:
- Go to: https://github.com/settings/tokens
- Generate new token (classic)
- Select scopes:
public_repo,read:org,read:user - Set environment variable:
# Temporary (current session)
export GITHUB_TOKEN=ghp_xxxxxxxxxxxxx
# Permanent (add to ~/.bashrc or ~/.zshrc)
echo 'export GITHUB_TOKEN=ghp_xxxxxxxxxxxxx' >> ~/.bashrc
source ~/.bashrc- Without token: 60 requests/hour
- With token: 5,000 requests/hour
- Always use a GitHub token
- Run during off-peak hours for large scans
- Respect rate limits (built-in delays included)
- Review scan scope before execution
- Store findings securely
- Delete findings after remediation
- Identify organization employees
- Scan public repositories for secrets
- Report findings through proper channels
- Follow responsible disclosure
- Discover shadow IT repositories
- Find leaked credentials
- Identify exposed API keys
- Track company domain references
- OSINT on target organization
- Identify potential attack vectors
- Discover exposed infrastructure
- Map employee footprint
# 1. Set your GitHub token
export GITHUB_TOKEN=ghp_your_token
# 2. Discover employees
python3 Mind_Finder.py -c Acme -d acme.com
# 3. Review the discovered employees
cat usernames_Acme.txt
# 4. Scan with custom patterns
python3 Mind_Scanner.py \
-c Acme \
-d acme.com \
--manual usernames_Acme.txt \
-p examples/patterns/acme_patterns.json
# 5. Review high-risk findings
cat github_hunt_Acme_*/reports/HIGH_RISK_FINDINGS.jsonContributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Test thoroughly
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- TruffleHog - Secret scanning engine
- Gitleaks - Secret detection tool
- GitHub API for making this research possible
If you find this tool useful, please consider giving it a star!
Remember: With great power comes great responsibility. Use these tools ethically and legally.