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

Make X509 serial number parsing code compatible with YARA #954

Closed
metthal opened this issue May 28, 2021 · 1 comment
Closed

Make X509 serial number parsing code compatible with YARA #954

metthal opened this issue May 28, 2021 · 1 comment

Comments

@metthal
Copy link
Member

metthal commented May 28, 2021

Code in src/fileformat/file_format/pe/authenticode/x509_certificate.cpp and method getSerialNumber parses serial number by converting it to OpenSSL's BIGNUM. However there are discrepancies between BIGNUM representation (which usually strips leading zeroes) and the full octet representation taken out of DER encoded serial number.

We would like to make this serial compatible with other tools in the industry like YARA. The point of this ticket is to make this compatible with the way YARA parses the serial numbers.

@HoundThe
Copy link
Member

As this was fixed with #955 can this issue be closed?

@metthal metthal closed this as completed Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants