CyberKit

Tool catalog

YARA

Pattern-matching to identify & classify malware

Open source. Platform: Cross-platform.

What it is

A pattern-matching engine and rule language for identifying and classifying files by textual or binary signatures.

Why it matters

YARA rules encode malware-family traits, turning analyst knowledge into reusable, shareable detections.

In practice

Scanning a directory, a rule flags every sample carrying a known loader's byte pattern.

Install

apt install yara or brew install yara (the CLI ships separately from the yara-python bindings)

Commands

Scan a file or directory against a rule file
yara rules.yar suspicious_file.exe
Recursively scan a directory and print matched strings
yara -r -s rules.yar /path/to/directory
Scan a running process's memory by PID
yara rules.yar 1234
Scan using precompiled rules (faster repeated scans) and show only matches tagged 'ransomware'
yara -C compiled_rules.yrc -t ransomware /path/to/directory

Similar tools

  • Sigma: Vendor-neutral detection rule format & converter

Sources