There are two primary ways to scan for the IoCs in Yara files:
- Against files on disk using a tool such as Loki.exe. Loki requires yara and will scan Windows machines looking for IoCs.
- Versus memory dumps available through a variety of memory-dumping tools. The Volatility Framework includes a plugin called yarascan with can specify Yara-rules file by using the
-y
flag. Many newcomers are now using the Rekall Forensics framework (a fork of Volatility) for its simplicity and extensibility.
Below I combine Loki's signature-base yara folder (full of Yara-rules files) with Volatility against a memory dump I gathered using MoonSols DumpIt.
for i in `echo /opt/signature-base/yara/*` ; do vol.py --profile Win7SP1x64 -f 110138-E7440-20160328-191617.raw yarascan -y $i ; done
You will likely want to prep your DFIR workstation with a ramdisk in order to gain some performance increases when running analyses such as these.