-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add option to use unaltered hashes with Windows syscheck #42
Comments
Sorry for taking so long to respond. This is not how something should be working. Could you supply some details and example of where you are seeing this problem? Please also include the windows agent you are dealing with. |
Do you see the correct hashes in the alert? I think the idea was to hash one over the other or something like that in order to have some additional assurance over collision attacks. But the original alert should have two hashes. |
Is there any update on this issue? We are experiencing the same problem. |
As reported in the mailing list this is still a problem. We will try to fix it and submit a pull request |
Windows doesn't appear to change intencionally the hash, but I found that OSSEC opens the files in text mode, and they should be opened in binary mode to work properly. I fixed this problem and sent the pull request, hoping that this solves the issue. ossec_md5 uses the current implementation, while ossec_md5_bin is the fixed version, whose result matches the hash produced by Windows PowerShell. |
Can this bug be closed since the fix was merged? |
I use OSSEC in a mostly Windows environment and find it difficult to trace back files using MD5 hashes. I know that OSSEC concatenates the MD5 and SHA1 hashes, but it seems to do that only with Windows agents. The Linux agents in use produce the correct MD5 hashes which can be verified using third-party tools.
Having the OSSEC Windows agent produce the same verifiable MD5/SHA1 hashes would enhance the forensic capabilities by allowing for a quick lookup of a file hash in a database or via the internet. Plus, it would eliminate the need to pull the same data twice from a computer.
Regards,
Mike
The text was updated successfully, but these errors were encountered: