Skip to content

Latest commit

Β 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Dark Agent Logo

πŸ•΅οΈ Dark Agent - AI-Powered Security Research Platform

License Python Stars Forks

An autonomous AI agent for bug bounty hunting, penetration testing, and security research β€” with 769+ cybersecurity skills, multi-LLM reasoning, persistent memory, and swarm orchestration.


Why Dark Agent?

Capability Dark Agent Typical Alternatives
Integrated security tools 94 built-in 10–30 (often external)
Cybersecurity skills (YAML/STIX) 769+ curated skills None / few ad-hoc prompts
Multi-LLM reasoning OpenAI + Claude + Ollama (auto-failover) Single provider
Persistent memory & learning SQLite + vector store, pattern extraction Session-only
Multi-agent orchestration Router β†’ Coordinator β†’ Super Agent Single-threaded
Vulnerability chaining Graph-based (NetworkX), CVSS-weighted Manual
Smart contract auditing Solidity + Move + Vyper Rare / separate tools
Self-healing runtime Health monitors, exponential backoff N/A
Auto-update Built-in (GitHub releases + Docker) Manual

Not a scanner wrapper. Dark Agent reasons over findings, chains vulnerabilities, writes exploits, and learns from every engagement.


⚑ Core Features

πŸ”¬ 94 Security Tools (Native, No Wrappers)

Category Count Highlights
Reconnaissance 18 Subdomain, port, directory, API, GitHub, DNS, WAF detection
Vulnerability Testing 48 XSS, SQLi, SSRF, SSTI, XXE, IDOR, JWT, RCE, GraphQL, NoSQL, LFI, etc.
Self-Learning 3 Outcome tracking, pattern mining, technique scoring
Memory & Storage 4 SQLite vault, vector embeddings, finding deduplication
General Utilities 21 Code exec, shell, web fetch, file ops, analysis, reporting

🧠 Multi-LLM Brain

  • OpenAI β€” GPT-4o, GPT-4-turbo, GPT-3.5
  • Anthropic β€” Claude Opus, Sonnet, Haiku
  • Ollama β€” Local models (Llama 3, Mistral, CodeLlama, etc.)
  • Automatic provider failover on rate limits / errors

πŸ’Ύ Memory Palace (Persistent)

  • SQLite-backed findings vault with deduplication
  • Working memory for active sessions
  • Vector embeddings for semantic recall
  • Pattern learning β†’ technique effectiveness scores

πŸš€ Swarm Intelligence

Agent Role
Recon Agent Deep surface mapping (subdomains, APIs, JS, cloud assets)
Chain Builder Auto-discovers vuln chains (IDOR β†’ Admin, SSRF β†’ Cloud metadata, etc.)
Triage Agent Severity classification, false-positive suppression
Validator Active verification (PoC execution, screenshot, diff)
Report Writer Professional markdown/PDF/HTML with evidence
Web3 Auditor Smart contract static + dynamic analysis (Slither, Mythril, Foundry)

🧩 Advanced Agent Systems

System Purpose
chain_engine.py Graph-based vuln chaining, 10+ templates, CVSS multipliers
exploit_developer.py Payload gen (XSS/SQLi/SSRF/SSTI/RCE) + bypasses + PoC export
threat_intel.py OTX, Shodan, MISP enrichment; CVE cache; MITRE ATT&CK mapping
learning_engine.py Pattern recognition, technique scoring, insight generation
self_healing_agent.py CPU/mem/disk monitors, auto-recovery, exponential backoff
agent_router.py Intent classification β†’ optimal agent (10+ request types)
agent_coordinator.py DAG orchestration, parallel execution, dependency resolution
super_agent.py Unified chat interface combining all capabilities
skill_loader.py 769+ skills, priority routing, semantic search, caching

πŸš€ Quick Start

Option 1: Local (Python 3.10+)

https://github.com/muhammad-khalid-bin-walid/Dark-Agent.git
cd "Dark-Agent"

# Install deps
pip install -r requirements.txt

# Configure (copy example, add API keys)
cp configs/config.example.json configs/config.json
# or: cp .env.example .env

# Run
python run.py

Option 2: Docker (Full Stack)

# Uses configs/docker-compose.yml (Postgres + Redis + Ollama + Dashboard)
docker compose -f configs/docker-compose.yml up -d

# With auto-update sidecar
docker compose -f configs/docker-compose.yml --profile auto-update up -d

Access points:

  • Dashboard: http://localhost:8080
  • API: http://localhost:8000
  • Ollama: http://localhost:11434

Option 3: Minimal (No Docker)

pip install -r requirements.txt
python dark_agent.py --target example.com --mode recon

πŸ“ Project Structure (Actual)

