CYBEX-P / tahoe

A Cyberthreat Language (CTL) to replace STIX
Other
0 stars 1 forks source link

User() and Org() fails to parse #55

Closed nachobacanful closed 3 years ago

nachobacanful commented 3 years ago

when calling parse() returning object is of type Object when itype is object and sub_type is cybexp_user, I assume same happends with Orgs. this happens because: https://github.com/CYBEX-P/tahoe/blob/42b93a725f5dd98bcb428c179371e9b7cccb1542/tahoe/parse.py#L45 fails to find mapping, becuase it does not exists.

to fix

The following

    ITYPE_CLASS_MAP['object']['cybexp_user'] = User
    ITYPE_CLASS_MAP['object']['cybexp_org'] = Org

should be added to _create_itype_class_map().