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

Export Events in STIX v1 in XML #5618

Closed
mohlcyber opened this issue Feb 11, 2020 · 5 comments
Closed

Export Events in STIX v1 in XML #5618

mohlcyber opened this issue Feb 11, 2020 · 5 comments
Labels
S: stale Status: stale. This issue has had no activity in a long time, it may not be relevant anymore T: support Type: support. This issue is seeking support on a problem or question topic: stix

Comments

@mohlcyber
Copy link

I am using MISP 2.4.121 and looking for a way to export events in stix v1 in xml format.

Before the release of 2.4.120 i was able to export events in stix version 1.x in xml. With the current version i am only able to export stix in json.

Is it correct that both return_formats (stix, stix-json) return a similar output? I was expecting to get stix in xml and stix-json in json.

Unfortunately I need an STIX v1 XML output to get our SIEM integration working.
If you need any further details please let me know.

All the best,
Martin

@mohlcyber mohlcyber added needs triage This issue has been automatically labelled and needs further triage T: support Type: support. This issue is seeking support on a problem or question labels Feb 11, 2020
@RichieB2B
Copy link
Contributor

RichieB2B commented Feb 11, 2020

Are you using the web interface or API? How exactly are you doing the export?

@mohlcyber
Copy link
Author

mohlcyber commented Feb 11, 2020

Apologies forgot to mention. I am talking about the API.

https:///events/restSearch
{
"returnFormat": "stix",
"eventid": "1147"
}

Same applies to the PyMISP libraries. When I use a similar function like this:
self.misp.search(eventid=eid, tags=tags, return_format='stix')
I am receiving an JSON as an output.

Via the UI i can successfully export the event into a STIX XML file.
I just checked - when i use: https:///events/restSearch/stix/eventid:1147
I get the expected XML. Something strange.

@RichieB2B
Copy link
Contributor

With the API you need to set the Accept header:

Accept: application/xml

@iglocska
Copy link
Member

iglocska commented Feb 12, 2020 via email

@mohlcyber
Copy link
Author

I used the PyMISP libraries and the accepted XML header.
I guess this might be more related to the PyMISP libraries.

Just seen in the change log of PyMISP the following.

v2.4.120 (2020-01-17)
.....
Search with the STIX output returns a json STIX. [Raphaël Vinot]
Was XML before.
.....
Is there any reason for this? Do you want me to create an issue on the PyMISP repo?
Might be more a question to Raphael why this has changed and if there is a way of exporting STIX1 in xml via the PyMISP libraries.

Rafiot added a commit to MISP/PyMISP that referenced this issue Jul 17, 2020
@enjeck enjeck added S: stale Status: stale. This issue has had no activity in a long time, it may not be relevant anymore topic: stix and removed needs triage This issue has been automatically labelled and needs further triage labels Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: stale Status: stale. This issue has had no activity in a long time, it may not be relevant anymore T: support Type: support. This issue is seeking support on a problem or question topic: stix
Projects
None yet
Development

No branches or pull requests

4 participants