PHANTOM

agent
Security Audit
Fail
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.

SUMMARY

๐Ÿ‘ป AI-Powered Pentesting Command Center โ€” Autonomous security testing with real-time streaming, self-improving AI, unlimited tool iterations,

README.md

๐Ÿ‘ป PHANTOM

AI-Powered Pentesting Command Center

CI
Node.js
License
Platform
PRs Welcome
Hlido trust score

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)

No results found