
CEREBRO-RED v2: Advanced LLM Red Team Research Platform with PAIR Algorithm and LLM-as-a-Judge Evaluation
Autonomous Local LLM Red Teaming Suite
A research-grade framework for automated vulnerability discovery in local LLMs using Agentic Fuzzing and Adaptive Adversarial Mutation (AAM).

System architecture showing main components and data flow
backend/core/engine.py): Async batch processing with exponential backoffbackend/core/mutator.py): PAIR algorithm with mutation strategiesbackend/core/judge.py): LLM-as-a-Judge with CoT evaluationbackend/core/telemetry.py): Thread-safe JSONL audit loggerThe React-based frontend provides a comprehensive interface for managing experiments, monitoring progress, and analyzing results.

Main dashboard interface showing experiment overview and statistics

Experiment management view with real-time status updates and experiment list

Complete user interface overview showing all available features

Results view displaying experiment outcomes, vulnerability findings, and detailed analysis

Settings and configuration panel for customizing experiment parameters

Real-time monitoring dashboard with live experiment progress and status indicators

Telemetry view showing detailed audit logs, system events, and performance metrics

Detailed logs view with filtering and search capabilities

Performance metrics and statistics dashboard

System status overview showing health checks and component status

Interactive API documentation interface with endpoint explorer
For detailed architecture documentation, see docs/ARCHITECTURE.md.
If Docker is not running, start the Docker daemon:
# Start Docker daemon
sudo systemctl start docker
# Enable Docker to start on boot
sudo systemctl enable docker
# Add your user to the docker group (to run Docker without sudo)
sudo usermod -aG docker $USER
# Apply group changes (logout/login or use newgrp)
newgrp docker
# OR logout and login again for changes to take effect
Verify Docker is running:
docker --version
docker compose version
Clone repository:
git clone https://github.com/Leviticus-Triage/cerebro-red-v2.git
cd cerebro-red-v2
Configure environment:
cp .env.example .env
# Edit .env with your LLM provider credentials
WICHTIG: Prüfe Port 8000
# Falls Port 8000 belegt ist:
lsof -i :8000 # Finde Prozess
# Oder ändere Port in .env: CEREBRO_PORT=8001
Start Backend (WICHTIG - muss laufen!):
# Option 1: Automatisch (empfohlen)
./START_BACKEND.sh
# Option 2: Docker
docker compose up -d cerebro-backend
# Option 3: Lokal
cd backend
uvicorn main:app --reload --port 9000
Prüfe Backend-Status:
curl http://localhost:9000/health
# Sollte {"status": "healthy", ...} zurückgeben
Quick Tests ausführen:
./QUICK_TEST_EXAMPLES.sh
Access dashboard:
docker compose up -d cerebro-frontend)
Frontend user interface showing experiment management and monitoring
Best for: Privacy-focused testing, no API costs, offline operation.
# 1. Install and start Ollama
curl -fsSL https://ollama.ai/install.sh | sh
ollama pull llama3.2:3b
ollama serve
# 2. Configure .env for local
cat > .env << 'EOF'
TARGET_MODEL=ollama/llama3.2:3b
ATTACKER_MODEL=ollama/llama3.2:3b
JUDGE_MODEL=ollama/llama3.2:3b
OLLAMA_BASE_URL=http://host.docker.internal:11434
# Relaxed circuit breaker for local (slower responses)
CIRCUIT_BREAKER_FAILURE_THRESHOLD=15
CIRCUIT_BREAKER_TIMEOUT=120
CIRCUIT_BREAKER_JITTER_ENABLED=true
EOF
# 3. Start services
docker compose up -d
# 4. Verify
curl http://localhost:9000/health | jq
Best for: Faster responses, higher quality mutations, production testing.
# 1. Configure .env for cloud
cat > .env << 'EOF'
TARGET_MODEL=openai/gpt-4o-mini
ATTACKER_MODEL=openai/gpt-4o-mini
JUDGE_MODEL=openai/gpt-4o-mini
OPENAI_API_KEY=sk-your-key-here
# Standard circuit breaker for cloud
CIRCUIT_BREAKER_FAILURE_THRESHOLD=10
CIRCUIT_BREAKER_TIMEOUT=60
CIRCUIT_BREAKER_JITTER_ENABLED=true
EOF
# 2. Start services
docker compose up -d
# 3. Verify
curl http://localhost:9000/health | jq
Best for: Cost optimization (cheap target, quality attacker/judge).
# Configure .env for hybrid
cat > .env << 'EOF'
# Target on local Ollama (cheap, many requests)
TARGET_MODEL=ollama/llama3.2:3b
OLLAMA_BASE_URL=http://host.docker.internal:11434