DEV Community

Cover image for YaraSilly2 - YARA Rule Generator

YaraSilly2 - YARA Rule Generator

Himadri Ganguly
A technophile by heart πŸ’— and profession πŸ’» with more than 10+ years of experience. Passionate about programming πŸ§‘β€πŸ’», Python 🐍, Kubernetes ☸️, DevSecOps βš™οΈ, IOT πŸ”Œ.
・1 min read

Alt Text

A Semi-automatic handy tool to generate YARA rules from sample virus files ( WIP ) for Malware Analyst, inspired by the DIFF function of VirusTotal Premium Account. It generates all the artifacts from samples ( Static Analyzer ) needed to create good Yara Rules, with less false positive.


  1. It uses a fuzzy match to find similar malware files based on tolerance the percentage set by the user.

  2. String dump from the files in binary mode and find the occurrences of the files and take those string that occurs the specified number of times set by the user.

  3. Eliminate all the blacklist strings that are provided from the match occurrences criteria.

  4. Generate YARA rule and also prints the MD5 hash of the files within the meta section of YARA rules.

You can find the project repo at

Discussion (0)