Red Corsair Documentation
Complete reference for the AI red team automation platform
📋 Documentation Sections
Getting Started
Advanced Usage
🚀 Installation Guide
Prerequisites
- • Python 3.11 or higher
- • Docker and Docker Compose
- • OpenAI API key (required for IMPROVISE mode)
- • Google API key (optional, for Gemini Pro 2.5)
- • Git (for cloning the repository)
Step-by-Step Installation
⚡ Quick Start
IMPROVISE
High-variance discovery mode for creative jailbreak exploration
ADAPT
Weighted learning and retraining from successful attacks
OVERCOME
Proven template execution for custom prompts
⚙️ Configuration
Environment Variables
OPENAI_API_KEY=your_openai_key_here
GOOGLE_API_KEY=your_google_key_here
DATABASE_URL=postgresql://user:pass@localhost/pyrit
REDIS_URL=redis://localhost:6379/0
GEMINI_MODEL=gemini-2.0-flash-exp
GEMINI_REQUESTS_PER_MINUTE=15
🔌 MCP Integration
Model Context Protocol Server
Red Corsair exposes a JSON-RPC 2.0 server for external AI agent integration
Available Methods
- •
run_tactic- Execute attack tactics - •
list_tactics- Get available tactics - •
get_system_health- System status - •
execute_campaign- Run campaigns
Authentication
Use Bearer token authentication:
Authorization: Bearer YOUR_API_KEY
🎯 Attack Tactics Reference
72+ Attack Tactics Available
Featured Attack Examples
Attack Categories
📊 Live Attack Results
View real jailbreak attempts and successful exploits across different AI models and content categories
View Live Results Carousel📖 CLI Commands Reference
🎯 Core Attack Modes
ADAPT Mode
Build comprehensive attack database by executing all tactics against target model
Usage: python -m cli.cli adapt [OPTIONS]
Options:
-t, --target-model TEXT Target model
-s, --target-successes INTEGER Target successful attacks per category
-p, --max-parallel INTEGER Maximum parallel tasks
--timeout INTEGER Campaign timeout in seconds
OVERCOME Mode
Run the best ledger tactics against a custom prompt
Usage: python -m cli.cli overcome [OPTIONS]
Options:
-m, --prompt TEXT Prompt to attack [required]
-t, --target-model TEXT Target model
📊 Analysis & Reporting
Scoreboard
Show highest ranked tactics from the attack ledger
Export Ledger
Export attack ledger data to JSON
Usage: python -m cli.cli export-ledger [OPTIONS]
Options:
-o, --output TEXT Output file
-a, --api Fetch analytics from API
🚀 Project Management
Initialize Project
Initialize a new Red Corsair project
Usage: python -m cli.cli init [OPTIONS] PROJECT_NAME
Options:
-d, --description TEXT Project description
Parse Requirements
Parse a Product Requirements Document to generate attack plans
Usage: python -m cli.cli parse-prd [OPTIONS] PRD_FILE
Options:
-p, --project-dir TEXT Project directory
🔧 Additional Commands
Task Analysis
python -m cli.cli analyze-complexity Analyze task complexity using LLM
List Tasks
python -m cli.cli list List all tasks with dependencies
Set Status
python -m cli.cli set-status Update task status
API Login
python -m cli.cli login Login to PyRIT API
Need More Help?
Explore our comprehensive guides and community resources