YARA Templates
Selection of YARA rules for use as guides or templates
File system only examples:
Find by Name
// Auto-Complete Support:
// Type modulename. followed by a CTRL + SPACE
// Yara documentation: https://yara.readthedocs.io/en/stable/writingrules.html
rule find_by_name
{
meta:
description = "Find files by name."
condition:
file_name == "some-name.exe"
}Find by Extension
// Auto-Complete Support:
// Type modulename. followed by a CTRL + SPACE
// Yara documentation: https://yara.readthedocs.io/en/stable/writingrules.html
rule find_by_extension
{
meta:
description = "Find files by extension."
condition:
file_extension == "xyz"
}Find by Content
Find by Hash
Find by Size
Find by Size range
Find by Location
Find PE (portable executable) files only
Find PKZIP files only
Find by Hash with Size filter
Memory/process scan examples:
Find Process by Name
Find String in Memory
Find Process by Command line
Find Malware domain
Find Byte pattern
Filesystem and memory scan:
Find String
Find Malware domain
Find Byte pattern
Find XOR pattern
Find Base64 pattern
Last updated
Was this helpful?

