Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค– AI-BugHunter โ€” AI-Powered Vulnerability Discovery

Your AI co-pilot for bug bounty hunting. Automates recon interpretation, generates intelligent payloads, and helps analyze targets faster.


๐Ÿ’ก What is AI-BugHunter?

AI-BugHunter is an intelligent assistant that helps bug bounty hunters:

  • ๐Ÿ” Analyze recon data โ€” feed it subdomains, URLs, JS files โ†’ get prioritized attack surface
  • ๐ŸŽฏ Generate payloads โ€” AI-powered payload generation for XSS, SQLi, SSRF, SSTI
  • ๐Ÿ“Š Pattern recognition โ€” identifies vulnerability patterns across your target
  • ๐Ÿ“ Write reports โ€” generates professional vulnerability reports
  • ๐Ÿง  Smart recommendations โ€” "based on this tech stack, test these vulnerabilities"

๐Ÿš€ Quick Start

git clone https://github.com/javokhir-sec/AI-BugHunter.git
cd AI-BugHunter
pip install -r requirements.txt

Usage

# Analyze a target
python aibughunter.py --target example.com --recon-dir ./recon-output/

# Generate payloads for specific vuln type
python aibughunter.py --gen-payload xss --context "search parameter, filtered <script>"

# Analyze JS files for secrets
python aibughunter.py --analyze-js ./js-files/

# Generate vulnerability report
python aibughunter.py --report --finding sqli --target example.com --evidence ./sqli-poc.txt

# Full automated scan with AI guidance
python aibughunter.py --target example.com --mode full

๐ŸŽฏ Features

1. Smart Recon Analysis

Feeds: subdomains, alive hosts, URLs, JS files, technologies Output: prioritized attack surface, "low-hanging fruit" alerts

python aibughunter.py --target example.com --recon-dir ./recon/

2. Intelligent Payload Generation

Context-aware payloads that bypass filters:

# XSS payloads when <script> is blocked
python aibughunter.py --gen-payload xss --waf cloudflare --context "search box"

# SQLi payloads for MySQL
python aibughunter.py --gen-payload sqli --db mysql --context "login form, POST"

# SSTI payloads for Jinja2
python aibughunter.py --gen-payload ssti --engine jinja2

3. Vulnerability Pattern Detection

Automatically identifies patterns that indicate vulnerabilities:

  • Unsanitized user input in HTML responses โ†’ potential XSS
  • SQL errors in responses โ†’ SQLi confirmed
  • Internal IPs in responses โ†’ potential SSRF
  • Debug endpoints exposed โ†’ info disclosure

4. Report Generator

Takes your finding details and generates a professional report:

python aibughunter.py --report \
  --finding "SQL Injection in login form" \
  --target "https://target.com/login" \
  --severity critical \
  --cvss 9.8 \
  --steps poc.txt \
  --impact "Full database access"

5. Technology-Specific Recommendations

Detects the tech stack and suggests what to test:

Technology Stack Detected:
  - PHP 7.4
  - MySQL 5.7
  - Apache 2.4
  - jQuery 3.5

AI Recommendations:
  1. Test PHP deserialization (PHP < 8.0)
  2. Test SQLi with MySQL-specific payloads
  3. Test for Apache path traversal
  4. jQuery 3.5 has known XSS vectors in .html()

๐Ÿ“‹ Supported Vulnerability Types

Category Vulnerabilities
๐Ÿ’‰ Injection SQLi, NoSQLi, Command Injection, LDAP, XPath
๐ŸŽฏ XSS Reflected, Stored, DOM, Blind, CSP Bypass
๐Ÿ“ก Server-Side SSRF, SSTI, XXE, Deserialization
๐Ÿ” Auth JWT Attacks, OAuth Flaws, Session Fixation
๐Ÿ“‚ Files Path Traversal, LFI/RFI, File Upload RCE
๐Ÿ›ก๏ธ Access Control IDOR, BAC, Privilege Escalation

๐Ÿ› ๏ธ Requirements

openai>=1.0.0
anthropic>=0.30.0
requests>=2.28.0
colorama>=0.4.6
rich>=13.0.0
beautifulsoup4>=4.12.0
lxml>=4.9.0

โš™๏ธ Configuration

# Set your API key (supports OpenAI, Anthropic Claude, or local LLM)
export AI_API_KEY="sk-xxxxx"
export AI_PROVIDER="openai"  # or "anthropic", "ollama", "local"

# Optional: Configure model
export AI_MODEL="gpt-4o"  # or "claude-opus-4-8", "llama3"

๐Ÿ“Š Example Output

๐Ÿค– AI-BugHunter v1.0 โ€” Analyzing target: example.com
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

๐Ÿ“ก Loading recon data...
   โ”œโ”€ Subdomains: 47
   โ”œโ”€ Live hosts: 23
   โ”œโ”€ URLs: 1,847
   โ”œโ”€ JS files: 89
   โ””โ”€ Technologies: PHP 7.4, MySQL, Apache, jQuery 3.5

๐Ÿ” AI Analysis:
   โš ๏ธ  HIGH: jQuery 3.5 detected โ€” vulnerable to prototype pollution
   โš ๏ธ  MEDIUM: PHP 7.4 โ€” check for deserialization issues
   โ„น๏ธ  INFO: 89 JS files โ€” recommend secrets scanning

๐ŸŽฏ Prioritized Attack Surface:
   1. https://admin.example.com/login โ€” auth bypass potential
   2. https://api.example.com/v1/users โ€” IDOR check
   3. https://example.com/search?q= โ€” reflected XSS test

๐Ÿ’ก AI Recommendation:
   "Start with admin.example.com. The login form uses PHP+MySQL โ€”
   test for SQLi auth bypass first (CWE-89), then check for JWT
   weaknesses in the API. The search endpoint on the main domain
   reflects user input โ€” test for XSS with event handlers since
   jQuery 3.5 is in use."

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
โœ… Analysis complete. Time: 12.3s

๐Ÿ”ฎ Roadmap

  • Browser automation integration (Playwright)
  • Real-time WAF detection & bypass generation
  • Nuclei template auto-generation
  • Multi-target campaign mode
  • Slack/Discord notifications
  • Web UI dashboard
  • Custom training on your own findings

๐Ÿค Contributing

PRs welcome! Especially:

  • New vulnerability detection patterns
  • Payload templates
  • Integration with other tools
  • Language/translation support

โš ๏ธ Disclaimer

This tool is for authorized security testing only. Always get permission before testing any target.


๐Ÿ“œ License

MIT ยฉ Javokhir Tursunboyev


โญ Star this repo if you find it useful!

About

๐Ÿค– AI-powered vulnerability discovery assistant โ€” automated recon + intelligent scanning for bug bounty hunters

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages