Classify suspicious files with YARA rules
8 steps · about 1 h 56 min · Intermediate
- Install YARA and scan your first file (reference, YARA documentation, 8 min)
Gets the scanner running before you write rules.
- Write rules with strings, hex patterns and conditions (reference, YARA documentation, 30 min)
Is the core reference for rule syntax.
- Run YARA scans from the command line (reference, YARA documentation, 8 min)
Shows recursive scans, tags and metadata output.
- Match Windows executables with the PE module (reference, YARA documentation, 15 min)
Lets rules check imports, sections and headers, not just strings.
- Follow a style guide for maintainable rules (guide, Florian Roth, 15 min)
Covers naming, metadata and performance habits used by rule authors.
- Generate draft rules from samples with yarGen (repo, Florian Roth, 15 min)
Speeds up first drafts while filtering goodware strings.
- Study a community rule set (repo, Yara-Rules, 15 min)
Shows real rules for malware families and techniques.
- Move rules to YARA-X (reference, VirusTotal, 10 min)
Explains the newer engine and its compatibility differences.