Open da667 opened 6 years ago
think we might have found the solution. Not yet confirmed, but we don't get generic errors anymore.
the search filter parameters for MISP changed at some point so the prototype suggestions:
filters:
published: 1
tag: 'tlp:white'
# datefrom: 180d
need to be changed. Specifically, the parameter published: 1
needs to be searchpublished: 1
, and the parameter datefrom: xxxd
needs to be searchDatefrom: xxxd
(yes, the capitalization of the word Date is important)
Again, no more failures... Need to confirm this is the solution first, however.
seems that our issue revolves the filters section of the prototype. Some time between when the documentation on this project was written and now, the pymisp parameters changed for filtering what data pymisp will retrieve.
https://github.com/MISP/misp-book/blob/master/automation/README.md#filtering-event-metadata
this link has a list of the new parameters that pymisp uses. Out of curiosity, I attempted to create a version of the prototype WITHOUT a filter, and this results in the same error. It appears as though this miner or pymisp requires filters of some sort in order to return data. It also appears as though the searchDatefrom parameter, the new filter parameter that actually works requires a date in yyyy-mm-dd format.
As soon as we switched our filter parameters to:
filters:
searchpublished: 1
searchDatefrom: 2018-02-26
and left our other prototype parameters the same, MISP events began to be consumed via the minemeld MISP miner.
So... at this point, I guess we need a feature request for a feature that is able to translate a relative date (e.g. 30d) and turn that into a yyyy-mm-dd date timestamp that MISP's search filter API can understand.
I mean, currently, we could probably ghetto-rig a shell script that changes the parameter for the protoype on disk for us every 30 days via cron, but I feel like theres a better way, and I'm hoping you could assist with that.
Hi,
I've tried the solution provided: searchpublished: 1 & searchDatefrom: 2018-02-26. I get the error 'response'. I couldn't find a description of error: 'response'.
Hi @da667, @alexmoldovanbv, sorry for being late on this issue and thanks for digging into this. Just give me some few days to retest the extension with recent versions of MISP/PyMISP. May I ask you how do you plan to use this Miner? any specific requirement on the filter side? or suggestion on which filter to apply by default?
Hey there!
So, we use Minemeld and MISP pretty heavily in our environment. We have a ton of automated malware analysis and cuckoo reports automatically pulled into our MISP instance. Ideally, what we would like to do is pull our MISP data to our minemeld instance and create feeds so that the data can be easily consumed.
What I would like to be able to do is what the minemeld-misp extension states it is capable of doing, e.g. I want to pull all IOCs for the last X amount of days, so that they can be pulled into a minemeld feed, and be automatically aged out after a period of time.
the default filter of "datefrom:30d" is no longer working because 'datefrom' is no longer an option for search_index parameter with pyMISP.
Thanks, let me fix this.
Hi @da667,
I have created a new version with 2.4.89b1
that installs pymisp 2.4.89
. I have slightly improved prototypes and UI to let you specify the URL from the GUI without customising the prototype.
I think MISP 2.4.95 intoduces a new API, I have to check if pymisp 2.4.95 is backward compatible with MISP <2.4.95. Otherwise I will create a new tag just for 2.4.95 pinning pymisp 2.4.95.
Hello. I recently added the minemeld-misp module to my minemeld instance.
Operating System: lsb_release -a:
uname -a:
Linux [hostname redacted] 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
I am currently running both MISP AND Minemeld on the same system.
Minemeld Version: 0.9.44.post1
MISP Version: 2.4.89
If you're wondering how we're getting minemeld and MISP to exist on the same host, we're currently hacking it by having nginx listen on port 81, and 444 to host minemeld, then using an apache mod_rewrite rule to redirect any requests to /[servername]/minemeld, to https://localhost:444 (where minemeld is listening on SSL). So far, everything works wonderfully. My other modules work. They retrieve data, things work fine. But just because I care about completion, here are the apache rewrite rules, for posterity:
I have installed the minemeld-misp module via github option on the Minemeld System>Extensions tab. After installing the module, I enabled the module, and restarted minemeld. I can confirm that the misp.anyEvent prototype got installed. Additionally, per the installation instructions, I created a new minemeldlocal prototype based off of the misp.anyEvent prototype, per the instructions on this github repo. Here is what the prototype parameters look like:
I cloned this new prototype, added it as a node to our config, committed the change on the config page, navigate to the nodes page, and edit the settings for our new node, specifically adding an API key for access, and explicitly disabling cert verification.
I then instruct the MISP node to run, and the only indication I get that anything went wrong on the web interface is a red box labeled "error" in the Last Run field of our newly configured MISP node. When I hover over the error box, this is the only text that I get back:
Unknown error (something is very broken server-side:)
So... That tells me absolutely nothing. Hunting through other bugs for minemeld, I decided to check out /opt/minemeld/log/minemeld-engine.log:
Specifically:
I have no idea what this error is referring to.
When I check /var/log/apache2/access.log on my server, here are the entries that show up when I force the miner node to start:
I need your help determining WHY the misp miner is not collecting data from the MISP instance hosted on the same system.