yara-rust Logo

yara-rust

0
Free
Updated 11 March 2025
Visit Website

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

FEATURES

SIMILAR TOOLS

A powerful tool for detecting and identifying malware using a rule-based system.

A Linux process injection tool that injects shellcode into a running process

Collects Yara rules from over 150 free resources, a free alternative to Valhalla.

Kaitai Struct is a declarative language for describing binary data structures.

VxSig is a tool to automatically generate AV byte signatures from similar binaries.

A modified version of Cuckoo Sandbox with enhanced features and capabilities.

Tplmap is a tool for detecting and exploiting server-side template injection vulnerabilities.

Copy executables with execute, but no read permission on Unix systems.

OCaml wrapper for YARA matching engine for malware identification

CyberSecTools logoCyberSecTools

Explore the largest curated directory of cybersecurity tools and resources to enhance your security practices. Find the right solution for your domain.

Operated by:

Mandos Cyber • KVK: 97994448

Netherlands • contact@mandos.io

Copyright © 2025 - All rights reserved