You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is just terrific and can't believe @FloatingGhost got this to work(comments are worth reading)
At the moment I'm just concerned with getting some type of 'referencing' information with the event back into MISP.
For whatever reason it doesn't pick up the header or title and just uses STIX_File.xml and
event info = STIX Import
but there's definitely a
<stix:STIX_Header>
<stix:Package_Intent
and a
<stixCommon:Identity>
<stixCommon:Name
and I thought that was what this was doing --
if isinstance(stix, str) and "\n" not in stix:
# It's probably just a filename
filename = stix
elif hasattr(stix, "name"):
# Steal this one!
filename = stix.name
elif hasattr(stixPackage, "stix_header"):
# Well it has a header, maybe we can steal it
if stixPackage.stix_header:
if stixPackage.stix_header.title not in ["", None]:
filename = stixPackage.stix_header.title + ".xml"
I swear it used to grab that information and add it to the event.
I don't know if there's any suggestions you can give AND sorry if I haven't given any good 'examples' in here, I'm not sure what I'm allowed to copy and paste.
Thank you for your work on this!
=========================================================
Also, in case anyone else looks for this, I did get it to start tagging by modifying convert.py
This is just terrific and can't believe @FloatingGhost got this to work(comments are worth reading)
At the moment I'm just concerned with getting some type of 'referencing' information with the event back into MISP.
For whatever reason it doesn't pick up the header or title and just uses STIX_File.xml and
event info = STIX Import
but there's definitely a
and a
and I thought that was what this was doing --
I swear it used to grab that information and add it to the event.
I don't know if there's any suggestions you can give AND sorry if I haven't given any good 'examples' in here, I'm not sure what I'm allowed to copy and paste.
Thank you for your work on this!
=========================================================
Also, in case anyone else looks for this, I did get it to start tagging by modifying convert.py
The text was updated successfully, but these errors were encountered: