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

Hover enrichment not working, but no problem with "Enrich event" functionality #518

Open
fink08 opened this issue Aug 16, 2021 · 6 comments

Comments

@fink08
Copy link

fink08 commented Aug 16, 2021

OS : CentOS 8
Instance behind a corporate Proxy
PHP 7.4.22
MISP 2.4.148

Hi, I've had a few problems with the misp-modules, mainly that the misp-modules service initially works fine right after the install but refuses to start again after a reboot. This is what I have as a result :

image

Any attempt at restarting/stopping the service has failed.

This resulted is no plugins being available. I have gone around this by manually launching the modules (with help from issue #354) :

sudo -u apache /var/www/MISP/venv/bin/misp-modules -l 127.0.0.1 -s

The output indicates that all modules were succesfully loaded. In the UI, the plugin settings appear and I can use "Enrich event", for example to generate yara rules from hash values. This works fine. However, as soon as I try using hover enrichment on a single attribute, I only get errors :

image

In the python logs, I see the following :

image

I'm not sure what else I can do to fix this, I didn't have this problem when I tested the install on my personal computer so I don't know if this is somehow related to the proxy. I'd be grateful if anyone has any idea on this one. Mainly, how is it that I get results when I enrich the entire event with "Enrich Event" but the single hover enrichment for one attribute doesn't work ?

Thank you !

@bm11100
Copy link

bm11100 commented Oct 12, 2021

I am also seeing empty results on my enrichments, also on 2.4.148, using CentOS 7 MISP/MISP#7836

@adulau
Copy link
Member

adulau commented Oct 13, 2021

What's the input value and type? It seems the value format is different than for the type expected.

@bm11100
Copy link

bm11100 commented Oct 13, 2021

@adulau i've tested IP's, urls, hashes, etc.. Here's one example type - ip-dst

image

Upon clicking the hover on any IP or url -

image

I'm not getting any errors running the service, just empty results in everything I want to enrich.

Any specific logs that would be helpful in identifying the issue?

@bm11100
Copy link

bm11100 commented Oct 13, 2021

FYI - I just tested on a brand new cloud instance of MISP, Ubuntu this time, enabled xforceexchange, and still get the empty results when clicking on the hover. I figured I'd rule out my instance and start fresh, but the problem seems to persist.

@chrisr3d
Copy link
Member

chrisr3d commented Oct 15, 2021

I just pushed be5635b that should fix the issue described with the python logs.
This should fix the hover enrichment issues at least for the yara_query module as mentioned in the logs.

Now concerning the different other modules mentioned here, I tested with the IP addresses provided here on the screenshot:

  • I got results for the virustotal public one
  • I get indeed empty results for xforceexchange. I don't think there is any issue, there is just no result.
  • Greynoise requires an API key, I don't have any so I cannot make further tests on it.

Let me know if you still face issues

@waldeckerthefirst
Copy link

waldeckerthefirst commented Dec 15, 2022

Hello,
i face the same issue with Greynoise and MISP version 2.4.166 on Redhat 8.6 with Proxy and feeds synchronisation is working fine.

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.greynoise.io', port=443): Max retries exceeded with url: /v3/community/8.8.8.8 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f121b0f19d0>: Failed to establish a new connection: [Errno -2] Name or service not known'))

Dec 14 14:37:07 misp-modules[69667]: return request("get", url, params=params, **kwargs)
Dec 14 14:37:07 misp-modules[69667]: File "/opt/misp/www/MISP/venv/lib/python3.8/site-packages/requests/api.py", line 59, in request
Dec 14 14:37:07 misp-modules[69667]: return session.request(method=method, url=url, **kwargs)
Dec 14 14:37:07 misp-modules[69667]: File "/opt/misp/www/MISP/venv/lib/python3.8/site-packages/requests/sessions.py", line 587, in request
Dec 14 14:37:07 misp-modules[69667]: resp = self.send(prep, **send_kwargs)
Dec 14 14:37:07 misp-modules[69667]: File "/opt/misp/www/MISP/venv/lib/python3.8/site-packages/requests/sessions.py", line 701, in send
Dec 14 14:37:07 misp-modules[69667]: r = adapter.send(request, **kwargs)
Dec 14 14:37:07 misp-modules[69667]: File "/opt/misp/www/MISP/venv/lib/python3.8/site-packages/requests/adapters.py", line 565, in send
Dec 14 14:37:07 misp-modules[69667]: raise ConnectionError(e, request=request)

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

No branches or pull requests

5 participants