You can download and install YARA from (http://virustotal.github.io/yara/). Installation of YARA on Ubuntu Linux VM was covered in Chapter 1, Introduction to Malware Analysis. If you would like to install YARA on any other operating system then refer to the installation documentation: http://yara.readthedocs.io/en/v3.3.0/gettingstarted.html