Closed JohnConnorRF closed 3 years ago
Thank you for bringing this bug to our attention. I am currently looking it the best method of catching it.
Interestingly this is the first case of a malformed yara rule that the plyara library didn't return an error for. I expect the fix to be rolled out tomorrow.
We have added a new branch with the bug fix. It is undergoing review but I expect it will be setup to merge soon.
Thank you again for bringing this to our attention.
Sorry for the delay @JohnConnorRF. The bug fix ended up creating some issues of its own. This will catch the case you brought up and should potentially catch some others in the future.
To clarify the fix is live in master. We plan to have a new release later this week.
Yara validation appears to succeed when the rule doesn't contain a closing bracket. Example yara rule:
In case its relevant, there is no newline at the end of the file. This was tested using the default CCCS_YARA.yml file from commit (91e66c4)