OS Manuals

/usr/bin/yara

The pattern matching swiss knife for malware researchers

From yara 4.5.5-r4 (os), captured 2026-11-05 by running yara --help (exit 0). permalink

Also provided by 1 other package version
YARA 4.5.5, the pattern matching swiss army knife.
Usage: yara [OPTION]... [NAMESPACE:]RULES_FILE... FILE | DIR | PID

Mandatory arguments to long options are mandatory for short options too.

       --atom-quality-table=FILE           path to a file with the atom quality table
  -C,  --compiled-rules                    load compiled rules
  -c,  --count                             print only number of matches
  -E,  --strict-escape                     warn on unknown escape sequences
  -d,  --define=VAR=VALUE                  define external variable
  -q,  --disable-console-logs              disable printing console log messages
       --fail-on-warnings                  fail on warnings
  -f,  --fast-scan                         fast matching mode
  -h,  --help                              show this help and exit
  -i,  --identifier=IDENTIFIER             print only rules named IDENTIFIER
       --max-process-memory-chunk=NUMBER   set maximum chunk size while reading process memory (default=1073741824)
  -l,  --max-rules=NUMBER                  abort scanning after matching a NUMBER of rules
       --max-strings-per-rule=NUMBER       set maximum number of strings per rule (default=10000)
  -x,  --module-data=MODULE=FILE           pass FILE's content as extra data to MODULE
  -n,  --negate                            print only not satisfied rules (negate)
  -N,  --no-follow-symlinks                do not follow symlinks when scanning
  -w,  --no-warnings                       disable warnings
  -m,  --print-meta                        print metadata
  -D,  --print-module-data                 print module data
  -M,  --module-names                      show module names
  -e,  --print-namespace                   print rules' namespace
  -S,  --print-stats                       print rules' statistics
  -s,  --print-strings                     print matching strings
  -L,  --print-string-length               print length of matched strings
  -X,  --print-xor-key                     print xor key and plaintext of matched strings
  -g,  --print-tags                        print tags
  -r,  --recursive                         recursively search directories
       --scan-list                         scan files listed in FILE, one per line
  -z,  --skip-larger=NUMBER                skip files larger than the given size when scanning a directory
  -k,  --stack-size=SLOTS                  set maximum stack size (default=16384)
  -t,  --tag=TAG                           print only rules tagged as TAG
  -p,  --threads=NUMBER                    use the specified NUMBER of threads to scan a directory
  -a,  --timeout=SECONDS                   abort scanning after the given number of SECONDS
  -v,  --version                           show version information

Send bug reports and suggestions to: vmalvarez@virustotal.com.
Options (35)
OptionDescriptionSource
--atom-quality-table FILEPath to a file with the atom quality table.help + man
-C --compiled-rulesRULES_FILE contains rules already compiled with yarac.help + man
-c --count--count print only number of matcheshelp + man
-E--strict-escape warn on unknown escape sequenceshelp
-d --define=identifier=value--define=VAR=VALUE define external variablehelp + man
-q--disable-console-logs disable printing console log messageshelp
--fail-on-warningsTreat warnings as errors.help + man
-f --fast-scanSpeeds up scanning by searching only for the first occurrence of each pattern.help + man
-h--help show this help and exithelp
-i identifier--identifier=IDENTIFIER print only rules named IDENTIFIERhelp + man
--max-process-memory-chunk NUMBERWhile scanning process memory read data in chunks of the given size in bytes.help + man
-l number--max-rules=NUMBER abort scanning after matching a NUMBER of ruleshelp + man
--max-strings-per-rule NUMBERset maximum number of strings per rule (default=10000)help + man
-x --module-data=module=file--module-data=MODULE=FILE pass FILE's content as extra data to MODULEhelp + man
-n --negate--negate print only not satisfied rules (negate)help + man
-N--no-follow-symlinks do not follow symlinks when scanninghelp
-w --no-warnings--no-warnings disable warningshelp + man
-m --print-metaPrint metadata associated to the rule.help + man
-D --print-module-data--print-module-data print module datahelp + man
-M --module-names--module-names show module nameshelp + man
-e --print-namespace--print-namespace print rules' namespacehelp + man
-S --print-stats--print-stats print rules' statisticshelp + man
-s --print-strings--print-strings print matching stringshelp + man
-L --print-string-length--print-string-length print length of matched stringshelp + man
-X --print-xor-key--print-xor-key print xor key and plaintext of matched stringshelp + man
-g --print-tagsPrint the tags associated to the rule.help + man
-r --recursive--recursive recursively search directorieshelp + man
--scan-listScan files listed in FILE, one per line.help + man
-z size--skip-larger=NUMBER skip files larger than the given size when scanning a directoryhelp + man
-k slots--stack-size=SLOTS set maximum stack size (default=16384)help + man
-t tagPrint rules tagged as tag and ignore the rest.help + man
-p number--threads=NUMBER use the specified NUMBER of threads to scan a directoryhelp + man
-a seconds--timeout=SECONDS abort scanning after the given number of SECONDShelp + man
-v --version--version show version informationhelp + man
--strict-escapePrint warnings if rules contain ambiguous escape statements. (in the manual page but not in --help)man
Examples (5) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.