Overview
RAXE allows you to create custom detection rules to catch threats specific to your application.Rule Location
Custom rules go in~/.raxe/rules/:
Rule Format
Required Fields
Pattern Syntax
Patterns use Python regex syntax:Validation
Validate your rule before using:Testing Rules
Test against sample prompts:Best Practices
Use specific patterns
Use specific patterns
Avoid overly broad patterns that cause false positives:
Include examples
Include examples
Always include positive and negative examples:
Avoid backtracking
Avoid backtracking
Avoid patterns that can cause exponential backtracking:
Limits
Contributing Rules
Want to share your rules with the community?- Fork raxe-ai/raxe-ce
- Add rule to
src/raxe/packs/core/v1.0.0/rules/{family}/ - Submit a pull request
