yara
Pattern matching tool for identifying and classifying malware. tldr-pages
On several platforms
Several platforms
Scan a specific file with a rule file
yara path/to/rule.yar path/to/fileIdentifyRecursively scan a directory and subdirectories containing possible threats
yara path/to/rule.yar --recursive path/to/directoryIdentifyScan a running process by its PID using multiple rules
yara path/to/rule1.yar path/to/rule2.yar ... process_idIdentifyPrint metadata associated with the matching rules
yara --print-meta path/to/rule.yar path/to/fileIdentifyPrint the strings that caused the rule to match
yara --print-strings path/to/rule.yar path/to/fileIdentifyUse a specific number of threads for parallel scanning
yara --threads number_of_threads path/to/rule.yar path/to/directoryIdentifyUse compiled YARA rules file to scan a directory recursively
yara --compiled-rules path/to/rules.bin --recursive path/to/directoryIdentify