YARA
A tool and rule language for identifying files, or memory, that contain particular text or byte patterns, used to find malware families.
In more detail
A YARA rule has a meta section, a strings section of text, wide and hex patterns, and a condition that combines them, such as all of them and a check that the file starts with MZ. It runs on disk, email attachments, sandboxes and process memory. Test every rule against clean files before release.
Related terms
- YARA string — A named pattern in a YARA rule's strings section, written as text or hexadecimal bytes, with modifiers that change how it matches.
- hex string — A YARA pattern written as hexadecimal bytes in braces, which can include wildcards and jumps for bytes that vary.
- signature-based detection — Detecting attacks by matching something already known to be bad, such as a file hash or a byte pattern.
- malware — Software written to cause harm, such as stealing data, encrypting files for ransom or mining cryptocurrency.
Taught in
- YARA Rule Authoring & File Signature Matching — Security Operations & Threat Hunting (SOC)
- Malware Triage: Hashes, Strings & Sandboxing — Security Operations & Threat Hunting (SOC)