Dark-Agent/
β”œβ”€β”€ Core Agents
β”‚   β”œβ”€β”€ agent.py                    # 94-tool registry + execution
β”‚   β”œβ”€β”€ brain.py                    # Multi-LLM orchestration
β”‚   β”œβ”€β”€ dark_agent.py               # Main swarm entrypoint
β”‚   β”œβ”€β”€ dark_agent_v4.py            # Enhanced v4 agent
β”‚   β”œβ”€β”€ dark_unified.py             # Unified single-file build
β”‚   β”œβ”€β”€ super_agent.py              # Interactive chat orchestrator
β”‚   β”œβ”€β”€ run.py / run_agent.py       # CLI entrypoints
β”‚
β”œβ”€β”€ Agent Systems
β”‚   β”œβ”€β”€ agent_router.py             # Intent β†’ agent routing
β”‚   β”œβ”€β”€ agent_coordinator.py        # Multi-agent DAG execution
β”‚   β”œβ”€β”€ chain_engine.py             # Vuln chaining (NetworkX)
β”‚   β”œβ”€β”€ exploit_developer.py        # Payload gen + PoC export
β”‚   β”œβ”€β”€ threat_intel.py             # IOC enrichment + MITRE mapping
β”‚   β”œβ”€β”€ learning_engine.py          # Pattern learning + scoring
β”‚   β”œβ”€β”€ self_healing_agent.py       # Health monitoring + recovery
β”‚   β”œβ”€β”€ skill_loader.py             # 769+ skill index + search
β”‚   β”œβ”€β”€ vuln_scanner.py             # Scanner coordination
β”‚   β”œβ”€β”€ vulndb.py                   # Local CVE/Exploit DB
β”‚   β”œβ”€β”€ validated_vulns.py          # Finding verification
β”‚   β”œβ”€β”€ zero_day_hunter.py          # Novel pattern detection
β”‚
β”œβ”€β”€ Memory & Intelligence
β”‚   β”œβ”€β”€ ai_brain.py                 # High-level reasoning loop
β”‚   β”œβ”€β”€ memory_palace.py            # Persistent storage (if present)
β”‚   β”œβ”€β”€ threat_intel.py             # Multi-source IOC enrichment
β”‚
β”œβ”€β”€ Specialized Modules
β”‚   β”œβ”€β”€ bug-bounty-toolkit/         # VRP-focused modules
β”‚   β”‚   β”œβ”€β”€ toolkit.py / vrptoolkit.py
β”‚   β”‚   └── modules/ (recon, cloud, mobile, AI, Chrome, exploitation)
β”‚   β”œβ”€β”€ ai-bug-hunter/              # Autonomous hunting swarm
β”‚   β”‚   β”œβ”€β”€ ultimate_bug_hunter.py
β”‚   β”‚   β”œβ”€β”€ supreme_bug_hunter.py
β”‚   β”‚   β”œβ”€β”€ master_launcher.py
β”‚   β”‚   └── brain/ / core/ / battle_testing/
β”‚   β”œβ”€β”€ dashboard.py                # FastAPI + WebSocket UI
β”‚   β”œβ”€β”€ google_vrp_vulnerabilities.py
β”‚   β”œβ”€β”€ owasp_audit.py              # OWASP Top 10 / API Top 10 checks
β”‚
β”œβ”€β”€ Config & Data
β”‚   β”œβ”€β”€ configs/
β”‚   β”‚   β”œβ”€β”€ config.example.json     # Template config
β”‚   β”‚   β”œβ”€β”€ docker-compose.yml      # Full stack
β”‚   β”‚   └── *.yaml                  # Hunt/schedule templates
β”‚   β”œβ”€β”€ .env.example                # Env template
β”‚   β”œβ”€β”€ requirements.txt / pyproject.toml
β”‚   β”œβ”€β”€ findings/                   # Output vault
β”‚   β”œβ”€β”€ reports/                    # Generated reports
β”‚   β”œβ”€β”€ examples/                   # Usage scripts
β”‚   β”œβ”€β”€ templates/                  # Hunt configs
β”‚   β”œβ”€β”€ scripts/                    # Install helpers
β”‚   β”œβ”€β”€ tests/                      # Pytest suite
β”‚   β”œβ”€β”€ docs/                       # 50+ guides (QUICKSTART, API, SPEC, TOOLS…)
β”‚
└── .agents/skills/                 # 769+ cybersecurity skills
    β”œβ”€β”€ anthro-cybersecurity/       # 753 skills (recon, pentest, DFIR, cloud, malware…)
    └── claude-cyber-security/      # 16 skill areas (recon, vuln scan, exploit dev, RE, malware, threat hunt, IR, net sec, web sec, cloud, CSOC, log analysis, crypto, red team, blue team)

πŸ“– Documentation

Guide Description
Quick Start 5-minute runbook
Features Complete capability matrix
API Reference Python + REST API
Technical Spec Architecture, data flows, extension points
Tools Reference All 94 tools with params
Agents Agent roles, prompts, customization
Skills Loading, authoring, priority routing
Configuration Every config option explained
Deployment Docker, K8s, systemd, cloud
Ethics & Scope Responsible use, scope enforcement

πŸ† Use Cases

  • Bug Bounty β€” Automated recon β†’ vuln discovery β†’ chain β†’ validated PoC β†’ report
  • Penetration Testing β€” Full PTES-aligned assessments with evidence
  • VAPT β€” Continuous scanning with learning-driven prioritization
  • Red Teaming β€” Adversary emulation with C2, lateral movement, persistence
  • Security Research β€” Zero-day pattern hunting, variant analysis
  • Web3 Audit β€” Smart contract review (Solidity, Move, Vyper) with fuzzing

⚠️ Responsible Use

Dark Agent is for authorized security testing only.

  • Only test assets you own or have explicit written permission for
  • Respect scope.txt / program policies / robots.txt
  • Report findings through proper channels (VDP, HackerOne, Bugcrowd, etc.)
  • Do not use for unauthorized access, data exfiltration, or disruption
  • The authors assume no liability for misuse

See SECURITY.md for vulnerability disclosure and ETHICS_SCOPE.md for scope enforcement details.


🀝 Contributing

We welcome PRs for:

  • New tools / skills / agents
  • Bug fixes & performance
  • Documentation & examples
  • Test coverage

Please read CONTRIBUTING.md and CODE_OF_CONDUCT.md.


πŸ“œ License

MIT License β€” See LICENSE


πŸ” Built by security researchers, for security researchers.
Star ⭐ the repo if Dark Agent helps you find impactful bugs.

About

Dark Agent is an autonomous AI-powered security research platform for bug bounty hunting, penetration testing, and vulnerability research.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages