Skip to content

cmndcntrlcyber/rtpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

132 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

Red Team Portable Infrastructure (RTPI)

Unified platform for red team operations, combining attack-node, MCP-Nexus, and pen_attack-node capabilities.

Quick Start

Prerequisites

  • Node.js 20+ (check with node -v, install via nvm)
  • Docker & Docker Compose

Setup

# 1. Copy environment file
cp .env.example .env

# 2. Install dependencies
npm install

# 3. Start database and Redis services
docker compose up -d postgres redis

# 4. Run database migrations
npm run db:push

# 5. Create default admin user
npm run db:create-admin

# 6. Start development servers (two terminals)

# Terminal 1: Backend API
npm run dev

# Terminal 2: Frontend UI
npm run dev:frontend

Port Configuration

Default ports are configured to avoid conflicts with common local services:

  • PostgreSQL: 5434 (instead of 5432)
  • Redis: 6381 (instead of 6379)

Access

Security Note: Change the default admin password after first login!

Note: Always access the full application through the frontend URL. The backend API serves JSON responses only.

Default MCP Servers

When FF_DEFAULT_MCP_SERVERS=true, the backend seeds 11 built-in MCP servers into the mcp_servers table on first boot (catalog source). The seed is idempotent — re-runs only fill in missing rows and never overwrite operator edits. Eight servers boot ready; three need a key set on the row before they can start:

seed_key Boot ready Required env var
default:playwright, default:fetch, default:chrome-devtools, default:filesystem, default:sequential-thinking, default:memory, default:searchcode, default:task-master, default:arxiv
default:github needs config GITHUB_PERSONAL_ACCESS_TOKEN
default:tavily needs config TAVILY_API_KEY

Set the missing values in .env (or per-row via the future PATCH /api/v1/mcp-servers/:id/secrets once Phase 3 ships) before starting those servers. The lifecycle endpoints (/start, /stop, /restart) work on managed and user-created rows alike. See docs/enhancements/2.9/v2.9.3-default-mcp-integrations.md for the full rollout (REST /catalog, /reset, frontend panel, etc. — out of scope for the current phase).

Optional Compose Profiles

Several integrations ship as opt-in services gated behind Docker Compose profiles — they do not start with the default docker compose up. Bring them up with docker compose --profile <name> up -d.

Profile Service Purpose
sysreptor SysReptor + Caddy + Redis Penetration-testing reporting platform (UI on :7777).
kasm Kasm Workspaces stack Browser-based desktop streaming for analyst workspaces.
docmost Docmost + Redis Wiki-style team documentation (UI on :13000).
vllm vLLM (Qwen3.5-9B) OpenAI-compatible inference for agent workloads (GPU required).
pdf Headless Chromium App-side PDF generation for reports.
vpn VPN Manager OpenVPN / WireGuard tunnel host (v2.9.2 Phase 1 — container only; UI/backend land in later phases).
gpu / cpu Ollama Local LLM inference (pick one based on hardware).
management Portainer Container management UI on :9443.

See docs/DEPLOYMENT.md for per-profile configuration.

Available Commands

# Development
npm run dev              # Start backend API server
npm run dev:frontend     # Start frontend UI server

# Testing
npm test                 # Run unit tests
npm run test:e2e         # Run E2E tests

# Building
npm run build            # Build frontend for production

# Database
npm run db:generate      # Generate migrations
npm run db:push          # Apply migrations
npm run db:studio        # Open database studio
npm run db:create-admin  # Create default admin user

# Code Quality
npm run lint             # Run ESLint
npm run format           # Format code with Prettier

Documentation

License

MIT License - See LICENSE file for details

Demo Images

Operations Management

image

Target Management

image

AI Provider Integration

image

Dynamic Agent Configuration

image

Agent Workflow

image

Agentic Report Production

image

Dynamic Tool Management

image

Tool Workflows

image

Logic Monitoring

image

About

An agentic one-stop shop for all Offensive Security needs, powered by Qwen models Fine-Tuned with specialized knowledge, enhanced reasoning, and improved coding performance.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors