PHANTOM
Health Gecti
- License รขโฌโ License: MIT
- Description รขโฌโ Repository has a description
- Active repo รขโฌโ Last push 0 days ago
- Community trust รขโฌโ 11 GitHub stars
Code Basarisiz
- network request รขโฌโ Outbound network request in frontend/js/app.js
- network request รขโฌโ Outbound network request in frontend/js/management.js
- network request รขโฌโ Outbound network request in frontend/js/settings.js
- execSync รขโฌโ Synchronous shell command execution in server/ai/system-prompt.js
- os.homedir รขโฌโ User home directory access in server/ai/system-prompt.js
- process.env รขโฌโ Environment variable access in server/ai/system-prompt.js
- process.env รขโฌโ Environment variable access in server/config.js
- exec() รขโฌโ Shell command execution in server/memory/store.js
- execSync รขโฌโ Synchronous shell command execution in server/routes/api.js
- os.homedir รขโฌโ User home directory access in server/routes/api.js
Permissions Gecti
- Permissions รขโฌโ No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
๐ป AI-Powered Pentesting Command Center โ Autonomous security testing with real-time streaming, self-improving AI, unlimited tool iterations, and beautiful dark UI
๐ป PHANTOM
AI-Powered Pentesting Command Center
An autonomous AI assistant for penetration testing, security research, and general-purpose tasks.
Real-time tool execution โข Unlimited autonomous operations โข Self-improving AI โข Beautiful dark UI
โจ Features
| Feature | Description |
|---|---|
| ๐ค Any LLM Backend | OpenAI, OpenRouter, Ollama, LM Studio, DeepSeek, Claude โ any OpenAI-compatible API |
| โก Real-Time Streaming | Live tool execution output, typing animations, and AI thinking display |
| ๐ Unlimited Operations | No tool call limits โ PHANTOM runs autonomously until the task is done |
| ๐ง Self-Improving | Creates its own tools, saves execution traces, learns from past runs |
| ๐ Secure Sudo | One-time sudo password with system validation โ persisted securely |
| ๐ Workspace System | Configurable workspace directory for scripts, reports, and file operations |
| ๐งฉ MCP Integration | Model Context Protocol server management for extended capabilities |
| ๐ฆ Skills System | Import, manage, and create reusable skill packages (.zip import supported) |
| ๐ Web Research | Built-in web search and webpage scraping for real-time information |
| ๐ท๏ธ Scrapling Integration | Anti-bot bypass, Cloudflare solving, JS rendering via Scrapling |
| ๐พ Persistent Memory | Remembers targets, credentials, findings across sessions |
| ๐ Emergency Stop | Instant abort button to halt any running operation |
| ๐จ Premium Dark UI | Glassmorphism, matrix background, smooth animations |
๐ Quick Start
Prerequisites
- Node.js 18+ (install)
- Python 3.10+ (for Scrapling integration)
- npm (comes with Node.js)
- Any OpenAI-compatible API key
Installation
# Clone the repository
git clone https://github.com/OmYarewar/PHANTOM.git
cd PHANTOM
# Install dependencies
npm install
# Configure your API
cp .env.example .env
nano .env # Add your API key and model
Configuration
Edit .env with your API provider:
# OpenAI
API_BASE_URL=https://api.openai.com/v1
API_KEY=sk-your-key-here
MODEL_ID=gpt-4o
# OpenRouter (access to 100+ models)
API_BASE_URL=https://openrouter.ai/api/v1
API_KEY=sk-or-your-key-here
MODEL_ID=deepseek/deepseek-chat
# Ollama (local, free)
API_BASE_URL=http://localhost:11434/v1
API_KEY=ollama
MODEL_ID=llama3
# LM Studio (local)
API_BASE_URL=http://localhost:1234/v1
API_KEY=lm-studio
MODEL_ID=your-model-name
Run
npm run dev
Open http://localhost:5173 in your browser. That's it! ๐
๐๏ธ Architecture
PHANTOM/
โโโ server/ # Backend (Express + WebSocket)
โ โโโ ai/
โ โ โโโ llm-client.js # LLM communication & streaming
โ โ โโโ system-prompt.js # Dynamic system prompt builder
โ โโโ tools/
โ โ โโโ executor.js # Tool execution engine (14 tools)
โ โ โโโ registry.js # Tool definitions for function calling
โ โโโ memory/
โ โ โโโ store.js # SQLite persistence layer
โ โโโ routes/
โ โ โโโ api.js # REST API endpoints
โ โโโ config.js # Configuration management
โ โโโ index.js # Server entry point
โโโ frontend/ # Frontend (Vanilla JS + Vite)
โ โโโ css/styles.css # Dark theme design system
โ โโโ js/
โ โ โโโ app.js # Main controller & WebSocket
โ โ โโโ chat.js # Chat rendering & animations
โ โ โโโ settings.js # Settings panel
โ โ โโโ management.js # MCP & Skills management
โ โ โโโ markdown.js # Markdown renderer
โ โโโ index.html # Main page
โโโ workspace/ # AI workspace (scripts, reports, skills)
โโโ .env.example # Configuration template
โโโ vite.config.js # Vite dev server config
โโโ package.json
๐ ๏ธ Available Tools
PHANTOM has 15 built-in tools that the AI uses autonomously:
| Tool | Purpose |
|---|---|
execute_command |
Run shell commands with auto sudo injection |
read_file |
Read file contents |
write_file |
Write/create files |
list_directory |
List directory contents |
install_tool |
Auto-install packages (apt/pacman/pip/npm/go/cargo) |
web_request |
HTTP requests for recon & API testing |
search_web |
Web search via DuckDuckGo |
scrape_webpage |
Fetch & parse webpage content |
scrapling_fetch |
โญ Advanced scraping โ anti-bot bypass, Cloudflare, JS rendering (Scrapling) |
python_execute |
Execute Python code directly |
save_memory |
Store findings to persistent memory |
recall_memory |
Search persistent memory |
edit_source_code |
Self-modify PHANTOM's own code |
save_trace |
Log execution traces for self-optimization |
๐ Security Notes
- Sudo passwords are stored in a local SQLite database on your machine only
- API keys are stored locally and never transmitted except to your configured API endpoint
- The
.envfile andphantom.dbare excluded from git - PHANTOM runs locally only โ no external telemetry or data collection
- The
edit_source_codetool only works within the project directory and creates backups
๐จ Screenshots
Click to expandMain Interface
The dark-themed command center with matrix background, real-time streaming, and AI thinking display.
Settings Panel
Configure API provider, model, temperature, workspace, and sudo access.
Management Panel
Manage MCP servers and skills with tabbed interface and .zip import.
โ๏ธ Settings (via Web UI)
All settings can be configured from the web UI and persist across restarts:
- API Configuration โ Base URL, API key, model, temperature, max tokens
- Workspace โ Default directory for all AI file operations
- Sudo Password โ System-validated and securely stored
- MCP Servers โ Add/remove Model Context Protocol servers
- Skills โ Import .zip skill packages or let AI create them
๐ง How It Works
- You ask โ Type a request in the chat
- AI thinks โ Reasoning displayed in real-time (for supported models)
- AI acts โ Executes tools autonomously with live output streaming
- AI reports โ Clean, formatted results with typing animation
- AI learns โ Saves traces and memories for future optimization
PHANTOM implements ideas from Meta-Harness for automated harness optimization โ the AI can review its own execution traces and improve its approach over time.
๐ API Endpoints
| Endpoint | Method | Description |
|---|---|---|
/api/settings |
GET/PUT | Configuration management |
/api/conversations |
GET/POST | Conversation CRUD |
/api/conversations/:id |
GET/DELETE | Single conversation |
/api/tools |
GET | List available tools |
/api/memory |
GET | Query persistent memory |
/api/mcp/servers |
GET/POST/DELETE | MCP server management |
/api/skills |
GET | List installed skills |
/api/skills/upload |
POST | Import skill (.zip) |
/api/sudo/validate |
POST | Validate sudo password |
/api/system/info |
GET | System information |
/ws |
WebSocket | Real-time chat & streaming |
๐ค Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/awesome) - Commit your changes (
git commit -m 'Add awesome feature') - Push to the branch (
git push origin feature/awesome) - Open a Pull Request
๐ License
This project is licensed under the MIT License โ see the LICENSE file for details.
โ ๏ธ Disclaimer
PHANTOM is designed for authorized security testing only. Always obtain proper authorization before testing any systems. The developers are not responsible for misuse of this tool.
Built with ๐ค for the security community
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi