Skip to content

Instantly share code, notes, and snippets.

View mjruffin's full-sized avatar

Marcus Ruffin mjruffin

  • Independent Inc.
View GitHub Profile
@mjruffin
mjruffin / yara_performance_guidelines.md
Created February 16, 2016 21:55 — forked from Neo23x0/yara_performance_guidelines.md
YARA Performance Guidelines

YARA Performance Guidelines

When creating your rules for YARA keep in mind the following guidelines in order to get the best performance from them. This guide is based on ideas and recommendations by Victor M. Alvarez and WXS.

Global Rules

Global rules are evaluated first. Only if they are satisfied non-global rules are evaluated. This may be useful if all samples exhibit the same characteristics. Use them combined with the "private" statement to suppress a match notification on the global rules.

Examples: