Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Use yara to analyze

Shulou Source: shulou.com Published: 2022-06-01 09:03:45 10月01日 Update

Sometimes encounter a large number of samples, but also find many similarities, this time the need for pattern matching, yara is well-deserved in the analysis.

What are the specific yara rules? there are relevant articles on freebuff, otherwise it is OK to read the documentation. Here are only a few steps that I used for the first time.

(1) download yara and go directly to github to find it. I chose the code written by C++.

(2) find the directory yara-3.8.1\ windows\ vs2015 after decompression. I need a vs at this time, so I download vs2017 and open the yara.sln file.

(3) therefore, you will see three projects.

As the name implies, the dll,yarac of yara is used to compile yara rules, and the result of yarac compilation rules is passed to the yara project for final output.

Set yara as the startup item, compile, run, and solve your own problems. To see the wrong log.

(4) then run yara, select the parameters, take the yara rule, and the yara sample path will be available.

(5) I used the option of-s to match my sample set and output it to a file.

(6) output result

That's it. It feels good.

Tags: Rules samples compilation output files results projects runs selections analysis good similar well-deserved as the name suggests three code parameters things mass that is Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Docker Linux Redmi Apple