PHANTOM
Health Pass
- License รขโฌโ License: MIT
- Description รขโฌโ Repository has a description
- Active repo รขโฌโ Last push 0 days ago
- Community trust รขโฌโ 65 GitHub stars
Code Fail
- execSync รขโฌโ Synchronous shell command execution in bin/phantom.js
- process.env รขโฌโ Environment variable access in bin/phantom.js
- network request รขโฌโ Outbound network request in frontend/js/app.js
- network request รขโฌโ Outbound network request in frontend/js/management.js
Permissions Pass
- Permissions รขโฌโ No dangerous permissions requested
No AI report is available for this listing yet.
๐ป AI-Powered Pentesting Command Center โ Autonomous security testing with real-time streaming, self-improving AI, unlimited tool iterations,
๐ป 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
โก Installation (Linux / macOS / Windows)
Install PHANTOM and configure the phantom CLI command across any terminal in a single command:
Linux & macOS (Bash/Zsh/Fish/etc.):
curl -fsSL https://raw.githubusercontent.com/OmYarewar/PHANTOM/main/install.sh | bash
Windows (PowerShell):
iwr -useb https://raw.githubusercontent.com/OmYarewar/PHANTOM/main/install.ps1 | iex
Once installed, launch PHANTOM from any terminal window instantly:
# ๐ Launch PHANTOM server
phantom start
# ๐ป Launch in development mode (Backend + Vite UI)
phantom dev
# ๐ Specify custom port
phantom start --port 8080
# โ View CLI menu & options
phantom --help
Open http://localhost:1337 (or http://localhost:5173 in dev mode) in your browser.
๐ฉโ๐ป Developer Setup (Manual Installation)
For developers contributing to PHANTOM or customizing the codebase:
# 1. Clone the repository
git clone https://github.com/OmYarewar/PHANTOM.git
cd PHANTOM
# 2. Install dependencies
npm install
# 3. Configure environment
cp .env.example .env
# 4. Start development mode
npm run dev
# 5. Run test suite
npm test
๐ค Why PHANTOM?
- Zero-Config Tool Execution: Tools automatically install system dependencies and parse outputs cleanly, so the AI never gets stuck missing a library.
- Unbounded Agent Loops: Unlike standard chat UIs, PHANTOM allows the LLM to call tools recursively until the goal is achieved without needing constant human prompting.
- Persistent Context: The integrated SQLite memory store gives your agent long-term recall across sessions, preventing repetitive scanning or reconnaissance.
โจ Features
| Feature | Description |
|---|---|
| ๐ก๏ธ Multi-Agent Defense | Orchestrator, Planner, and Specialist Agents (Log, Compliance, Threat Modeler) working in parallel via Task Graphs |
| ๐ค 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 Server Hub | Native Model Context Protocol infrastructure supporting typed JSON schemas and rate-limited endpoints |
| ๐ฆ Skills System | Trust-tiered SKILL.md packages utilizing isolated-vm sandboxing |
| ๐ Web Research | Built-in web search and webpage scraping for real-time information |
| ๐ท๏ธ Scrapling Integration | Anti-bot bypass, Cloudflare solving, JS rendering via Scrapling |
| ๐พ Semantic Memory | Local Vector Search (@xenova/transformers) paired with standard FTS |
| ๐ Emergency Stop | Instant abort button to halt any running operation |
| ๐จ Premium Dark UI | Includes live animated Canvas graph of multi-agent communication |
| ๐ Internet Crawling | Zero-config web reading, YouTube subtitles, RSS feeds, V2EX via Agent Reach integration |
โ๏ธ Configuration
Edit .env or configure via the Web UI Settings panel:
# 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
๐ณ Docker Deployment
Run PHANTOM in a containerized environment using Docker Compose:
docker compose up --build
Open http://localhost:3000 in your browser.
๐๏ธ Architecture
PHANTOM/
โโโ bin/ # PHANTOM CLI executable script (phantom)
โโโ install.sh # 1-line curl installer script
โโโ server/ # Backend (Express + WebSocket)
โ โโโ ai/
โ โ โโโ llm-client.js # LLM communication & streaming
โ โ โโโ system-prompt.js # Dynamic system prompt builder
โ โโโ tools/
โ โ โโโ executor.js # Tool execution engine (25 tools)
โ โ โโโ registry.js # Tool definitions for function calling
โ โโโ memory/
โ โ โโโ store.js # SQLite persistence layer
โ โโโ banner.js # Colorful ANSI terminal banner
โ โโโ 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
โ โโโ 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 25 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 AgentMemory engine (4-tier taxonomy) |
recall_memory |
Hybrid RRF search across persistent memory |
get_memory_stats |
Get AgentMemory Engine stats & top-recalled items |
edit_source_code |
Self-modify PHANTOM's own code |
save_trace |
Log execution traces for self-optimization |
jina_read_url |
Read any URL as clean Markdown |
youtube_search |
Search YouTube videos |
youtube_get_subtitles |
Extract YouTube video subtitles/transcripts |
rss_read_feed |
Read any RSS/Atom feed |
v2ex_browse |
Browse V2EX tech community |
reddit_crawl |
Reddit search and post/thread reading |
linkedin_crawl |
LinkedIn posts, jobs, and article reading |
๐งช Testing
Run the Vitest test suite:
npm test
๐ 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
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found