FARA, or Faux YARA, is a simple repository that contains a set of purposefully erroneous Yara rules. It is meant as a training vehicle for new security analysts, those that are new to Yara and even Yara veterans that want to keep their rule writing (and debugging) sharp.
If you're here, you already know what Yara is, but if not, do visit Yara's Github repository: https://github.com/VirusTotal/yara.
Very simple, download or clone the repo and start figuring out what is wrong with each and every Yara rule! Errors may have been created on the following levels:
- Syntax
- Logical
- Runtime
- Semantic
- Efficiency or effectiveness
- Others...
There's a few methods:
- Go hardcore and just look at them in your favourite text editor. Don't use syntax highlighting as additional challenge.
- The easiest and best way: try to run them with Yara (use the latest available stable version) and make way from there.
- You can use / try Florian Roth's yaraQA: https://github.com/Neo23x0/yaraQA
- In addition, you can also clone this repo, then run YARA-CI on it: https://yara-ci.cloud.virustotal.com/.
If you want an example of how Yara-CI can help, have a look at my own Yara rules repository: https://github.com/bartblaze/Yara-rules
Yes, but only if you contribute a new faux rule 😉. PRs to make the faux rules actually work with Yara will be closed - you can of course submit a PR for feedback or to submit your solution(s) - but they will not be accepted to merge in this repository.
Post a new Git issue.