hex string
A YARA pattern written as hexadecimal bytes in braces, which can include wildcards and jumps for bytes that vary.
In more detail
{ 8A 04 0E 34 ?? 88 04 0E } matches a decode loop whatever its key byte, because ?? stands for any byte. Jumps such as [2-4] allow a varying number of bytes. Avoid starting a hex string with wildcards: YARA needs fixed leading bytes (atoms) to search quickly.
Related terms
- YARA — A tool and rule language for identifying files, or memory, that contain particular text or byte patterns, used to find malware families.
- wildcard — A special character, such as *, that stands for any value or any run of characters when matching names or patterns.
- atom — A short run of fixed bytes that YARA extracts from each string and searches for first, before checking the full pattern.
- XOR — Exclusive or: a bit operation that outputs 1 when two bits differ and 0 when they match.
Taught in
- YARA Rule Authoring & File Signature Matching — Security Operations & Threat Hunting (SOC)