Available Slash Commands
RAPTOR provides six core slash commands for security testing:/scan
Static code analysis with Semgrep and CodeQL
/fuzz
Binary fuzzing with AFL++ and crash analysis
/web
Web application security testing (OWASP Top 10)
/agentic
Full autonomous workflow - most comprehensive
/codeql
CodeQL-only deep dataflow analysis
/analyze
LLM analysis of existing SARIF files
Security Testing Commands
/scan - Static Analysis
Runs Semgrep for fast, focused scanning:raptor.py scan and presents findings prioritized by exploitability.
/agentic - Full Autonomous Workflow
The most comprehensive option - runs Semgrep, CodeQL, LLM analysis, exploit generation, and patch creation:/codeql - Deep Analysis
CodeQL-only analysis for complex dataflow vulnerabilities:/fuzz - Binary Fuzzing
Fuzz testing with AFL++ for binary targets:/web - Web Security
OWASP Top 10 testing for web applications:/analyze - LLM Analysis
Analyze existing SARIF files from previous scans or external tools:Skill Management
/create-skill - Save Custom Approaches
Save successful custom approaches for reuse:Skills are currently in alpha. Definition creation works, but auto-loading and execution integration are not yet implemented.
Interactive Workflow
RAPTOR’s Claude Code integration follows a conversational, decision-driven workflow:Typical Session Flow
Progressive Context Loading
RAPTOR uses progressive loading to minimize token usage:1
Session Start: 360 tokens
Loads CLAUDE.md with core instructions and command definitions
2
After Scan: 925 tokens
Loads analysis-guidance.md for adversarial prioritization
3
With Persona: up to 1,625 tokens
Loads expert persona (300-700 tokens) only when invoked
Expert Personas
RAPTOR includes nine expert personas that load on-demand (0 tokens until invoked):How to Use Personas
Invoke personas explicitly when you need specialized expertise:Personas are NOT auto-loaded. They only consume tokens when you explicitly request them.
Exploit Developer Persona
Generates working, compilable exploit code (no placeholders or TODOs):- Test with normal credentials
- Test with SQL injection payloads
- Verify no regression in login flow
- Crash Type: Buffer overflow - controlled write
- Register State:
- RIP: 0x4141414141 ✓ Fully controlled
- RSP: Valid stack range
- RAX: Contains user data
- Exploit Primitives:
- Arbitrary code execution: YES
- Controlled jump: YES
- Mitigations:
- ASLR: Enabled (need info leak)
- DEP: Enabled (need ROP chain)
- Stack canary: Not present
- Git status: [checks if .git exists]
- Languages detected: [checks file types]
- Policy groups: [reviews configuration]
Best Practices
Start with /agentic
Use the comprehensive workflow for full coverage
Invoke personas explicitly
Only load expert personas when you need specialized analysis
Review patches before applying
Always inspect generated patches for correctness
Verify fixes with re-scan
Run
/scan again after applying patches to confirm fixesProgressive Workflow
- Initial Scan: Start with
/agenticfor comprehensive coverage - Review Findings: Analyze prioritized results with adversarial thinking
- Deep Analysis: Use personas for specialized expertise
- Generate Fixes: Create patches with Patch Engineer persona
- Apply & Verify: Apply patches and re-scan to confirm
- Report: Generate final report with findings and remediations
Token Budget Management
- Baseline (360t): Session start with CLAUDE.md
- Analysis (+565t): Load analysis-guidance.md after scan
- Persona (+300-700t): Only when explicitly requested
- Recovery (+200-400t): Error recovery guidance if needed
Real-World Examples
Example 1: Finding and Fixing SQLi
Example 2: Binary Fuzzing
Example 3: Custom Skill Creation
Next Steps
Python CLI
Learn direct command-line usage for scripting and CI/CD
Extending RAPTOR
Add custom security scanners and capabilities
Creating Personas
Develop custom expert personas for your use cases
Configuration
Configure RAPTOR for your environment