Oui-Spy UniPwn Port
February 7, 2026 ยท View on GitHub
Overview
This project ports the powerful UniPwn Unitree robot exploitation research to ESP32-S3 microcontrollers, creating a portable exploitation device with a web interface. Based on the original research by Bin4ry and d0tslash, this ESP32 implementation brings comprehensive BLE-based robot exploitation to a compact, battery-powered form factor.
Research Credits
This implementation is built upon the groundbreaking security research conducted by:
- Bin4ry - Primary researcher and vulnerability discovery
- d0tslash - Co-researcher and exploitation development
- Original Research: https://github.com/Bin4ry/UniPwn
All credit for the vulnerability discovery, protocol analysis, and initial exploitation techniques goes to these security researchers. This ESP32 port simply adapts their excellent work to embedded hardware.
Features
Advanced Exploitation Capabilities
- BLE Command Injection: Exploits WiFi configuration vulnerability in Unitree robots
- Multi-Robot Support: Go2, G1, H1, and B2 series compatibility
- AutoPwn: 7-step automated exploitation with bulletproof error handling
- Real-time BLE Scanning: Live device discovery with signal strength indicators
- Custom Command Injection: Manual exploitation with SSID/password injection methods
Web Interface
- Target Management: Click-to-select discovered robots with detailed information
- Continuous Scanning: Automated scanning with visual progress indicators
- Attack Vectors: Pre-configured exploits (SSH enable, root access, system info)
- Operations Logging: Comprehensive audit trail with timestamps and status codes
- System Monitoring: Real-time heap, uptime, and network status
AutoPwn Features
- Error Handling: 3 retries per step with progressive backoff
- Timeout Protection: 10-second timeouts on all network operations
- Step Validation: Each exploitation phase verified before proceeding
- Progress Tracking: Real-time progress bar with detailed status updates
Hardware Platform
- ESP32-S3 Optimized: Built for Seeed XIAO ESP32-S3 with PSRAM support
- Wireless AP Mode: Creates isolated "unipwn" network for interface access
- Detailed Logging: Comprehensive BLE scan results and exploitation status
Technical Implementation
Supported Robot Models
- Unitree Go2: Latest generation quadruped robot
- Unitree G1: Humanoid robot platform
- Unitree H1: Advanced humanoid robot
- Unitree B2: Industrial quadruped robot
Exploitation Method
Based on the original UniPwn research, this tool exploits a command injection vulnerability in the WiFi configuration process. The attack uses BLE communication to deliver malicious payloads through unsanitized SSID and password fields, executing commands with system privileges.
Key Technical Features
- AES-CFB128 Encryption: Proper implementation of Unitree's crypto protocol
- BLE Protocol Stack: Complete implementation of the 6-instruction handshake
- Command Injection Payloads: Multiple injection vectors with proper escaping
- Error Recovery: Comprehensive retry logic with detailed failure analysis
Quick Start
Hardware Requirements
- ESP32-S3 development board (Seeed XIAO ESP32-S3 recommended)
- USB-C cable for programming
- Unitree robot target for testing (with proper authorization)
Installation
- Install PlatformIO development environment
- Clone this repository to your local machine
- Connect ESP32-S3 board via USB-C
- Execute:
pio run -e seeed_xiao_esp32s3 -t upload - Monitor serial output for startup confirmation
Operation
- Power on the ESP32-S3 device
- Connect to "unipwn" WiFi network (password: unipwn123)
- Navigate to http://192.168.4.1 in web browser
- Use "Start BLE Scan" to discover Unitree robots
- Click discovered targets to select them
- Use "START AUTOPWN" for automated exploitation
- Monitor operations log for detailed status updates
Core Components
- BLE Stack: ESP32 native BLE with custom Unitree protocol implementation
- Web Server: Async HTTP server with JSON API endpoints
- Crypto Engine: Hardware-accelerated AES encryption/decryption
- UI Framework: Responsive web interface with real-time updates
Build System
- PlatformIO: Advanced embedded development platform
- Custom Partitions: Optimized flash layout for large web interface
- Library Management: Automated dependency resolution
- Multi-board Support: Configurable for different ESP32-S3 variants
Legal and Ethical Notice
This tool implements published security research for educational and authorized testing purposes only. The original vulnerability research by Bin4ry and d0tslash was conducted responsibly and disclosed appropriately.
Important: Users must ensure they have explicit authorization before testing against any robotic systems. Unauthorized access to computer systems is illegal and unethical. This tool should only be used on systems you own or have written permission to test.
Acknowledgments
- Bin4ry: Original UniPwn research and vulnerability discovery
- d0tslash: Co-researcher and exploitation development
- Security Research Community: Responsible disclosure and knowledge sharing
- Unitree Robotics: For building innovative robotic platforms
OUI-SPY Firmware Ecosystem
UniPwn is part of the OUI-SPY firmware family:
| Firmware | Description | Board |
|---|---|---|
| OUI-SPY Unified | Multi-mode BLE + WiFi detector | ESP32-S3 / ESP32-C5 |
| OUI-SPY Detector | Targeted BLE scanner with OUI filtering | ESP32-S3 |
| OUI-SPY Foxhunter | RSSI-based proximity tracker | ESP32-S3 |
| Flock You | Flock Safety / Raven surveillance detection | ESP32-S3 |
| Sky-Spy | Drone Remote ID detection | ESP32-S3 / ESP32-C5 |
| Remote-ID-Spoofer | WiFi Remote ID spoofer & simulator with swarm mode | ESP32-S3 |
| OUI-SPY UniPwn | Unitree robot exploitation system (this project) | ESP32-S3 |
License
This educational implementation is provided for security research and authorized testing purposes. Users are responsible for compliance with all applicable laws and regulations in their jurisdiction.