CLI Reference
Commands
| Command | Description |
|---------|-------------|
| basilisk scan | Run a full red team scan |
| basilisk recon | Fingerprint target model and guardrails |
| basilisk replay <id> | Replay a saved scan session |
| basilisk interactive | Manual REPL with AI-assisted attacks |
| basilisk modules | List all available attack modules |
| basilisk sessions | List saved scan sessions |
| basilisk version | Print version and system info |
Scan Command
basilisk scan [OPTIONS]
Required Options
| Flag | Description |
|------|-------------|
| -t, --target URL | Target API endpoint |
Optional Flags
| Flag | Default | Description |
|------|---------|-------------|
| -p, --provider | auto | LLM provider (openai, anthropic, google, azure, ollama, custom) |
| -k, --api-key | env var | API key (overrides environment variable) |
| --mode | standard | Scan mode: quick, standard, deep |
| --module | all | Specific module or category to run |
| --generations | 5 | Number of evolution generations |
| --population | 100 | Evolution population size |
| -o, --output | html | Report format: html, json, sarif, markdown, pdf |
| --fail-on | none | CI fail threshold: critical, high, medium, low |
| --output-dir | ./basilisk-reports | Report output directory |
| -v, --verbose | false | Verbose logging |
Examples
# Quick scan
basilisk scan -t https://api.target.com/chat --mode quick
# Deep scan with SARIF output
basilisk scan -t https://api.target.com/chat --mode deep -o sarif
# Specific module only
basilisk scan -t https://api.target.com/chat --module injection.encoding
# CI/CD pipeline (fail on high severity)
basilisk scan -t $TARGET_URL -o sarif --fail-on high
Interactive REPL
basilisk interactive -t https://api.target.com/chat
REPL Commands
| Command | Description |
|---------|-------------|
| /recon | Run reconnaissance on current target |
| /attack <module> | Run a specific attack module |
| /findings | Display findings table |
| /export <format> | Export report (html, json, sarif) |
| /session save | Save current session |
| /help | Show all commands |
| /quit | Exit REPL |