The most capable autonomous penetration testing platform.
Discover vulnerabilities, generate validated PoCs, and map full exploitation chains β without human intervention.
Authorized use only. Run only against systems you own or have written permission to test.
- Quick Start
- What It Does
- Architecture
- Supported Techniques
- Usage
- Testing
- Documentation
- Competitive Position
- Requirements
- Contributing
git clone https://github.com/divshettyy/Red-Team.git
cd Red-Team
pip install -r requirements.txt
# Initialize an engagement
python3 hakuza.py init myapp --target http://target.local
# Run the full autonomous pentest
python3 hakuza.py master-orchestrate --autonomousOutput in <10 minutes: 10β15 vulnerabilities, working PoCs, attack-surface map, HTML + JSON report.
| Feature | Capability |
|---|---|
| Autonomy | Full 7-phase engagement without human intervention |
| Speed | <10 min end-to-end Β· <500 ms startup |
| Scale | 50+ hosts Β· 100+ services Β· 150+ vulnerability types |
| Accuracy | 90%+ validated PoC success rate |
| Techniques | 34+ ATT&CK/ATLAS-mapped Β· extensible via YAML |
| Intelligence | Attack-surface graph with real-time risk scoring |
| Output | HTML/JSON reports Β· findings DB Β· curl + Python PoCs |
| Frameworks | NIST AI RMF Β· OWASP LLM/Agentic Β· MITRE ATLAS Β· CSA Β· Microsoft |
- 25,000+ lines of production code
- 7 orchestration phases (planning β recon β enumeration β exploitation β post-exploitation β lateral movement β reporting)
- 34 vulnerability techniques across web, API, auth, and infrastructure
- 249 tests covering all major modules
- 300+ findings/second throughput
- 3 parallel fireteam agents per engagement
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Master Orchestrator β
β (ReAct-driven 7-phase pipeline) β
βββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββΌββββββββββ
βΌ βΌ βΌ
Fireteam Fireteam Fireteam β Parallel agents
β β β
ββββββ¬βββββ β
βΌ βΌ
Attack Graph PoC Generator
(risk scoring) (LLM-based exploit gen)
β β
ββββββββ¬ββββββββ
βΌ
Report Engine
(HTML / JSON / findings DB)
Key modules:
| Module | Purpose |
|---|---|
mod_master_orchestrator.py |
7-phase ReAct pipeline |
mod_autonomous_chains.py |
Parallel fireteam coordination |
mod_attack_graph.py |
Topology engine + risk scoring |
mod_poc_generator.py |
LLM-based per-target exploit generation |
mod_technique_executors.py |
Phase 1β3 technique handlers |
mod_technique_executors_phase4.py |
Phase 4β7 technique handlers |
mod_report.py |
HTML/JSON report generation |
mod_threat_intel.py |
Live threat intelligence feeds |
mod_ml_prioritizer.py |
ML-based finding prioritization |
techniques.yaml |
Extensible YAML technique library (34 techniques) |
templates/ |
Rules of engagement + AI security assessment templates |
Web Application
XSS Β· SQLi Β· SSTI Β· LFI Β· XXE Β· SSRF Β· Open Redirect Β· Cache Poisoning Β· HTTP Smuggling Β· Command Injection
Authentication & Authorization
JWT Attacks Β· IDOR Β· Default Credentials Β· CORS Misconfiguration Β· Mass Assignment Β· OAuth Bypass
Infrastructure
Race Conditions Β· HTTP Parameter Pollution Β· Directory Traversal Β· RCE via Upload Β· CSRF
Post-Exploitation
Lateral Movement Β· Privilege Escalation Β· Credential Harvesting Β· Exfiltration Chains
AI/LLM (MITRE ATLAS)
Prompt Injection Β· Model Exfiltration Β· Training Data Extraction Β· Adversarial Examples
Add new techniques with 10 lines of YAML. No Python required.
# Initialize engagement
python3 hakuza.py init myapp --target http://target.local
# Full autonomous mode
python3 hakuza.py master-orchestrate --autonomous
# Target-specific scans
python3 hakuza.py scan myapp --techniques xss,sqli,ssrf
# View findings
python3 hakuza.py findings myapp
# Generate report
python3 hakuza.py report myapp --format html
python3 hakuza.py report myapp --format json
# Check engagement status
python3 hakuza.py status myapp# Run all 249 tests
python3 -m pytest -v
# Run a specific module
python3 -m pytest test_autonomous_chains.py -v
python3 -m pytest test_behavioral_validator.py -v
python3 -m pytest test_threat_intel.py -v| File | Contents |
|---|---|
| ABOUT.md | Full architecture overview, design decisions, roadmap |
| AI-RED-TEAMING-METHODOLOGY.md | Industry frameworks: NIST AI RMF, OWASP LLM/Agentic, MITRE ATLAS, Microsoft |
| INTEGRATION-SUMMARY.md | Integration guide for CI/CD and existing tooling |
| templates/RULES-OF-ENGAGEMENT.md | Pre-engagement authorization template |
| templates/AI-SECURITY-ASSESSMENT-CHECKLIST.md | AI system security assessment checklist |
| SECURITY.md | Vulnerability reporting policy |
| Feature | Nuclei | Metasploit | HAKUZA |
|---|---|---|---|
| Autonomous end-to-end | β | β | β |
| Parallel agent fireteams | β | β | β |
| LLM-based PoC generation | β | β | β |
| PoC validation | β | partial | β |
| Attack graph + risk scoring | β | β | β |
| MITRE ATLAS (AI threats) | β | β | β |
| Extensible via YAML | β | β | β |
| Open source | β | β | β |
- Python 3.11+
- pip
- 4 GB RAM minimum
- Internet access for threat intelligence (optional β degrades gracefully offline)
β Security-hardened for production use:
| Vulnerability | CVSS | Status |
|---|---|---|
| XXE injection | 7.5 | Fixed |
| Shell injection | 8.1 | Fixed |
| SSL verification bypass | 5.3 | Fixed |
| Pickle deserialization | 6.5 | In progress |
Report vulnerabilities via SECURITY.md.
Issues, pull requests, and new technique submissions are welcome.
See ABOUT.md for the development roadmap and contribution guidelines.
MIT β see LICENSE.
v7.0+ Β· Security-Hardened Β· Enterprise-Ready π₯