For this lab, you’ll want a Ubuntu_22.04 machine

What is Yara? What are Yara Rules?

We’ll learn to work with Yara directly using the CLI.

Yara can be run on both Windows and Linux. Because we are going to use Linux this time, we’ll need to download the source code and compile it before we can run it.

Go to the Yara release page and download the most recent zip file. (At the time of this lesson, the most recent release is v4.3.2.)

Untitled

On your Ubuntu machine create a folder called yara and wget the .zip file.

mkdir yara
cd yara
wget <https://github.com/VirusTotal/yara/archive/refs/tags/v4.3.2.zip>

When you type ls you should have a single .zip file in your yara directory.

Untitled

Unzip the file

unzip <yara_zip_filename>