AISMarking Structure Not Implemented
See original GitHub issueI am working on Parsing TAXII messages with the STIX Package (I’ve tried 1.1.1.6 and 1.1.1.7) and I am receiving the following exception:
NotImplementedError: Marking structure type not implemented AISMarkingStructure
I can confirm that the AISMarkingStructure is in the etensions/marking/ais.py file:
$ egrep -r -nw "AIS:AISMarkingStructure" lib/
lib/python2.7/site-packages/stix/test/extensions/marking/ais.py:18: 'xsi:type': 'AIS:AISMarkingStructure'
lib/python2.7/site-packages/stix/test/extensions/marking/ais.py:31: 'xsi:type': 'AIS:AISMarkingStructure'
lib/python2.7/site-packages/stix/extensions/marking/ais.py:304: _XSI_TYPE = "AIS:AISMarkingStructure"
I have cleared the pip cache and recreated my virtualenv thinking it may have been a cacheing error.
Here’s the Python Code that’s creating the document:
...
from stix.core import STIXPackage
#Using XML dump from test TAXII Message. Below command created the testAIS.taxii file
#print taxii_message.content_blocks[0].content
stix_package = STIXPackage.from_xml('/tmp/testAIS.taxii')
And the exception:
File "local/lib/python2.7/site-packages/stix/bindings/data_marking.py", line 352, in buildChildren
raise NotImplementedError('Marking structure type not implemented ' + typeinfo.typename)
NotImplementedError: Marking structure type not implemented AISMarkingStructure
Issue Analytics
- State:
- Created 7 years ago
- Comments:20 (9 by maintainers)
Top Results From Across the Web
stix.extensions.marking.ais Module - python-stix - Read the Docs
This utility functions aids in the creation of an AIS marking and appends it to the provided STIX package. ... Any Markings under...
Read more >Automated Indicator Sharing (AIS) Submission Guide (V.16)
The AIS Marking is the one and only marking structure approved for ... and information protections schemes are not currently implemented;.
Read more >Struct does not implement interface if it has a method whose ...
It is simple example of my code where I use external package and want to mock structures for tests. Is it any solution...
Read more >13 Week: 51/22 - navcen.uscg.gov
Standard work hours will be from 0600 – 1600, Monday – Friday, and operations will be completed by no later than 15 Feb...
Read more >2nd WindSeeV_EN - BSH
Second Ordinance on the Implementation of the Offshore Wind ... a matter of principle, no portions of structures may project into the flight...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just FYI for anyone who reads this thread later: The last several comments are mostly unrelated to this GitHub issue, which is talking about the AIS Marking structure.
Ok, thanks @TheDr1ver and @brlogan.
I think it would be wrong for python-stix to silently ignore data markings it doesn’t understand (at least by default). There’s not a ton of documentation on implementing custom marking extensions, other than looking at existing markings and adapting them. What you’ve done with what’s in the FlexTransform repo is essentially the right approach.
As I mentioned, we also have an implementation of ISA markings, explicitly designed to work with python-stix, that we are going through the process for getting approval to release.
I released python-stix 1.2.0.3 last night.