https://www.youtube.com/watch?v=xKeF_cPKXt0
Yara Strings Tips
- Avoid short strings
- Avoid breaking Yara Hexadecimal String into segments smaller than 4 bytes
- Do not add leading or trailing wildcards to Yara Hexadecimal String, it doesnt change anything
- Avoid Yara Regular Expression, if you must use a regex, then ensure there is a 4-byte string to act as a Yara Atom.
- Avoid repeating single byte strings. The best Yara Atom will occur VERY often
- Use the
nocase
keyword sparingly. It createsn!
variants of the string
Yara Modules Tips
- Including a module means every file must be scanned by the module. Dont use module imports if you can write a faily simple conditional instead.
Yara Conditions
- Yara conditions will have a short-circuit feature, where the first false condition will end a
AND
conjunction. Place your conditions strategically