YARA-X is a pattern matching engine designed to help security researchers identify and classify malware samples. It reimplements YARA in Rust, with an emphasis on performance, memory safety and improved diagnostics for people developing detection rules.
Researchers can describe malware families using textual patterns, hexadecimal byte sequences and regular expressions combined with logical conditions. These rules provide a flexible way to identify suspicious files and recognise common characteristics across malware samples.
YARA-X aims to maintain compatibility with existing YARA rules wherever practical. However, its programming interfaces differ from those of YARA, and some features, including live process scanning, are not supported.
This is free and open source software.
Key Features
- Scan files and directories using the yr command-line utility, with recursive scanning and multithreading.
- Compile detection rules in advance and reuse compiled rules for repeated scans.
- Support for text strings, hexadecimal patterns, regular expressions, wildcards and Boolean conditions.
- Detailed error reporting with contextual information to help identify problems in detection rules.
- Inspect matching strings, rule metadata, tags and namespaces when examining scan results.
- Configurable scanning timeouts, CPU limits and maximum file sizes.
- Modules for analysing executable formats including PE, ELF, Mach-O, .NET and Android DEX.
- Extract structured information from supported file formats using the dump command, with JSON and YAML output.
- Automatic formatting of detection rules using the fmt command.
- Fix selected rule warnings and encoding issues using the fix command.
- Analyse dependencies between rules using the deps command.
- Language Server Protocol support with syntax diagnostics, autocompletion, navigation and formatting.
- Support for external variables, included rule files and reusable detection logic.
- Programming interfaces for C/C++, Go, Python and Rust.
- Improved performance when evaluating complex hexadecimal patterns and regular expressions compared with traditional YARA.
- Cross-platform support – runs on Linux, macOS, and Windows.
Website: github.com/VirusTotal/yara-x
Support:
Developer: Victor M. Alvarez
License: BSD 3-Clause ‘New’ or ‘Revised’ License

YARA-X is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| Anti-Malware Tools | |
|---|---|
| ClamAV | Antivirus engine for detecting trojans, viruses, malware and other threats |
| YARA-X | Re-incarnation of YARA |
| YARA | Pattern matching swiss knife for malware researchers |
| Maltrail | Malicious traffic detection system |
| ClamTk | Graphical frontend for ClamAV |
| LMD | Malware scanner focusing on threats faced in shared hosted environments |
| phpMussel | PHP-based anti-virus anti-trojan anti-malware solution |
| Raspirus | Lightweight signature-based malware scanner |
| FastFinder | Fast suspicious file finder |
| chkrootkit | Locally checks for signs of a rootkit |
| Unhide | Forensic tool to find hidden processes and TCP/UDP ports |
| Atomdrift Scan | Malware and supply chain scanner for software security |
| paranoya | Malware scanner using indicators of compromise and YARA rules |
| decloaker | Security tool for revealing objects concealed by malware |
| Lenspect | Lightweight security threat scanner |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.