๐ก๏ธ Professional AI-Powered Penetration Testing Framework
- Guest Control: Execute tools inside isolated VMs
- ๐ GitHub MCP Integration: Model Context Protocol fรผr GitHub
- ๐ QR Code Modal: Schneller Zugriff via QR Codes
- ๐ Cloudflare Deployment: Automatisches Deployment
- Frontend: https://zen-ai-pentest.pages.dev - React Dashboard
- API: https://zen-ai-pentest.workers.dev - Cloudflare Workers API
- Health Check: https://zen-ai-health.aydinatakan.workers.dev/health - Worker Health Monitor
- Alpha Dashboard: https://03c8d80c.zen-alpha-pentest.pages.dev - Zen Alpha Pentest
- AI Analysis: https://v2-0.zen-ai-pentest.pages.dev/ai-analysis - AI-Powered Analysis Interface
- Login:
admin/admin( fรผr Demo-Zwecke)
- FastAPI: High-performance REST API
- PostgreSQL: Persistent data storage
- WebSocket: Real-time scan updates
- JWT Auth: Role-based access control (RBAC)
- Background Tasks: Async scan execution
- PDF Reports: Professional findings reports
- HTML Dashboard: Interactive web interface
- Slack/Email: Instant notifications
- JSON/XML: Integration with other tools
- Docker Compose: One-command full stack deployment
- CI/CD: GitHub Actions pipeline
- Production Ready: Optimized for enterprise use
- ๐ GitHub MCP Server: Secure Model Context Protocol integration
- ๐ฌ Global Chat: AI-powered chat interface im Dashboard
- ๐ฑ Kimi Terminal: Web-basierte CLI Integration
- ๐ Auth Bridge: Lokale Kimi CLI Authentifizierung
- ๐ถ Twitch Tunnel: Kreative Tunnel-Lรถsung
- ๐ค 100 Agent POC: Full-Stack Multi-Agent System
- ๐ Device Auth: Sichere Gerรคte-Authentifizierung
Zen-AI-Pentest executes real security tools - no simulations, no mocks, only actual tool execution:
- โ Nmap - Real port scanning with XML output parsing
- โ Nuclei - Real vulnerability detection with JSON output
- โ SQLMap - Real SQL injection testing with safety controls
- โ FFuF - Blazing fast web fuzzer
- โ WhatWeb - Technology detection (900+ plugins)
- โ WAFW00F - WAF detection (50+ signatures)
- โ Subfinder - Subdomain enumeration
- โ HTTPX - Fast HTTP prober
- โ Nikto - Web vulnerability scanner
- โ Multi-Agent - Researcher & Analyst agents cooperate
- โ Docker Sandbox - Isolated tool execution for safety
๐ Enhanced Tools: README_ENHANCED_TOOLS.md
All tools run with safety controls:
- Private IP blocking (protects internal networks)
- Timeout management (prevents hanging)
- Resource limits (CPU/memory constraints)
- Read-only filesystems (Docker sandbox)
๐ Details: IMPLEMENTATION_SUMMARY.md
Zen-AI-Pentest features a comprehensive test suite supporting robust development:
| Metric | Value | Status |
|---|---|---|
| Test Files | 1,145+ | โ Real |
| Total Tests | 43,000+ | โ Verified |
| Coverage | ~10% (measured) | |
| Target Coverage | 80%+ | ๐ฏ Goal |
| Category | Count | Description |
|---|---|---|
| Unit Tests | 1,142 files | Component-level testing |
| Integration Tests | 20+ files | End-to-end workflows |
| Security Tests | 15+ files | SAST/DAST validation |
| Performance Tests | 10+ files | Benchmarking suite |
# Run all tests
pytest tests/ -v
# With coverage report
pytest tests/ --cov=. --cov-report=html --cov-report=term
# Unit tests only
pytest tests/unit/ -v
# Integration tests
pytest tests/integration/ -v๐ Testing Docs: TESTING_MASSIVE_SCALE.md | docs/TESTING.md
- Overview
- Features
- Quick Start
- Installation
- Usage
- Architecture
- API Reference
- Project Structure
- Configuration
- Secret Management
- Testing
- Docker Deployment
- Safety First
- Documentation
- Contributing
- Community & Support
- License
Zen-AI-Pentest is an autonomous, AI-powered penetration testing framework that combines cutting-edge language models with professional security tools. Built for security professionals, bug bounty hunters, and enterprise security teams.
graph TB
subgraph "Client Interface"
WebUI[๐ Web UI]
CLI[๐ป CLI]
API_Client[๐ REST API]
end
subgraph "API Gateway"
FastAPI[FastAPI + WebSocket]
Auth[๐ JWT/RBAC]
AgentMgr[๐ค Agent Manager]
end
subgraph "Workflow Orchestrator"
Guardrails[๐ก๏ธ Guardrails]
TaskQueue[๐ Task Queue]
RiskLevels[โ ๏ธ Risk Levels 0-3]
VPN[๐ VPN Check]
State[๐ State Machine]
end
subgraph "Reporting"
ReportGen[๐ Report Generator]
end
subgraph "Agent Pool"
Agent1[๐ค Agent #1]
Agent2[๐ค Agent #2]
AgentN[๐ค Agent #N]
end
subgraph "Security Toolkit"
Nmap[๐ nmap]
Whois[๐ก whois]
Dig[๐ dig]
Nuclei[โก nuclei]
SQLMap[๐ฏ sqlmap]
end
subgraph "Analysis & Reporting"
Evidence[๐ Evidence Collection]
AttackPath[๐บ๏ธ Attack Path]
ChainOfCustody[๐ Chain of Custody]
Compliance[๐ Compliance Mapping]
ReportTemplates[๐ Report Templates]
RiskScoring[๐ฏ Risk Scoring]
end
subgraph "Data Layer"
Postgres[๐ PostgreSQL]
Redis[โก Redis Cache]
Storage[๐ File Storage]
end
WebUI --> FastAPI
CLI --> FastAPI
API_Client --> FastAPI
FastAPI --> Auth
Auth --> AgentMgr
AgentMgr --> Guardrails
Guardrails --> TaskQueue
TaskQueue --> RiskLevels
RiskLevels --> VPN
VPN --> State
State --> Agent1
State --> Agent2
State --> AgentN
Agent1 --> Nmap
Agent1 --> Whois
Agent2 --> Dig
Agent2 --> Nuclei
AgentN --> SQLMap
Nmap --> Evidence
Whois --> AttackPath
SQLMap --> ChainOfCustody
State --> ReportGen
ReportGen --> ReportTemplates
ReportGen --> Compliance
AttackPath --> ReportTemplates
ChainOfCustody --> RiskScoring
Compliance --> Postgres
ReportTemplates --> Storage
RiskScoring --> Redis
- ๐ค AI-Powered: Leverages state-of-the-art LLMs for intelligent decision making
- ๐ Security-First: Multiple safety controls and validation layers
- ๐ Production-Ready: Enterprise-grade with CI/CD, monitoring, and support
- ๐ Comprehensive: 72+ integrated security tools (Inventory)
- ๐ง Extensible: Plugin system for custom tools and integrations
- โ๏ธ Cloud-Native: Deploy on AWS, Azure, or GCP
- ๐ฑ Quick Access: Scan QR codes for instant mobile access
โ๏ธ Click to view all QR codes or scan with your phone!
- ReAct Pattern: Reason โ Act โ Observe โ Reflect
- State Machine: IDLE โ PLANNING โ EXECUTING โ OBSERVING โ REFLECTING โ COMPLETED
- Memory System: Short-term, long-term, and context window management
- Tool Orchestration: Automatic selection and execution of 72+ pentesting tools
- Self-Correction: Retry logic and adaptive planning
- Human-in-the-Loop: Optional pause for critical decisions
- False Positive Reduction: Multi-factor validation with Bayesian filtering
- Business Impact: Financial, compliance, and reputation risk calculation
- CVSS/EPSS Scoring: Industry-standard vulnerability assessment
- Priority Ranking: Automated finding prioritization
- LLM Voting: Multi-model consensus for accuracy
- Sandboxed Execution: Docker-based isolated testing
- Safety Controls: 4-level safety system (Read-Only to Full)
- Evidence Collection: Screenshots, HTTP captures, PCAP
- Chain of Custody: Complete audit trail
- Remediation: Automatic fix recommendations
- Competitor Comparison: vs PentestGPT, AutoPentest, Manual
- Test Scenarios: HTB machines, OWASP WebGoat, DVWA
- Metrics: Time-to-find, coverage, false positive rate
- Visual Reports: Charts and statistical analysis
- CI Integration: Automated regression testing
- GitHub Actions: Native action support
- GitLab CI: Pipeline integration
- Jenkins: Plugin and pipeline support
- Output Formats: JSON, JUnit XML, SARIF
- Notifications: Slack, JIRA, Email alerts
- Exit Codes: Pipeline-friendly status codes
- 11 Specialized Personas: Recon, Exploit, Report, Audit, Social, Network, Mobile, Red Team, ICS, Cloud, Crypto
- CLI Tool: Interactive and one-shot modes (
k-recon,k-exploit, etc.) - REST API: Flask-based API with WebSocket support
- Web UI: Modern browser interface with screenshot analysis
- Context Preservation: Multi-turn conversations with memory
- Screenshot Analysis: Upload and analyze images with AI personas
- ๐ Global Chat: Eingebetteter AI Chat im Dashboard (v3.0)
- ๐ Kimi Terminal: Web-basierte Terminal-Integration (v3.0)
- Tamper-Proof Collection: Cryptographic signatures for all evidence
- Chain of Custody: Complete audit trail for legal proceedings
- Multi-Format Export: Screenshots, HTTP captures, PCAP files
- Court-Ready Reports: ISO 27001 compliant documentation
- Signature Verification: SHA-256 hashing with integrity checks
- Executive Reports: High-level summaries for C-level executives
- Technical Reports: Detailed findings with evidence and remediation
- Compliance Reports: OWASP, ISO 27001, PCI DSS, NIST mappings
- Export Formats: PDF, HTML, DOCX, JSON
- Professional Templates: Customizable branding and layout
- Visual Graphs: Interactive attack path visualization (Cytoscape.js)
- Entry Point Mapping: Identify and track all entry vectors
- Crown Jewel Analysis: Critical asset identification
- Attack Simulation: Test exploitation paths without execution
- Risk Scoring: Difficulty and impact assessment per path
- IP Validation - Blocks private networks (10.x, 192.168.x, 172.16-31.x)
- Domain Filtering - Prevents localhost/internal domain scanning
- Risk Levels - 4 levels (SAFE โ AGGRESSIVE) with tool restrictions
- Rate Limiting - Prevents abuse
- Workflow Orchestrator - Manages complex pentest workflows
- Task Distribution - Assigns tasks to available agents
- Real-time Updates - WebSocket communication
- Result Aggregation - Collects and analyzes findings
- ProtonVPN Support - Native CLI integration
- Generic Detection - Works with OpenVPN, WireGuard, etc.
- Safety Warnings - Alerts when scanning without VPN
- Strict Mode - Can require VPN for scans
- One-Command Deploy -
docker-compose up -d - Isolated Environment - All tools pre-installed
- Scalable - Run multiple agents
- Production Ready - Health checks & monitoring
| Category | Tools |
|---|---|
| Network | Nmap, Masscan, Scapy, Tshark, tcpdump, netdiscover, arp-scan |
| Web | BurpSuite, SQLMap, Gobuster, OWASP ZAP, FFuF, Nikto, WAFW00F, WhatWeb, Nuclei |
| Exploitation | Metasploit Framework, SearchSploit |
| Brute Force | Hydra, Hashcat, John, Ncrack |
| Reconnaissance | Amass, Nuclei, TheHarvester, Subfinder, HTTPX, Sherlock, Ignorant, Scout |
| Active Directory | BloodHound, NetExec, Responder, ldapsearch, enum4linux |
| Wireless | Aircrack-ng Suite (aircrack-ng, airmon-ng, airodump-ng, aireplay-ng) |
| OSINT | Sherlock, Ignorant, TheHarvester, Scout |
| Code Analysis | Semgrep, TruffleHog, Gitleaks, Bandit |
| Container | Trivy, Docker, Kubectl |
| System | Netcat, Socat, OpenSSL, Proxychains, Tor |
- Multi-Technique Enumeration: DNS, Wordlist, Certificate Transparency
- Advanced Techniques: Zone Transfer (AXFR), Permutation/Mangling
- OSINT Integration: VirusTotal, AlienVault OTX, BufferOver
- IPv6 Support: AAAA record enumeration
- Technology Detection: Automatic fingerprinting of live hosts
- Export Formats: JSON, CSV, TXT
- REST API: Async and sync scanning endpoints
- CLI Tools: Standalone scanner with comprehensive options
- AGENTS.md - Essential guide for AI development partners
- Real Tool Execution - No mocks, actual security tools
- Multi-Agent System - Researcher, Analyst, Exploit agents
- Safety Controls - 4-level sandbox system
- Architecture Guide - Complete system overview
- Telegram Bot: @Zenaipenbot - Instant CI/CD notifications
- Discord Integration: Automated channel updates & GitHub webhooks
- Slack/Email: Enterprise notification support
- GitHub Actions: Native workflow integration
- QR Code Gallery: Quick access to all resources
- Local: VirtualBox VM Management
- Cloud: AWS EC2, Azure VMs, Google Cloud Compute
- Snapshots: Automated clean-state workflows
# Clone repository
git clone https://github.com/SHAdd0WTAka/zen-ai-pentest.git
cd zen-ai-pentest
# Copy and configure environment
cp .env.example .env
# Edit .env with your settings
# Start full stack
docker-compose up -d
# Access:
# Dashboard: http://localhost:3000
# API Docs: http://localhost:8000/docs
# API: http://localhost:8000# Install dependencies
pip install -r requirements.txt
# Initialize database
python database/models.py
# Start API server
python api/main.py
# Run subdomain scan
python scan_target_subdomains.py
# Or use the advanced CLI
python tools/subdomain_enum.py example.com --advanced# Start the AI Personas API & Web UI
bash api/QUICKSTART.sh
# Or manually:
bash api/manage.sh start
# Open http://127.0.0.1:5000
# CLI Usage
source tools/setup_aliases.sh
k-recon "Target: example.com"
k-exploit "Write SQLi scanner"
k-chat # Interactive mode# Automated Kali Linux setup
python scripts/setup_vms.py --kali
# Manual setup
# See docs/setup/VIRTUALBOX_SETUP.mdFor detailed installation instructions, see:
from agents.react_agent import ReActAgent, ReActAgentConfig
# Configure agent
config = ReActAgentConfig(
max_iterations=10,
use_vm=True,
vm_name="kali-pentest"
)
# Create agent
agent = ReActAgent(config)
# Run autonomous scan
result = agent.run(
target="example.com",
objective="Comprehensive security assessment"
)
# Generate report
print(agent.generate_report(result))# Authentication
curl -X POST http://localhost:8000/auth/login \
-H "Content-Type: application/json" \
-d '{"username":"admin","password":"admin"}'
# Create scan
curl -X POST http://localhost:8000/scans \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Network Scan","target":"192.168.1.0/24","scan_type":"network","config":{"ports":"top-1000"}}'
# Execute tool
curl -X POST http://localhost:8000/tools/execute \
-H "Authorization: Bearer $TOKEN" \
-d '{"tool_name":"nmap_scan","target":"scanme.nmap.org","parameters":{"ports":"22,80,443"}}'
# Generate report
curl -X POST http://localhost:8000/reports \
-H "Authorization: Bearer $TOKEN" \
-d '{"scan_id":1,"format":"pdf","template":"default"}'const ws = new WebSocket("ws://localhost:8000/ws/scans/1");
ws.onmessage = (event) => {
const data = JSON.parse(event.data);
console.log("Scan update:", data);
};โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ CLIENT INTERFACE โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ ๐ Web UI โ โ ๐ป CLI โ โ ๐ API โ โ
โ โ (React) โ โ (Python) โ โ (REST) โ โ
โ โ Cloudflare โ โ โ โ WebSocket โ โ
โ โ Pages โ โ โ โ โ โ
โ โโโโโโโโฌโโโโโโโโ โโโโโโโโฌโโโโโโโโ โโโโโโโโฌโโโโโโโโ โ
โโโโโโโโโโโผโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ โ
โโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโ
โ HTTPS / JWT
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ API GATEWAY โ
โ FastAPI + WebSocket โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ ๐ Auth โ โ ๐ Work- โ โ ๐ค Agent โ โ
โ โ (JWT/RBAC) โ โ flow API โ โ Manager โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ WORKFLOW ORCHESTRATOR โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ ๐ก๏ธ โ โ ๐ Task โ โ โ ๏ธ Risk โ โ
โ โ Guardrails โ โ Queue โ โ Levels โ โ
โ โ (IP/Domain โ โ โ โ (0-3) โ โ
โ โ Filter) โ โ โ โ โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ ๐ VPN โ โ ๐ State โ โ ๐ Report โ โ
โ โ Check โ โ Machine โ โ Generator โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ WebSocket + Task Distribution
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ AGENT POOL โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ ๐ค Agent โ โ ๐ค Agent โ โ ๐ค Agent โ โ
โ โ #1 โ โ #2 โ โ #N โ โ
โ โ (Docker) โ โ (Docker) โ โ (Docker) โ โ
โ โโโโโโโโฌโโโโโโโโ โโโโโโโโฌโโโโโโโโ โโโโโโโโฌโโโโโโโโ โ
โโโโโโโโโโโผโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ โ
โผ โผ โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SECURITY TOOLKIT โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โ
โ โ ๐ โ โ ๐ก โ โ ๐ โ โ โก โ โ ๐ฏ โ โ
โ โ nmap โ โ whois โ โ dig โ โ nuclei โ โ sqlmap โ โ
โ โ โ โ โ โ โ โ โ โ โ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ โ
โผ โผ โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ANALYSIS & REPORTING LAYER โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ ๐ โ โ ๐บ๏ธ โ โ ๐ โ โ
โ โ Evidence โ โ Attack โ โ Chain of โ โ
โ โ Collection โ โ Path โ โ Custody โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ ๐ โ โ ๐ โ โ ๐ฏ โ โ
โ โ Compliance โ โ Report โ โ Risk โ โ
โ โ Mapping โ โ Templates โ โ Scoring โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ DATA LAYER โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ ๐ Postgre โ โ โก Redis โ โ ๐ File โ โ
โ โ SQL โ โ Cache โ โ Storage โ โ
โ โ (State) โ โ (Queue) โ โ (Reports) โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
| Feature | Description | Status |
|---|---|---|
| ๐ Evidence Collection | Tamper-proof evidence with cryptographic signatures | โ Live |
| ๐ Attack Path Analysis | Visual attack graphs from entry points to crown jewels | โ Live |
| ๐ Report Generator | Executive, Technical & Compliance reports (PDF/HTML/JSON) | โ Live |
| ๐ Chain of Custody | Complete audit trail for legal proceedings | โ Live |
| ๐งช 43,000+ Tests | Comprehensive test suite with CI/CD | โ Passing |
| โ๏ธ Cloudflare Pages | Global CDN deployment | โ Live |
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ GITHUB ACTIONS WORKFLOW โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ Push/PR โโโบ โโโโโโโโโโโโ โโโบ โโโโโโโโโโโโ โโโบ โโโโโโโโโโโโ โ
โ โ Tests โ โ Codecov โ โ Security โ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โ
โ โ โ
โ โผ โ
โ โโโโโโโโโโโโโโโโ โ
โ โ Codecov.io โ โ
โ โ Codecov โ โ
โ โ Reporting โ โ
โ โโโโโโโโโโโโโโโโ โ
โ โ
โ Frontend Build โโโบ โโโโโโโโโโโโโโโโ โโโบ โโโโโโโโโโโโโโโโโโโโ โ
โ โ Cloudflare โ โ Global Deploy โ โ
โ โ Pages Build โ โ zen-ai-pentest โ โ
โ โโโโโโโโโโโโโโโโ โ .pages.dev โ โ
โ โโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Coverage Reports: codecov.io/gh/SHAdd0WTAka/Zen-Ai-Pentest
For detailed architecture documentation, see docs/architecture.md.
- API Documentation - Complete REST API reference
- WebSocket API - Real-time updates
- Authentication - Security and auth
zen-ai-pentest/
โโโ api/ # FastAPI Backend (main.py, auth.py, websocket.py)
โโโ agents/ # AI Agents (react_agent.py, react_agent_vm.py)
โโโ autonomous/ # ReAct Loop (agent_loop.py, exploit_validator.py, memory.py)
โโโ tools/ # 72+ Security Tools
โ โโโ Network: nmap, masscan, scapy, tshark, tcpdump, netdiscover, arp-scan
โ โโโ Web: nuclei, sqlmap, nikto, zap, burpsuite, ffuf, gobuster, wafw00f, whatweb
โ โโโ Recon: subfinder, amass, httpx, theharvester, subdomain_scan, unified_recon
โ โโโ AD: bloodhound, netexec, responder, ldapsearch, enum4linux, rpcclient, smbclient
โ โโโ OSINT: sherlock, scout, ignorant
โ โโโ Secrets: trufflehog, gitleaks, trivy
โ โโโ Wireless: aircrack-ng, airmon-ng, airodump-ng, aireplay-ng
โ โโโ Brute Force: hydra, hashcat, john, ncrack
โ โโโ Code: semgrep, bandit
โ โโโ Cloud/Container: docker, kubectl
โ โโโ AI/Kimi: kimi_cli, kimi_helper, update_personas
โ โโโ Core: tool_caller, tool_registry
โโโ risk_engine/ # Risk Analysis (cvss.py, epss.py, false_positive_engine.py)
โโโ benchmarks/ # Performance Testing
โโโ integrations/ # CI/CD (github, gitlab, slack, jira, jenkins)
โโโ database/ # PostgreSQL Models
โโโ gui/ # React Dashboard
โโโ reports/ # PDF/HTML/JSON Generator
โโโ notifications/ # Alerts (slack, email)
โโโ docker/ # Deployment configs
โโโ docs/ # Documentation (ARCHITECTURE.md, INSTALLATION.md, API.md, setup/)
โโโ tests/ # Test Suite (43,000+ tests)
โโโ scripts/ # Setup Scripts
Zen-AI-Pentest supports two approaches for managing configuration and secrets. Choose the one that fits your security requirements:
| Approach | Best For | Security Level | Setup Complexity |
|---|---|---|---|
| ๐ก๏ธ Obsidian Vault (Recommended) | Production, Teams | โญโญโญโญโญ High | Medium |
| ๐ .env File | Development, Quick Start | โญโญโญ Medium | Easy |
Store secrets securely in an encrypted Obsidian vault with MCP integration. Secrets never touch your codebase.
# 1. Setup Obsidian Secrets Vault
bash mcp/obsidian/setup.sh
# 2. Edit your secrets
code ~/Documents/Obsidian\ Vault/Secrets/secrets.yaml
# 3. Reload VS Codium
Ctrl+Shift+P โ Developer: Reload WindowVault Structure:
# ~/Documents/Obsidian Vault/Secrets/secrets.yaml
kimi:
api_key: "sk-your-kimi-api-key"
openai:
api_key: "sk-your-openai-key"
database:
url: "postgresql://postgres:pass@localhost:5432/zen_pentest"
notifications:
slack_webhook: "https://hooks.slack.com/..."Benefits:
- ๐ Encrypted at rest (Obsidian encryption)
- ๐ซ Never committed to Git
- ๐ค AI-assisted via MCP server
- ๐ Hot-reload without restart
- ๐ 100% Local Processing - Secrets never leave your machine
๐ Security Guarantees:
Your secrets are never sent to external servers. All operations happen exclusively on your local system.
We cannot access your secrets - the private key resides only on your system.
Open Source: You can audit the code at any time.
๐ Full Vault Docs: mcp/obsidian/README.md | Detailed Architecture
Quick setup for development using a local .env file.
# 1. Copy example file
cp .env.example .env
# 2. Edit with your secrets
nano .env
# 3. Load environment
source .envExample .env:
# Database
DATABASE_URL=postgresql://postgres:password@localhost:5432/zen_pentest
# Security
SECRET_KEY=your-secret-key-here
JWT_EXPIRATION=3600
# AI Providers (Kimi AI recommended)
KIMI_API_KEY=your-kimi-api-key
DEFAULT_BACKEND=kimi
DEFAULT_MODEL=kimi-k2.5
# Alternative Backends (optional)
# OPENAI_API_KEY=sk-...
# ANTHROPIC_API_KEY=sk-ant-...
# OPENROUTER_API_KEY=...
# Notifications
SLACK_WEBHOOK_URL=https://hooks.slack.com/...
SMTP_HOST=smtp.gmail.com
# Cloud Providers
AWS_ACCESS_KEY_ID=AKIA...
AZURE_SUBSCRIPTION_ID=....env to your .gitignore!
.env
.env.local
.env.*.localSee .env.example for all available options.
You can switch between Vault and .env at any time:
# Check current configuration
python3 -c "from core.config import settings; print(settings.secret_source)"
# Force reload from Vault
export USE_VAULT=true
# Force reload from .env
export USE_ENV_FILE=trueZen-AI-Pentest uses Obsidian MCP Server for secure credential management. All secrets are stored locally in an encrypted Obsidian vault - never in the repository.
# 1. Setup Obsidian Secrets Vault
bash mcp/obsidian/setup.sh
# 2. Edit your secrets
code ~/Documents/Obsidian\ Vault/Secrets/secrets.yaml
# 3. Reload VS Codium
Ctrl+Shift+P โ Developer: Reload Window| Feature | Benefit |
|---|---|
| Obsidian Encryption | Secrets remain secure even if laptop is stolen |
| No Secrets in Git | No panic when pushing to GitHub |
| Local MCP Server | No transmission to external servers |
| Separation of Concerns | Clean architecture - code vs credentials |
- AI Providers: Kimi, OpenAI, Anthropic, Gemini, OpenRouter
- Cloud: AWS, Azure, GCP credentials
- Database: PostgreSQL, Redis passwords
- Security: JWT secrets, encryption keys
- Notifications: Slack, Discord, Email SMTP
- VPN: ProtonVPN, OpenVPN, WireGuard
Access secrets directly in chat:
{
"mcpServers": {
"obsidian-secrets": {
"command": "python3",
"args": ["mcp/obsidian/server.py"]
}
}
}๐ Full Documentation: mcp/obsidian/README.md
.gitignore includes:
.env
.env.load.sh
*.key
*.pem
secrets.yaml
secrets.json
.obsidian/ # If Obsidian config is also sensitive| Category | Count | Status |
|---|---|---|
| Total Test Files | 1,145+ | โ Organized |
| Total Tests | 43,000+ | โ Verified |
| Coverage | 10% | |
| CI/CD | GitHub Actions | โ Automated |
tests/
โโโ unit/ # Unit tests for individual components
โ โโโ core/ # Core framework tests
โ โโโ api/ # API endpoint tests
โ โโโ database/ # Database model tests
โ โโโ tools/ # Security tool integration tests
โ โโโ agents/ # Agent behavior tests
โโโ integration/ # Integration tests
โโโ security/ # Security & DAST tests
โโโ test_working_final.py # Core test suite
โโโ test_performance_100_agents.py # Performance tests
| Module | Coverage | Status |
|---|---|---|
core/orchestrator.py |
84.42% | โ |
database/models.py |
87.97% | โ |
api/main.py |
38% | |
| Total | 10% | ๐ฏ Target: 80% |
# Run all tests
pytest tests/ -v
# With coverage
pytest tests/ --cov=. --cov-report=html --cov-report=term
# Unit tests only
pytest tests/unit/ -v
# Integration tests
pytest tests/integration/ -v
# Security tests
pytest tests/security/ -v
# Exclude slow tests
pytest tests/ -m "not slow" -v
# Frontend tests (React/Vite)
cd web_ui/frontend && npm test- HTML Report:
htmlcov/index.html - Codecov Integration: codecov.io/gh/SHAdd0WTAka/zen-ai-pentest
- CI Badge:
Wir empfehlen Docker in WSL2 (Ubuntu) fรผr die beste Performance:
Option 1: Automatisches Setup
# Windows: Setup-Launcher starten
scripts\docker-setup.bat
# Oder direkt in Ubuntu WSL:
./scripts/setup_docker_wsl2.shOption 2: Docker Desktop (Windows)
# PowerShell als Administrator:
powershell -ExecutionPolicy Bypass -File scripts/setup_docker_windows.ps1๐ Komplette Docker + WSL2 Anleitung - Detaillierte Schritte fรผr beide Optionen
# Nach Docker-Installation:
docker-compose up -d
# Check status
docker-compose ps
# View logs
docker-compose logs -f api
# Scale agents
docker-compose up -d --scale agent=3| Service | Port | Description |
|---|---|---|
| API | 8000 | FastAPI server |
| PostgreSQL | 5432 | Database |
| Redis | 6379 | Cache |
| Agent | - | Pentest agent |
Die React Frontend ist automatisch auf Cloudflare Pages deployed:
| Environment | URL | Status |
|---|---|---|
| Production | https://dde4fab5.zen-ai-pentest.pages.dev | โ Live |
| Dashboard | https://dde4fab5.zen-ai-pentest.pages.dev/dashboard | โ Ready |
| Login | /login |
โ Demo Mode |
Jeder Push auf main branch:
- Build: Cloudflare Pages baut automatisch
- Test: GitHub Actions laufen
- Deploy: Global CDN deployment (200+ Edge Locations)
- Live: ~2 Minuten nach Push
# Frontend bauen
cd web_ui/frontend
npm install
npm run build
# Oder mit Wrangler CLI
npx wrangler pages deploy dist/- 200+ Edge Locations weltweit
- DDoS Protection durch Cloudflare
- HTTPS by Default mit automatischen Zertifikaten
- Instant Cache Invalidation
- โ Private IP Blocking - Prevents scanning 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16
- โ Loopback Protection - Blocks 127.x.x.x and ::1
- โ Local Domain Filter - Prevents .local, .internal, localhost
- โ Risk Level Control - Restricts tools by safety level
- โ Rate Limiting - Prevents abuse
| Level | Tools | Description |
|---|---|---|
| SAFE (0) | whois, dns, subdomain | Reconnaissance only |
| NORMAL (1) | + nmap, nuclei | Standard scanning |
| ELEVATED (2) | + sqlmap, exploit | Light exploitation |
| AGGRESSIVE (3) | + pivot, lateral | Full exploitation |
| Document | Description |
|---|---|
| docs/DEPLOYMENT.md | Deployment guide |
| docs/BENCHMARK_STATUS.md | Benchmark results |
| docs/SECURITY_AUDIT.md | Security audit report |
| docs/PERFORMANCE.md | Performance characteristics |
| DOCKER.md | Docker deployment guide |
| GUARDRAILS.md | Security guardrails documentation |
| GUARDRAILS_INTEGRATION.md | Guardrails integration guide |
| VPN_INTEGRATION.md | VPN setup and usage |
| DEMO_E2E.md | End-to-end demo documentation |
| AGENTS.md | Agent development guide |
We welcome contributions! Please see:
- CONTRIBUTING.md - Contribution guidelines
- CODE_OF_CONDUCT.md - Community standards
- CONTRIBUTORS.md - Our amazing contributors
Quick start:
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open Pull Request
Join our growing community!
| Platform | Link | QR Code |
|---|---|---|
| ๐ฌ GitHub | github.com/SHAdd0WTAka/Zen-Ai-Pentest | ๐ฑ Scan |
| ๐ฎ Discord | discord.gg/zJZUJwK9AC | ๐ฑ Scan |
| ๐ Website | zen-ai-pentest.pages.dev | ๐ฑ Scan |
| ๐ Dashboard | pages.dev/dashboard | ๐ฑ Scan |
View our complete QR code gallery: docs/qr_codes/index.html
Fully configured with 11 channels:
- ๐ข #announcements
- ๐ #rules
- ๐ฌ #general
- ๐ #introductions
- ๐ #knowledge-base
- ๐ค #tools-automation
- ๐ #security-research
- ๐ง #ai-ml-discussion
- ๐ #bug-reports
- ๐ก #feature-requests
- ๐ #support
- ๐ Documentation - Comprehensive guides
- ๐ Issue Tracker - Bug reports
- ๐ง Email - Direct contact
See SUPPORT.md for detailed support options.
IMPORTANT: This tool is for authorized security testing only. Always obtain proper permission before testing any system you do not own. Unauthorized access to computer systems is illegal.
- Use only on systems you have explicit permission to test
- Respect privacy and data protection laws
- The authors assume no liability for misuse or damage
This project is licensed under the MIT License - see LICENSE file for details.
- LangGraph - Agent framework
- FastAPI - Web framework
- Kali Linux - Penetration testing distribution
- All open-source security tool creators
@SHAdd0WTAka Project Founder & Lead Developer Security Architect |
AI Contributors
A fusion of human vision and AI capability Left Brain (Kimi - Logik) + Right Brain (Observer^^ - Kreativitรคt) = Hemisphere_Sync
Custom artwork by SHAdd0WTAka representing the fusion of human vision and AI capability.
Made with โค๏ธ for the security community ๐น Demo Video (295MB) Full demonstration of the Zen-AI-Pentest framework in action. All screenshots, diagrams and visual assets for this repository: ๐ View All Images
The API has been refactored with a modular route structure: api/routes/v1/
โโโ auth.py # Authentication
โโโ scans.py # Scan management
โโโ findings.py # Findings
โโโ tools.py # Tool execution
โโโ reports.py # Reports
โโโ schedules.py # Scheduled scans
โโโ settings.py # Configuration
โโโ stats.py # Analytics
โโโ notifications.py # Notifications
โโโ health.py # Health checks
โโโ websocket.py # WebSocketsSee docs/API_V1_ROUTES.md for full documentation. Current coverage: 10.19% (target: 80%) Run tests: # Unit tests
pytest tests/unit/ -v
# Integration tests
pytest tests/integration/ -v
# E2E tests
pytest tests/e2e/ -v
# With coverage
pytest tests/ --cov=core --cov-report=htmlThe project includes an enhanced CI/CD pipeline:
# Unit tests with coverage
pytest tests/unit/ -v --cov=core --cov-report=html
# Integration tests
pytest tests/integration/ -v
# Performance tests
pytest tests/performance/ -v
# E2E tests
pytest tests/e2e/ -v
# All tests
pytest tests/ -v
Letzte Aktualisierung: 31.03.2026 Release History
Dependencies & License AuditLoading dependencies... Similar PackagesredamonAn AI-powered agentic red team framework that automates offensive security operations, from reconnaissance to exploitation to post-exploitation, with zero human intervention.v4.0.0 opentulpaSelf-hosted personal AI agent that lives in your DMs. Describe any workflow: triage Gmail, pull a Giphy feed, build a Slack bot, monitor markets. It writes the code, runs it, schedules it, and saves imain@2026-06-05 More in Frameworksspec_driven_developSpec-Driven Develop is a platform-agnostic AI agent skill that automates the pre-development workflow for large-scale complex tasks. It is not a framework, not a runtime, not a package manager โ it is deer-flowAn open-source long-horizon SuperAgent harness that researches, codes, and creates. With the help of sandboxes, memories, tools, skill, subagents and message gateway, it handles different levels of ta simBuild, deploy, and orchestrate AI agents. Sim is the central intelligence layer for your AI workforce. ctranslate2Fast inference engine for Transformer models |


