-
Notifications
You must be signed in to change notification settings - Fork 385
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
Updated VMRay Analyzer #823
Conversation
If you don't mind, I could rebase the history a little bit to unsquash the first commit of this PR. I will provide you with the link to my branch once ready and then you could just force-push that to the branch of this PR. |
• Adding support for URL submissions • Simplified API error handling • Inverted reanalysis enablement logic (getting rid of negation) • Improving artifact extraction • Improving taxonomy creation • Implemented recursion of samples (relations) and limits on it • Adding config value for polling interval • Adding support for archives with passwords • Adding support for different archive modes (compound and separate) • Formatting code using black (https://github.com/psf/black) • TheHive short report template: Using div instead of span to prevent overflow ** Based on #802 by https://github.com/mback2k
Formatting code using black (https://github.com/psf/black)
@53A-1 my desquashed branch with improved commit messages is ready and can found here:
From a content perspective it should be identical to your current develop branch used in this PR, at least a diff comes out empty. You can perform the following steps to make your branch point to that HEAD and update this PR:
|
fb8f5aa
to
23be632
Compare
Any ETA on when this will be merged and part of a new release? @To-om @jeromeleonard |
Hi @mback2k in json I see tags required false, but if I do not set in config, when run I receive:
Can you fix it? |
@garanews Thank you for testing the implementation. Actually I think the problem here is a bug in the way Cortex handles empty lists, c.f. TheHive-Project/Cortex#328 |
This could be implemented. However, since the score has been deprecated in the most recent version of VMRay anyway, I would suggest that this change is better suited for a version of the Cortex Analyzer that connects to VMRay 4.1 instead of the 3.3.1 patch discussed here. Whilst working on the result anyway I would also make the amount of labels configurable. Once this has been merged I will pull the new state, implement the changes based on that and create a new PR. Would this approach work? |
Will you add support for both 3.x and 4.x of vmray in same analyzer? |
Yes. Since up until now the API did retain the score in more recent versions too, it won't even be necessary to choose between the versions. Currently my idea is to include the new summary value along the existing ones. As for the filtered label set, I would include the new field if it is present in the results returned by VMRay, or the score if it is not.
Yes, it works exactly as you describe. |
OK thanks, going to merge in dev right now. |
This is a major rework of the VMRay Cortex Analyzer. It fixes a few outstanding issues with the existing implementation and adds support for a lot of features which allow a better control of the analysis process.
Thanks to TKCERT's @mback2k for his work on this.