Skip to content
divshettyyPublic

About

πŸ”΄ Red team tools, scripts, and playbooks for authorized penetration testing. MITRE ATT&CK aligned.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

29 Commits

Folders and files

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

Repository files navigation

πŸ”₯ HAKUZA β€” Autonomous Red-Team Orchestration Platform

Python 3.11+ License: MIT Last Commit Stars Tests MITRE ATT&CK

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.


Table of Contents


Quick Start

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 --autonomous

Output in <10 minutes: 10–15 vulnerabilities, working PoCs, attack-surface map, HTML + JSON report.


What It Does

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

By the numbers

  • 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

Architecture

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

Supported Techniques

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.


Usage

# 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

Testing

# 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

Documentation

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

Competitive Position

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 βœ… βœ… βœ…

Requirements

  • Python 3.11+
  • pip
  • 4 GB RAM minimum
  • Internet access for threat intelligence (optional β€” degrades gracefully offline)

Security Status

βœ… 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.


Contributing

Issues, pull requests, and new technique submissions are welcome.
See ABOUT.md for the development roadmap and contribution guidelines.


License

MIT β€” see LICENSE.


v7.0+ Β· Security-Hardened Β· Enterprise-Ready πŸ”₯

About

πŸ”΄ Red team tools, scripts, and playbooks for authorized penetration testing. MITRE ATT&CK aligned.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages