Mirage V3 is a cutting-edge cyber range simulator that combines AI-powered response generation with stunning cyberpunk aesthetics. Designed for safe red team practice and security education, it creates dynamic, realistic network responses using the Kimi AI API.
- Dynamic Response Generation: Kimi AI creates protocol-appropriate responses in real-time
- Contextual Awareness: Maintains state across connections and adapts behavior
- Difficulty Modes: EASY (vulnerable) vs HARD (security-conscious) responses
- Burp Suite Integration: Specialized handling for web vulnerability testing
- Port Coverage: SSH (22), FTP (21), HTTP/HTTPS (80, 443, 8080)
- Realistic Banners: Convincing service responses for each protocol
- Async Architecture: Non-blocking I/O with asyncio for performance
- State Management: Global context maintains consistency across sessions
- Terminal TUI: Rich-based live dashboard with neon aesthetics
- Web Dashboard: HTML5 interface with real-time updates
- Live Metrics: CPU, memory, threat level gauges with simulated data
- Connection Monitoring: Real-time connection history and AI activity logs
- Fake Documents: Generates Excel budgets and Word documents
- Virtual File System: Realistic file system with fabricated content
- Dynamic Generation: Creates assets based on context and interactions
- Python 3.10+
- sudo/admin privileges (for privileged ports)
- Kimi API key
# Clone the repository
git clone https://github.com/Insider77Circle/mirage-v3.git
cd mirage-v3
# Install dependencies
pip install -r requirements.txt
# Configure environment
cp .env.example .env
# Edit .env and add your Kimi API key
# Run with sudo (required for privileged ports)
sudo python3 mirage_v3_cyberpunk.py- Network Connection โ Received on configured port
- Input Analysis โ Context prepared for AI processing
- AI Generation โ Kimi API creates appropriate response
- Response Formatting โ Protocol-specific formatting applied
- Client Reply โ Dynamic response sent back
- UI Update โ Terminal and web interfaces updated
# Test SSH service
ssh root@localhost -p 22
# Test web services
curl http://localhost:80
curl http://localhost:8080
# Test FTP service
ftp localhost 21# SQL Injection test (EASY mode)
curl -X POST http://localhost:8080/login -d "username=admin' OR 1=1--&password=test"
# Directory traversal test
curl http://localhost:8080/../../../etc/passwd
# XSS test
curl -X POST http://localhost:8080/search -d "q=<script>alert(1)</script>"- Safe Environment: All responses are AI-generated, no real system access
- Configurable Exposure: Adjustable difficulty and response generation
- Educational Purpose: Designed for learning and authorized testing only
- Isolated Operation: Self-contained with no external dependencies beyond API
- Response Time: < 2 seconds for AI-generated content
- Concurrent Connections: Handles multiple simultaneous clients
- Memory Usage: Efficient state management with circular buffers
- CPU Simulation: Dynamic load simulation for realistic metrics
# Edit color constants in mirage_v3_cyberpunk.py
C_CB = "bright_cyan" # Main borders
C_GN = "bright_green" # Success/Go
C_RD = "bright_red" # Alerts/Errors
C_MG = "bright_magenta" # HighlightsModify the SYSTEM_PROMPT in mirage_core.py to include new attack patterns and responses.
Extend the Fabricator class to generate additional file types and content.
- MirageAI Class: Handles AI communication and response generation
- Fabricator Class: Generates fake assets and documents
- TUI System: Rich-based terminal interface with live rendering
- Async Server: Multi-protocol network server with connection handling
openai>=1.0.0- AI client libraryfaker>=15.0.0- Data generationpandas>=1.5.0- Data manipulationpython-docx>=0.8.11- Document creationrich>=13.0.0- Terminal UI framework
- Installation Guide - Detailed setup instructions
- API Reference - Core classes and methods
- Architecture Guide - System design and flow
- Customization Guide - How to modify and extend
- Security Guide - Security considerations and best practices
We welcome contributions! Please see our Contributing Guide for details.
- ๐ Report bugs and issues
- ๐ก Suggest new features and improvements
- ๐ Improve documentation
- ๐จ Create new themes and color schemes
- ๐ง Submit pull requests
This project is licensed under the MIT License - see the LICENSE file for details.
IMPORTANT: This tool is for educational and authorized testing purposes only. Always ensure you have permission before testing any systems. The authors are not responsible for misuse.
- Kimi AI for providing the powerful language model API
- Rich Library for the amazing terminal UI framework
- Cyberpunk Community for inspiration and aesthetic guidance
- Security Researchers who contribute to making the digital world safer



