Raphaël Vinot

Results 550 comments of Raphaël Vinot

Would be easier if you pasted the stacktrace with a more readable formatting, but this line is pretty clear: `PyMISPError: Unable to connect to MISP (https://MISPURL:443).` The URL is incorrect.

I very much doubt `MISPURL` is the URL of the instance. What do you put in your browser to reach MISP?

You need to talk to Snyk and ask them to generate their report in MISP format is I think the simplest answer.

just making sure, it should be `attribute['decay_score']['score']` and not `attribute['score']`. Or is it a typo in the code above?

Editing all the `to_ids` flags for the decayed attributes seems to be extremely overkill and will probably not scale by the time you have a lot of data in your...

can you print the response of `self.misp.update_event(test, pythonify=True)`?

the template you're using is lacking the `meta-category`, that's why it's not added.

Okay, so from what I see here, there are a few things: * `name='custom-phishing'` is not the name in the template (`customtesting`) - I think this is the core issue,...

Ok, can you try `print(object_test.to_json(indent=2))` before the call to `self.misp.update_event`? And it should be `object_relation='category'` (lower case, as it is in the template).

Okay, so PyMISP cannot find the template to pre-fill the required fields. The reason is that you're using `misp_objects_path_custom='files/misp-objects/objects/custom-phishing/definition.json'` which expects a **path to the directory** that contains the templates....