A full-stack web application that combines the NSA's Ghidra reverse engineering framework with Claude AI to provide secure, intelligent malware analysis in your browser.
- Docker-based isolation - Malware never touches your host system
- Interactive web terminal - Full bash shell access to isolated container
- Safe downloads - Fetch malware samples directly into the container
- Automatic cleanup - All malware destroyed when container stops
- Ghidra 11.4.2 - Industry-standard disassembly and decompilation
- Beautiful web UI - VSCode-inspired dark theme
- Multiple views - Assembly, decompiled C code, AI-enhanced code
- Function browsing - Click through functions with sidebar navigation
- Binary format support - ELF, PE, Mach-O, and more
- Security Analysis - Claude AI identifies vulnerabilities and malware behaviors
- Code Enhancement - Rewrites decompiled code with meaningful names and comments
- Risk Assessment - Automated threat scoring (Critical/High/Medium/Low)
- IOC Extraction - Identifies indicators of compromise
- Batch Processing - Enhances up to 60 functions automatically
- Full bash shell - Direct access to isolated container
- Real-time I/O - WebSocket-based streaming for instant feedback
- Helper commands -
analyze,download-sample,list-samples - Git support - Clone repositories directly in the container
- Docker Desktop - Download here
- Node.js (v18+) - Download here
- Anthropic API Key - Get one here (for AI features)
# 1. Clone the repository
cd Desktop/KingGhidra/CipherHacks
# 2. Install dependencies
npm install
# 3. Build the Docker image
docker build -t ghidra-analysis-vm .
# 4. Configure AI (optional but recommended)
cp .env.example .env
# Edit .env and add: ANTHROPIC_API_KEY=sk-ant-your-key-here
# 5. Start the server
npm start# Open your browser
http://localhost:3000
# Start the isolated VM
Click "Start Isolated VM" button in the UI
# You're ready to analyze malware! ๐- Upload - Drag and drop a binary file onto the upload area
- Analyze - Click "Analyze with Ghidra"
- Wait - Analysis takes 30 seconds to 5 minutes
- Explore - Browse disassembly, decompiled code, and functions
# In the web terminal:
# Download a sample
download-sample https://secure.eicar.org/eicar.com
# List downloaded samples
list-samples
# Analyze with Ghidra
analyze /workspace/malware/eicar.com
# Results auto-load in the UI!- Analyze binary with Ghidra
- Click "AI Analysis" tab
- Click "๐ค Analyze with AI"
- Review comprehensive security report (10-30 seconds)
- Analyze binary with Ghidra
- Click "AI Enhanced Code" tab
- Click "โจ Enhance All Functions with AI"
- Browse enhanced functions in sidebar (10-60 seconds)
- Click any function to view readable, documented code
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Web Browser UI โ
โ HTML5 + CSS3 + JavaScript + xterm.js + WebSocket โ
โโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ HTTP/WS
โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Node.js Backend Server โ
โ Express + WebSocket + Multer + Anthropic SDK โ
โโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ REST API โ WebSocket Terminal โ AI Service โ
โ - Upload โ - Interactive Shell โ - Analysis โ
โ - Analyze โ - Real-time I/O โ - Enhancementโ
โ - Results โ - Helper Commands โ - Batch โ
โโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโ
โ Docker API
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโ
โ Docker Container (ghidra-vm) โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ Ghidra 11.4 โ โ Bash Shell โ โ Malware Dir โ โ
โ โ - Analyze โ โ - Commands โ โ - Isolated โ โ
โ โ - Decompile โ โ - wget/git โ โ - Safe โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโ
โ Anthropic Claude API โ
โ - Security Analysis โ
โ - Code Enhancement โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
- Node.js - JavaScript runtime
- Express.js v4.21.2 - Web framework
- ws v8.14.2 - WebSocket server
- Multer v1.4.5 - File upload handling
- @anthropic-ai/sdk v0.32.1 - Claude AI integration
- dotenv v16.4.7 - Environment configuration
- HTML5/CSS3 - Modern web standards
- Vanilla JavaScript (ES6+) - No framework dependencies
- xterm.js v5.3.0 - Terminal emulator
- WebSocket API - Real-time communication
- Fetch API - RESTful requests
- Docker - Container isolation
- Ghidra v11.4.2 - Reverse engineering framework
- Java - Ghidra scripting
- Bash - Shell scripting
- Anthropic Claude - claude-3-5-sonnet-20241022
- Temperature: 0.1-0.2 (deterministic)
- Max tokens: 4096-8192
- Batch processing - Up to 60 functions
KingGhidra/
โโโ CipherHacks/ # Main application
โ โโโ server/
โ โ โโโ index.js # Express server + WebSocket
โ โ โโโ docker-manager.js # Docker orchestration
โ โ โโโ ghidra-runner.js # Ghidra headless execution
โ โ โโโ ai-analyzer.js # Claude AI integration
โ โโโ public/
โ โ โโโ index.html # Single-page frontend (1700+ lines)
โ โโโ ghidra-scripts/
โ โ โโโ DisassemblyExporter.java
โ โ โโโ DecompilerExporter.java
โ โโโ temp/ # Analysis results & uploads
โ โโโ Dockerfile # Container image definition
โ โโโ package.json # Node dependencies
โ โโโ .env # API keys (gitignored)
โ โโโ .env.example # Configuration template
โโโ ghidra_11.4.2_PUBLIC/ # Ghidra installation
โโโ test/ # Test binaries
- AI Setup Guide - Configure Claude AI integration
- Quick Start AI - 3-minute AI setup
- Terminal Implementation - WebSocket terminal details
- Docker Implementation - Container architecture
- UI Enhancements - Interface design docs
- AI Enhanced Code - Code enhancement feature
- Analyze malware samples safely
- Identify zero-day vulnerabilities
- Extract IOCs for threat intel
- Document malware families
- Understand proprietary software
- Debug complex binaries
- Learn new architectures
- Prepare for patching/modding
- Learn reverse engineering
- Study real-world code
- Practice malware analysis
- Safe hands-on experience
- Integrate into security pipelines
- Automated binary analysis
- Security scanning
- Compliance verification
- Ghidra: Free (open source)
- Docker: Free (Desktop version)
- Node.js: Free (open source)
- Security Analysis: ~$0.09 per binary
- Code Enhancement: ~$0.20-$0.60 per binary (depending on size)
- Combined: ~$0.29-$0.69 per full analysis
Budget Example: 100 analyses โ $30-$70 (very affordable!)
- โ Docker container isolation
- โ Dropped Linux capabilities (--cap-drop=ALL)
- โ Network isolation (bridge mode)
- โ Read-only script mounts
- โ Automatic cleanup on shutdown
- โ Malware never touches host system
- โ Downloads directly into container
- โ No execution on host
- โ API keys in environment variables
- โ No secrets in code
- โ Binary files NOT sent to AI
- โ Only disassembly text sent to Claude
- โ No data retention by default
- โ Local-first architecture
- Beautiful VSCode-inspired dark theme
- Split-pane layout with function sidebar
- Real-time Docker status indicator
- Tab-based navigation
- Full bash shell in isolated container
- Built-in helper commands
- Auto-analysis workflow
- Real-time command execution
- Comprehensive security reports
- Risk assessment with threat scoring
- IOC extraction
- Mitigation recommendations
- Clickable function list (up to 60 functions)
- Readable, documented code
- Meaningful variable names
- Inline comments explaining logic
# In the web terminal:
download-sample https://secure.eicar.org/eicar.com
analyze /workspace/malware/eicar.comUpload your own binaries through the web interface or terminal.
# Start Docker Desktop
# Verify: docker --version# Check .env file exists
cat CipherHacks/.env
# Restart server after adding key
cd CipherHacks && npm start# Check Docker is running
docker ps
# Rebuild image
cd CipherHacks && docker build -t ghidra-analysis-vm .# Refresh browser (Cmd+Shift+R / Ctrl+Shift+R)
# Check server logs
tail -f /tmp/ghidra-server.logThis project was built for [CipherHacks/Hackathon Name]. Contributions welcome!
# Clone repo
git clone <repo-url>
cd KingGhidra/CipherHacks
# Install dependencies
npm install
# Run in development mode
npm run dev- ES6+ JavaScript
- Async/await for asynchronous operations
- Comprehensive error handling
- Inline documentation
MIT License - See LICENSE file for details
- NSA - Ghidra reverse engineering framework
- Anthropic - Claude AI API
- blacktop - Ghidra Docker image
- xterm.js - Web terminal emulator
- Ghidra: https://ghidra-sre.org/
- Anthropic Claude: https://console.anthropic.com
- Docker: https://www.docker.com/
- xterm.js: https://xtermjs.org/
For issues, questions, or feature requests:
- Check documentation in
/CipherHacks/directory - Review implementation guides
- Open GitHub issues (if applicable)
This tool is designed for legitimate security research and education. Use responsibly:
- โ Malware research in isolated environments
- โ Security vulnerability discovery
- โ Educational purposes
- โ Authorized penetration testing
- โ Unauthorized system access
- โ Malicious use
# Start isolated VM
docker run -d --name ghidra-vm --rm \
-v "$(pwd)/temp:/data" \
-v "$(pwd)/ghidra-scripts:/scripts:ro" \
--cap-drop=ALL --cap-add=NET_RAW \
ghidra-analysis-vm
# Stop VM
docker stop ghidra-vmhelp-ghidra # Show all commands
download-sample <url> # Download malware
list-samples # List samples
analyze /workspace/malware/<file> # Analyze with Ghidra
clear # Clear terminal- Analyze with AI - Security vulnerability analysis
- Enhance All Functions - Rewrite code for readability
- Upload Limit: 100MB per file
- Ghidra Analysis: 30 seconds - 5 minutes
- AI Security Analysis: 10-30 seconds
- AI Code Enhancement: 10-60 seconds
- Terminal Latency: <50ms (real-time)
- Status Updates: Every 5 seconds
- ๐ Zero-trust malware handling - Complete Docker isolation
- โก Real-time terminal - Full interactive shell via WebSocket
- ๐ค Dual AI modes - Both security analysis AND code enhancement
- ๐จ Professional UI - Beautiful, responsive, VSCode-themed
- ๐ฐ Cost-effective - ~$0.30-$0.70 per complete analysis
- ๐ Well-documented - Comprehensive guides for every feature
- ๐ Production-ready - Error handling, caching, rate limiting
- First web-based Ghidra interface with full AI integration
- Safe malware analysis without expensive isolated networks
- AI code enhancement that actually improves readability
- Interactive terminal right in your browser
- All-in-one platform - Upload, analyze, enhance, report
- 4,000+ lines of code
- 4 major features (Ghidra, Docker, Terminal, AI)
- 15+ API endpoints
- 4 interactive tabs
- 60 functions AI-enhanced per binary
- 0 vulnerabilities in dependencies
- Streaming AI responses (ChatGPT-style)
- Dynamic analysis (execute and monitor)
- Multi-user collaboration
- Database persistence
- YARA rule generation
- Threat intelligence integration
- Mobile app
- Cloud deployment (SaaS)
Built for [Hackathon Name] | Made with โค๏ธ and AI | October 2025
Start analyzing malware safely today! ๐