
Bindings for the Yara library from VirusTotal with support for Yara v4.2 and various features like rule compilation and scanning.
Checked October 2026.
Bindings for the Yara library from VirusTotal. More documentation can be found on the Yara's documentation. Example The implementation is inspired from yara-python.
const RULES: &str = r#" rule contains_rust { strings: $rust = "rust" nocase condition: $rust } "#;
fn main() { let compiler = Compiler::new().unwrap(); let compiler = compiler .add_rules_str(RULES) .expect("Should have parsed rule"); let rules = compiler .compile_rules() .expect("Should have compiled rules"); let results = rules .scan_mem("I love Rust!".as_bytes(), 5) .expect("Should have scanned"); assert!(results.iter().any(|r| r.identifier == "contains_rust")); }
Features Support from Yara v4.2. Compile rules from strings or files. Save and load compiled rules. Scan byte arrays (&[u8]) or files. Feature flags and Yara linking. Look at the yara-sys crate documentation for a list of feature flags and how to link to your Yara crate.
TODO Remove some unwrap on string conversions (currently this crate assume the rules, meta and namespace identifier are valid Rust's str). Accept AsRef<Path> instead of &str on multiple functions. Implement the scanner API. Add process scanning. Report the warnings to the user. Lic
No core features are listed for this product yet, so check the vendor's documentation for the full feature list.
No integrations are listed for this product yet. Check the vendor's documentation, or ask the vendor which integrations and APIs it supports.
Common questions about yara-rust: features, pricing and alternatives.
yara-rust is a product in the Detection Engineering category. It covers VirusTotal, Rule Engine and YARA.
yara-rust is free. Download and setup instructions are at https://github.com/Hugal31/yara-rust/.
Alternatives to yara-rust listed on CybersecTools:
Compare all yara-rust alternatives at https://cybersectools.com/alternatives/yara-rust
yara-rust is available as on-premises software. It is listed for startups, small businesses, mid-market companies and enterprises. It is free.
Side by side: features, pricing model and the company behind each one.
Collects Yara rules from over 150 free resources, a free alternative to Valhalla.
A repository of YARA rules for identifying and classifying malware through pattern-based detection.
Repository of YARA rules for Trellix ATR blogposts and investigations
A Python-based Burp Suite extension that integrates Yara scanning capabilities for detecting patterns and signatures in web application traffic using custom Yara rules.
Automatic YARA rule generation for malware repositories.
A collection of public YARA signatures for various malware families.
On our shortlist?
No shortlist covers this product's category yet. The closest is Best MDR Solutions for Business.
Get a summary of this page from your assistant.
Mandos MCP: ask about all 9,032 products.
Connect your AI