Overview
RAPTOR generates working exploit proof-of-concepts using LLM-powered analysis combined with runtime constraint validation. The system verifies architectural constraints before attempting techniques to avoid wasted effort.Core Principle
Verify constraints BEFORE attempting any exploit technique.Many hours can be wasted attempting techniques that are architecturally impossible. Check constraints first, then choose appropriate techniques.
Constraint Validation
Before generating exploits, RAPTOR analyzes what’s actually possible:1. Bad Bytes
What bytes cannot appear in the payload?2. Architecture Constraints
- x86_64
- x86 (32-bit)
- ARM64
Pointer Size: 8 bytesCritical Issue: Userland addresses are Impact:
0x00007fff... format. In little-endian:strcpy copies low bytes first, then stops at null - only 6 bytes of an address can be written.Consequence: Multi-gadget ROP chains are blocked with strcpy on x86_64.3. Mitigations
Using Mitigation Analysis
1
Run Analysis First
Always run mitigation analysis before exploit development:
2
Check Blocked Techniques
Review what won’t work:Example output:
3
Use Viable Techniques
Focus on what works:Example output:
4
Check Exploitation Paths
See complete attack chains:
LLM Model Requirements
- Claude / GPT-4 (Recommended)
- Ollama (Local)
Best for exploit generation
- Generates compilable, working code
- Understands complex exploit chains
- Handles architecture-specific details
- Produces production-quality exploits
- Buffer overflow exploits
- ROP chain construction
- Heap exploitation
- Format string attacks
Exploit Generation Process
The LLM follows this workflow:Real Exploit Examples
Example 1: Format String Exploit
Example 2: One-Gadget Exploit
One-gadgets solve the “only one address with strcpy” problem on x86_64.
Example 3: Partial Overwrite
Technique Selection
When a technique is blocked, use alternatives:Best Practices
Always Run Constraint Analysis
Always Run Constraint Analysis
Never generate exploits without checking constraints:
Check Empirical Validation
Check Empirical Validation
RAPTOR runs empirical tests (e.g., %n verification) - trust these over version checks:
Test in Isolated Environment
Test in Isolated Environment
Always test exploits in isolated VMs or containers:
Document Constraints
Document Constraints
Include constraint documentation in exploit comments:
See Also
Vulnerability Analysis
LLM-powered security analysis
Patch Creation
Generate secure patches