YARA with Cyberchef
Last updated
Last updated
Cyberchef is a powerful web app for encryption, encoding, compression and data analysis. I've used it allready in a crypto exercise previously.
In this exercise I'll use cyberchef to check a specific binary against a yara rule.
We need some malware samples. If you haven't download them allredy you can find them here:
Please open CyberChef in your browser
https://gchq.github.io/CyberChef/
And add the following malware as input
from the malware-samples
folder
/home/hacker/malware-samples/Ransomware/Grandcrab/grandcab.bin
Please search yara
in the left menu.
Add yara
to CyberChef
and use the following rule:
Our next malwaresample is $ucylocker.bin. Cyberchef has a unzip feature, but this isn't working yet. See: https://github.com/gchq/CyberChef/issues/1161
Because of that reason we have to unzip the malware first. Password for the zip file is: infected
7z x 86e0eac8c5ce70c4b839ef18af5231b5f92e292b81e440193cdbdc7ed108049f.zip
Add the newly created file /home/hacker/malware-samples/Ransomware/$ucyLocker/86e0eac8c5ce70c4b839ef18af5231b5f92e292b81e440193cdbdc7ed108049f.bin
Add the same yara rule as in the previous step