YARA Forge 🛠️
A powerful Rust library for crafting, validating, and managing YARA rules. YARA Forge provides a comprehensive set of tools for creating sophisticated malware detection rules with an intuitive builder pattern interface.
Features
- 🏗️ Rule Builder Pattern: Intuitive interface for creating YARA rules
- 📚 Pre-built Templates: Common templates for malware detection
- 🔍 Pattern Library: Extensive collection of malware detection patterns
- ✅ Validation: Built-in rule validation and testing
- 🚀 Performance: Parallel scanning capabilities
- 🔄 Import/Export: Support for JSON and other formats
- 📋 Documentation: Comprehensive documentation and examples
Installation
Add this to your Cargo.toml:
[]
= "0.1.0"
Quick Start
use ;
Advanced Usage
Using Templates
use ransomware_template;
let rule = ransomware_template
.with_metadata
.build?;
Pattern Matching
use ;
let rule = new
.with_patterns
.with_patterns
.with_condition
.build?;
Parallel Scanning
use parallel_scan;
let matches = parallel_scan?;
Development
# Run tests
# Run benchmarks
# Build documentation
# Format code
# Run lints
Docker Support
Build the Docker image:
Run with Docker Compose:
Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- YARA Project: https://virustotal.github.io/yara/
- Rust Community
- All Contributors
Security
For security issues, please open issue on GitHub.