YARA – Pattern Matching Tool For Malware Analysis

Keep on Guard!

YARA is a tool aimed at (but not limited to) helping malware researchers to identify and classify malware samples. With YARA you can create descriptions of malware families (or whatever you want to describe) based on textual or binary patterns. Each description, a.k.a rule, consists of a set of strings and a boolean expression which determine its logic.

YARA - Pattern Matching Tool For Malware

YARA is multi-platform, running on Windows, Linux and Mac OS X, and can be used through its command-line interface or from your own Python scripts with the yara-python extension.

Quite a few tools related to intrusion detection, malware analysis and compromise detection tools utilise YARA rules during the scanning phase. LOKI and FastIR being two recent examples.

Sample Rule

Let’s see an example:

The above rule is telling YARA that any file containing one of the three strings must be reported as silent_banker. This is just a simple example, more complex and powerful rules can be created by using wild-cards, case-insensitive strings, regular expressions, special operators and many other features that you’ll find explained in YARA’s documentation.

You can also find some cool YARA rules at this project: https://github.com/Yara-Rules/rules/

You can download YARA here:


Or read more here.

Posted in: Malware, Programming

, , , , , , , ,

Recent in Malware:
- maltrail – Malicious Traffic Detection System
- Windows XP Too Unstable To Spread WannaCry
- sheep-wolf – Exploit MD5 Collisions For Malware Detection

Related Posts:

Most Read in Malware:
- Nasty Trojan Zeus Evades Antivirus Software - 77,626 views
- Hospital Hacker GhostExodus Owns Himself – Arrested - 47,774 views
- US considers banning DRM rootkits – Sony BMG - 45,013 views

Comments are closed.