-
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
[Bug] MISP 2.0 analyzer search crashes the MISP instance #602
Comments
Not able to reproduce, is your MISP commit newer than MISP/MISP@f88743c? |
Oh. Forget that, somehow mistyped the pip command to update PyMISP on my test machine. |
I tried with both MISP server version To be honest this bug should be there for quite some time, but the analyzer is using the legacy interface of |
There were two issues, first the reponse dictionary changed and the search request must use |
Yep I tried with Other than that, I'd suggest you to use the new |
ExpandedPyMISP == PyMISP since 2.4.120. |
@3c7 I know that but in case someone has an earlier version of So this search:
Will send out the following bodies to pymisp < 2.4.120:
pymisp >= 2.4.120:
The newer body is basically a superset of the older body, so normally it should cause no problems, but I don't know if all the other body values could cause any inconsistency between the two searches. |
That makes sense, thank you. Edit: Also, because of the response it would crash with an earlier version of PyMISP. |
Describe the bug
The
MISP analyzer
is "crashing" theMISP
server whenpymisp
version2.4.120
is used.To Reproduce
Steps to reproduce the behavior:
pymisp
client version2.4.120
MISP analyzer
with any observableMISP
server will increase up to a set resource limit if such exists, otherwise just conumes all available system memory (at least I tested it with a 16GB machine and it always ate up all the mem and crashed)Expected behavior
To run as before.
Work environment
Possible solutions
As a short term solution it's enough to pin the
pymisp
requirements to version2.4.119
.For a long term solution I'd revisit the search queries used by the analyzer and limit them in a sensible way not to make
MISP
load a lot of resources into memory, although it's a shame that you can crash a system via its ReST API.Additional context
The analyzer is using the legacy/deprecated client of
pymisp
which is never a good thing.The text was updated successfully, but these errors were encountered: