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

Updates to Virusshare analyzer #80

Merged
merged 4 commits into from
Sep 4, 2017

Conversation

colinvanniekerk
Copy link

I've added case insensitivity to the hash comparison within the analyzer. This is important because Virusshare stores all lowercase hashes, but if you compare an uppercase hash, it will always returns as not within the Virusshare dataset which can be dangerously incorrect.

I have benchmarked the comparison and found that the removal of the strip function actually improved the overall speed of the test when a line contains a single hash. Moving to the 'in' operator also allows for support of the UPX hash map file that has been created.


I've also added a simple bash script to fetch the hashes since I had issues with python version that is available. Bash is simpler and more or less always works as expected whereas python could apparently have issue that are harder to fix than (in this case) simply writing a bash based tool.

@3c7
Copy link
Contributor

3c7 commented Jul 19, 2017

I think my python script that downloads the hashes can be deleted. That bash script is much more cleaner.

@3c7
Copy link
Contributor

3c7 commented Aug 25, 2017

Why does capitzalizing the first letter of unknown solves non-md5 hash handling, if the templates compare the string to unknown? I'm confused.

@colinvanniekerk
Copy link
Author

colinvanniekerk commented Aug 25, 2017 via email

@jeromeleonard jeromeleonard changed the base branch from master to hotfix/1.6.2 September 4, 2017 15:50
@jeromeleonard jeromeleonard merged commit 8ffd5ba into TheHive-Project:hotfix/1.6.2 Sep 4, 2017
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.

3 participants