Closed emmanvg closed 4 years ago
The error seems to be related to logic on the Deterministic ID calculation of the object.
I had a peek at this and I think I found the bug. The _generate_id()
function makes calls to _recursive_stix_to_dict() to deep-convert the kwargs to a pure dict. That means that _STIXBase
objects should never have been passed to the canonicalizer. So that conversion is failing.
The bug is that _recursive_stix_to_dict()
doesn't work. First, you can see that it will break out of the loop when the first non-dict/_STIXBase
valued property is found. That will cause it to miss things. Secondly, it doesn't handle lists. The windows-pebinary-ext
extension has a list-valued property, sections
. One of the _STIXBase
objects lies inside the list, and the deep-converter needs to handle that.
Below an example of how to trigger the problem:
I obtain the following error: