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.
In more detail
Text strings match exact bytes. The wide modifier matches UTF-16 text (a zero byte after each ASCII character), ascii keeps the plain form too, and nocase ignores case. Prefer strings of four or more distinctive bytes so the rule is both fast and specific.
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.
- hex string — A YARA pattern written as hexadecimal bytes in braces, which can include wildcards and jumps for bytes that vary.
- UTF-16 — A Unicode encoding that stores each character as one or two 16-bit code units, used in memory by Java and JavaScript strings and by Windows.
- ASCII — An old character encoding covering 128 characters: English letters, digits, punctuation and control codes.
Taught in
- YARA Rule Authoring & File Signature Matching — Security Operations & Threat Hunting (SOC)