-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Test Failure - test-pe: tests/test-pe.c:292: rule does not match contents of'tests/data/ #2046
Comments
Yes, it looks related to LibreSSL. The first step is trying to minify the test case, if we are lucky the problem is one specific condition within the rule. For instance, LibreSSL may be formatting issuer or subject strings in a different way. In the worst case the whole signature parsing is failing. If you already have a setup using LibreSSL, could you try removing portions of the rule condition and see if you can find a smaller test that reproduces the issue? |
Yes, when using this patch The issue seems to be with
|
Please report it to us at avast/authenticode-parser as that's what's being used for authenticode parsing. We never really tested against LibreSSL so it might need some work. |
I tried to have a short look at it. Our authenticode-parser relies of X509_verify_cert to actually build a certificate chain, even if its incomplete. That's how it behaves in OpenSSL and it is a documented behavior. However LibreSSL seems to have taken a different approach and they even complain in their code about the behavior of OpenSSL so I suspect it might have to do something with that.
However, even forcing legacy verifier didn't result in what OpenSSL provides, so I might have to dig deeper. I'll let you know about any updates. |
Thanks, if there is anything I can communicate with the LibreSSL developers please let me know. |
Describe the bug
The
test-pe
test fails.test-pe.log:
Which points to this line.
yara/tests/test-pe.c
Line 292 in 8fa55cd
To Reproduce
Expected behavior
Tests should pass.
Please complete the following information:
Gentoo
3.8.2
Additional context
Occurs with both my glibc and musl systems, maybe related to using LibreSSL?
test-pe.trs:
The text was updated successfully, but these errors were encountered: