yara
Verified for current stable LTS
Yara Commands
Yara command syntax with verified terminal examples.
Commands
7 commands for Yara
yara Search
Yara Command: Print Matching Strings
yara -s <path/to/rule.yar> <path/to/file> yara Operations
Yara Command: Print Rule Metadata
yara -m <path/to/rule.yar> <path/to/file> yara Operations
Yara Command: Scan Directory Recursively
yara <path/to/rule.yar> -r <path/to/directory> yara Operations
Yara Command: Scan File With Rules
yara <path/to/rule.yar> <path/to/file> yara Operations
Yara Command: Scan Process By Pid
yara <path/to/rule1.yar path/to/rule2.yar ...> <PID> yara Operations
Yara Command: Scan With Compiled Rules
yara -C <path/to/rules.bin> -r <path/to/directory> yara Operations
Yara Command: Scan With Threads
yara -p <number_of_threads> <path/to/rule.yar> <path/to/directory> Suggest a Yara Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Yara workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.