PHANTOM

agent
Guvenlik Denetimi
Basarisiz
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.

SUMMARY

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

README.md

๐Ÿ‘ป PHANTOM

AI-Powered Pentesting Command Center

Node.js
License
Platform
PRs Welcome

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 .env file and phantom.db are excluded from git
  • PHANTOM runs locally only โ€” no external telemetry or data collection
  • The edit_source_code tool only works within the project directory and creates backups

๐ŸŽจ Screenshots

Click to expand

Main 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

  1. You ask โ€” Type a request in the chat
  2. AI thinks โ€” Reasoning displayed in real-time (for supported models)
  3. AI acts โ€” Executes tools autonomously with live output streaming
  4. AI reports โ€” Clean, formatted results with typing animation
  5. 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

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/awesome)
  3. Commit your changes (git commit -m 'Add awesome feature')
  4. Push to the branch (git push origin feature/awesome)
  5. 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)

Sonuc bulunamadi