Skip to content
wardspanPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Leeky 2.0 - Professional OSINT Investigation Platform

A comprehensive, production-ready OSINT platform with real GitHub search integration for finding leaked secrets, credentials, and sensitive information in public repositories.

๐Ÿš€ Quick Start

  1. Start the application:

    docker-compose up --build
  2. Access the application:

โœจ Features

Core Platform

  • โœ… 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

User Experience

  • โœ… 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

OSINT Capabilities

  • โœ… 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

๐Ÿ”ง GitHub Integration Setup

Method 1: User Profile Configuration (Recommended)

  1. Create GitHub Personal Access Token:

  2. 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

Method 2: Environment Variable (System-wide)

# Create .env file in project root
GITHUB_TOKEN=ghp_your_github_token_here

# Restart application
docker-compose restart

๐ŸŽฏ How It Works

Investigation Workflow

  1. Start Investigation - Enter domain name and click "Start Investigation"
  2. Monitor Progress - Watch real-time status updates with duration timer
  3. Review Results - Findings automatically grouped by classification
  4. Explore Details - Click findings for detailed views with GitHub links
  5. Manage Scans - Cancel running investigations or navigate between results

With GitHub Token

  • 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

Without GitHub Token

  • Scan fails gracefully with clear error messaging
  • No fake data - only real results are displayed
  • Encourages proper setup via profile configuration

๐Ÿ•ต๏ธ Scan Types & Detection

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 tokens
  • filename: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

๐Ÿ“Š Risk Scoring & Classification

Risk Levels

  • 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

Classification Categories

  • ๐Ÿ”‘ 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

Risk Factors

  • +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)

๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    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                  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿงช Testing & Usage

Via Web Interface (Recommended)

  1. Register/Login at http://localhost:3000
  2. Configure GitHub Token in your profile
  3. Start Investigation with any domain name
  4. Monitor Progress with real-time updates
  5. Explore Results with categorized findings

Via API

# 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]"

๐Ÿ’ป Development

Backend

cd backend
pip install -r requirements.txt
uvicorn app.main:app --reload

Frontend

cd frontend
npm install
npm run dev

Database

# Connect to database
docker-compose exec db psql -U leeky_user -d leeky

# View tables
\dt

๐Ÿ” Security Features

  • 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

๐Ÿ“ˆ Sample Results

Investigation Output

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

Result Categories

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

๐Ÿ›ก๏ธ Security & Production Considerations

Current Security Features

  • 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

Production Recommendations

  • 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

๐Ÿ”ฎ Future Enhancements

Planned Integrations

  • 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

Advanced Features

  • 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

๐ŸŽฎ Ready to Investigate!

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! ๐Ÿ”๐Ÿ›ก๏ธ

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages