Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Yara to 4.0.1 #769

Merged
merged 5 commits into from
May 21, 2020
Merged

Update Yara to 4.0.1 #769

merged 5 commits into from
May 21, 2020

Conversation

PeterMatula
Copy link
Collaborator

Update YARA from 3.11.0 to 4.0.1.
Fix #758 and #283 (4.0.1 contains code from VirusTotal/yara#1272).
Also, Yaracpp is refactored and simplified.

@ladislav-zezula, @metthal, @tamaroth
It seems that the new YARA has slightly different Dotnet strings. I had to modify eziriz_dotnet_reactor_62_or_newer. In the example we have in regression tests, there is one less Dotnet user string, and these strings are terminated only with \x00 - it was \x00\x00 before in 3.11.0.
See these logs from yara -D:
yara-3.11.0.txt
yara-4.0.1.txt

Yaracpp needed some work, because YARA interface changed. Also, I simplified and refactored Yaracpp a bit.
…r_newer rule

Looks like the new YARA 4.0.1 ends dotnet user strings only with "\x00" instead of "\x00\x00" as before.
@PeterMatula
Copy link
Collaborator Author

run tc tests

@PeterMatula
Copy link
Collaborator Author

run tc tests

@PeterMatula PeterMatula merged commit 80bbf2a into master May 21, 2020
@PeterMatula PeterMatula deleted the yara-4.0.1 branch May 21, 2020 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update YARA to version 4.0.0
1 participant