-
Notifications
You must be signed in to change notification settings - Fork 11
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
howto add galaxy and/or cluster to event or attribute #2
Comments
Add the tag representing the galaxy, MISP will do the rest |
UPDATE GALAXY FROM MISP TO MISP Hello everyone. I am trying to update a galaxy that has an attribute in another misp. In the other misp there is the attribute but it does not have the updated "galaxy" update_attribute with "attr['Galaxy']" in a for bucle, no update the Galaxy in the attribute. Only update this fields "{'Attribute': {'id': '', 'event_id': '', 'object_id': '0', 'object_relation': None, 'category': 'Network activity', 'type': 'domain', 'to_ids': True, 'uuid': '', 'timestamp': '', 'distribution': '', 'sharing_group_id': '0', 'comment': '', 'deleted': False, 'disable_correlation': False, 'value': ''}}"
The comment is updated. The Galaxy does not |
Try to use the |
Hi thank for the reply :) |
You will have to show me the code, because both methods work in the test cases (https://github.com/MISP/PyMISP/blob/master/tests/testlive_comprehensive.py). |
Now It works! but with the function 'tag': I'm going to look this test cases. Thanks a lot! |
Objects don't have tags currently. You can either tag an event, or an attribute (or an object attribute), but not the object itself. |
@Rafiot Hey Raphaël, can objects not be tagged still? What's the way to tag an object attribute? Like the src or dst IP for e.g. |
objects cannot be tagged. For tagging an attribute inside an object, it is explained above. |
@Rafiot and an event is tagged like this right? |
It depends what Regardless, please open a new issue in the PyMISP repository with a complete code sample, it will be easier than handling it in a closed and unrelated issue. |
@Rafiot thank you very much for your quick responses, it seems to work somehow now :) |
Hi, is there a method with PyMISP to add a pre-existing galaxy and/or galaxy-cluster to an event or attribute?
I did see mention in #1 re' creating galaxies and clusters. I might be interested in that also. Wasn't sure how I'd do that from a python client when you say to use the JSON file.
Thanks!
The text was updated successfully, but these errors were encountered: