YARA Rule Validator

Check the structure of a YARA rule.

Runs in your browser. Nothing is uploaded — your input is processed on this device and discarded when you close the tab.

YARA Rule Validator

How to use this tool

  1. Enter your values in the fields above.
  2. Press Generate to see the result.
  3. Use Load sample to try the worked example, Copy result to copy it, or Clear to start again.

Worked example

The sample rule example_rule with string $a and condition $a passes with 1 string definition and balanced braces.

What this tool does not do / Limits

This is a light structure check, not a YARA compiler. A rule can pass here and still fail in real YARA, and a passing rule is never executed against any file by this page.

Frequently asked questions

Does this run the rule?

No. It only reads the rule text and checks its structure.

Why is a string flagged as undefined?

The condition mentions a $name that is not defined in the strings section of the pasted rule.

Related tools