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

How can i support the Parser to work with STIX version 1.2.1 #41

Open
PintoArt opened this issue Jul 19, 2017 · 1 comment
Open

How can i support the Parser to work with STIX version 1.2.1 #41

PintoArt opened this issue Jul 19, 2017 · 1 comment
Labels

Comments

@PintoArt
Copy link

Hello
I am using the parser.py to parse a STIX files version 1.2.
My problem is that when i use STIX file version 1.2.1 i get the following error:
mixbox.parser.UnsupportedVersionError: Document version (1.2.1) not in supported versions ([StrictVersion ('1.1.1'), StrictVersion ('1.2')])

  • How can i fix this error?
    thank you for your help
@gtback
Copy link
Contributor

gtback commented Jul 20, 2017

Hi @PintoArt, there is a separate stix121 package on PyPI, along with corresponding cybox211 and maec411 packages, but they aren't heavily tested; I'm not aware of anyone actively using them. Also they're (unfortunately) incompatible with the standard stix (for 1.2), cybox, and maec packages. It's possible to install both of them side by side, but they will clobber each other since they use the same package names.

If you need to support both at the same time, the easier approach might be to rewrite all of the STIX 1.2.1 files to use the 1.2 namespaces (or vice versa, rewriting the STIX 1.2 files to use the 1.2.1 namespaces). I thought we had a script that would do this in one of the STIX repositories, but I can't find it now (@emmanvg might know where it is). If you want to go down this route, let me know.

I'm curious where you are getting STIX 1.2.1 content from, since I've never seen any "in the wild". Feel free to contact [email protected] if you'd rather not about the source of the data on GitHub.

@gtback gtback added the question label Mar 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants