A comprehensive, production-ready OSINT platform with real GitHub search integration for finding leaked secrets, credentials, and sensitive information in public repositories.
-
Start the application:
docker-compose up --build
-
Access the application:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
- API Docs: http://localhost:8000/docs
- โ User Authentication - Secure JWT-based auth with user profiles
- โ Professional React UI - Modern TypeScript interface with Tailwind CSS
- โ Real-time Updates - Auto-refresh and live status monitoring
- โ PostgreSQL Database - Full persistence with relationship modeling
- โ Docker Deployment - Production-ready containerization
- โ REST API - FastAPI with OpenAPI documentation
- โ Profile Management - GitHub token configuration and credential storage
- โ Investigation Management - Start, monitor, and cancel scans
- โ Clickable Navigation - Intuitive UI with breadcrumbs and routing
- โ Duration Tracking - Real-time investigation timers
- โ Categorized Results - Findings grouped by classification type
- โ Detailed Views - Expandable modals with full finding context
- โ Real GitHub Code Search - Live GitHub API integration
- โ Advanced Dork Templates - 10+ optimized search patterns
- โ Pattern Recognition - Intelligent secret detection algorithms
- โ Risk Assessment - Contextual scoring based on finding type
- โ Direct GitHub Links - One-click access to source repositories
- โ No Fake Data - 100% real results from actual GitHub searches
-
Create GitHub Personal Access Token:
- Go to https://github.com/settings/tokens
- Click "Generate new token (classic)"
- Select scopes:
public_repo - Copy the token (starts with
ghp_)
-
Configure in Application:
- Click your username in the top-right corner
- Navigate to Profile page
- Enter your GitHub token in the "GitHub Integration" section
- Save credentials
# Create .env file in project root
GITHUB_TOKEN=ghp_your_github_token_here
# Restart application
docker-compose restart- Start Investigation - Enter domain name and click "Start Investigation"
- Monitor Progress - Watch real-time status updates with duration timer
- Review Results - Findings automatically grouped by classification
- Explore Details - Click findings for detailed views with GitHub links
- Manage Scans - Cancel running investigations or navigate between results
- Real GitHub code search using optimized dork templates
- Live secret detection in public repositories
- Actual security findings with direct GitHub links
- Intelligent rate limiting to respect GitHub API limits
- Contextual risk scoring based on file type and content
- Scan fails gracefully with clear error messaging
- No fake data - only real results are displayed
- Encourages proper setup via profile configuration
Search Patterns:
filename:.env "domain.com"- Environment files"domain.com" password- Password references"domain.com" api_key- API keys and tokens"domain.com" secret- Secret keys and tokensfilename:config.json "domain.com"- Configuration files- And 5+ more targeted patterns...
Detected Secrets:
- ๐ API Keys (OpenAI, Stripe, AWS, etc.)
- ๐ Database Credentials (passwords, connection strings)
- โ๏ธ Cloud Credentials (AWS, Azure, GCP)
- ๐ข JWT Secrets and authentication tokens
- ๐ง Email/Password combinations
- 9.0-10.0: Critical - Production API keys, GitHub tokens, AWS credentials
- 7.0-8.9: High - Database passwords, JWT secrets, cloud credentials
- 5.0-6.9: Medium - Configuration files, non-production credentials
- 3.0-4.9: Low - Domain references, comments, documentation
- 0.0-2.9: Info - General mentions, non-sensitive references
- ๐ API Keys & Secrets - OpenAI, Stripe, third-party service keys
- ๐ Credentials & Passwords - Database passwords, user credentials
- โ๏ธ Cloud Credentials - AWS, Azure, GCP access keys
- ๐ฆ Database Credentials - Connection strings, database passwords
- ๐ Version Control Tokens - GitHub, GitLab, Bitbucket tokens
- ๐ก๏ธ Authentication Secrets - JWT secrets, session keys
- ๐ Configuration Files - Environment files, config data
- ๐ง Domain References - Email addresses, general domain mentions
- +1.0 for production keywords (prod, live, main)
- -2.0 for test/dev keywords (test, dev, example, demo)
- +0.5 for sensitive file extensions (.env, .config, .yml)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Frontend (React + TypeScript) โ
โ โข Modern UI with Tailwind CSS โ
โ โข Real-time updates and status monitoring โ
โ โข Profile management and credential storage โ
โ โข Categorized results with detailed views โ
โโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ REST API calls (axios)
โโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Backend (FastAPI + Python) โ
โ โข JWT authentication and user management โ
โ โข GitHub API integration with rate limiting โ
โ โข Pattern recognition and risk scoring โ
โ โข Scan management and status tracking โ
โโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ GitHub API calls
โโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ GitHub Code Search API โ
โ โข Real-time code search across public repos โ
โ โข 10+ optimized dork templates โ
โ โข File content analysis and extraction โ
โโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Results persistence
โโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PostgreSQL Database โ
โ โข Users, scans, results, and credentials โ
โ โข Relationship modeling and data integrity โ
โ โข Investigation history and audit trails โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
- Register/Login at http://localhost:3000
- Configure GitHub Token in your profile
- Start Investigation with any domain name
- Monitor Progress with real-time updates
- Explore Results with categorized findings
# Authentication
curl -X POST "http://localhost:8000/api/auth/login" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "username=your_username&password=your_password"
# Start investigation
curl -X POST "http://localhost:8000/api/scans" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer [your_jwt_token]" \
-d '{"domain": "example.com"}'
# Cancel investigation
curl -X POST "http://localhost:8000/api/scans/[scan_id]/cancel" \
-H "Authorization: Bearer [your_jwt_token]"cd backend
pip install -r requirements.txt
uvicorn app.main:app --reloadcd frontend
npm install
npm run dev# Connect to database
docker-compose exec db psql -U leeky_user -d leeky
# View tables
\dt- Rate Limiting: Automatic delays between GitHub API calls
- Error Handling: Graceful fallback to simulation on API failures
- Token Security: Environment-based credential management
- Input Validation: Sanitized domain inputs and SQL injection protection
- CORS Protection: Configured for frontend-only access
Each finding includes:
- ๐ท๏ธ Classification - Categorized by security type
- ๐ Repository & File Path - Exact location of finding
- ๐ Code Snippet - Actual leaked content
โ ๏ธ Risk Score - Contextual scoring (0.0-10.0)- ๐ GitHub Link - Direct access to source file
- ๐ Raw Content - Additional context for verification
Findings are automatically grouped by:
- API Keys & Secrets (9.0+ risk) - Production service keys
- Database Credentials (8.5+ risk) - Connection strings, passwords
- Cloud Credentials (9.5+ risk) - AWS, Azure, GCP keys
- Authentication Secrets (8.8+ risk) - JWT secrets, session keys
- Version Control Tokens (9.8+ risk) - GitHub, GitLab tokens
- Configuration Files (Variable) - Environment and config data
- Domain References (3.0 risk) - General domain mentions
- JWT Authentication - Secure token-based auth
- Per-user Credentials - Encrypted GitHub token storage
- Rate Limiting - Intelligent GitHub API throttling
- Input Validation - Sanitized inputs and SQL injection protection
- CORS Protection - Configured for frontend-only access
- Error Handling - Graceful failures without data exposure
- Async Processing - Implement Celery/Redis for scan execution
- Enhanced Encryption - Use Fernet or similar for credential storage
- Audit Logging - Track all user actions and scan results
- Role-based Access - Admin users and organization management
- API Rate Limits - Request limiting per user/organization
- Result Retention - Configurable data retention policies
- Shodan API - Infrastructure and service discovery
- SecurityTrails - DNS intelligence and subdomain enumeration
- VirusTotal - Malware analysis and threat intelligence
- Have I Been Pwned - Breach data correlation
- WhoisXML - Domain registration and ownership data
- Custom Dork Templates - User-defined search patterns
- Investigation Reports - PDF/HTML export functionality
- Team Collaboration - Shared investigations and findings
- Notification System - Email/Slack alerts for high-risk findings
- API Webhooks - Real-time integration with external tools
- Dark Web Monitoring - Extended OSINT beyond GitHub
Leeky 2.0 is now a professional-grade OSINT platform ready for real security investigations. The combination of real GitHub integration, intelligent pattern recognition, and professional UX makes it ideal for:
- Security Researchers - Finding exposed secrets and credentials
- Bug Bounty Hunters - Discovering attack vectors and sensitive data
- Penetration Testers - Reconnaissance and information gathering
- DevSecOps Teams - Continuous security monitoring
- Compliance Teams - Data exposure auditing
Start investigating and stay secure! ๐๐ก๏ธ