Home Yara
Post
Cancel

Yara

install

1
2
sudo apt update -y && sudo apt upgrade -y
sudo apt install yara

usage

1
yara myfirstrule.yar somefile

write rules

awesome-yara

Loki

  • python loki.py -h
  • python loki.py -p . path of current directory

yarGen

  • https://github.com/Neo23x0/yarGen
  • creation of yara rules from strings found in malware files while removing all strings that also appear in goodware files.
  • yarGen includes a big goodware strings
  • python3 yarGen.py --update
  • python3 yarGen.py -m ./suspicious-files --excludegood -o /home/suspicious-file.yar
  • --excludegood force to exclude all goodware strings
  • copy rule to loki cp suspicious-file.yar ~/tools/Loki/signature-base/yara
  • yarAnalyzer, another tool to create yara rule, https://github.com/Neo23x0/yarAnalyzer/

Valhalla

This post is licensed under CC BY 4.0 by the author.