oasis-open / cti-stix-elevator

OASIS Cyber Threat Intelligence (CTI) TC Open Repository: Convert STIX 1.2 XML to STIX 2.x JSON
https://stix2-elevator.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
49 stars 23 forks source link

xpil BirthPlaceDetails, BirthInfoElement, and Accounts are translated to JSON #154

Open hanymorcos opened 5 years ago

hanymorcos commented 5 years ago

Noticed not all elements in the oasis ciq 3 are not be translated over to JSON.

<stixCommon:Identity xsi:type="stix-ciq:CIQIdentity3.0InstanceType">
    <stix-ciq:Specification>
        <xpil:BirthInfo>
            <xpil:BirthPlaceDetails>
                <xal:FreeTextAddress>
                    <xal:AddressLine>
                        TEST23236
                    </xal:AddressLine>
                </xal:FreeTextAddress>
            </xpil:BirthPlaceDetails>
            <xpil:BirthInfoElement>
                TEST23236
            </xpil:BirthInfoElement>
        </xpil:BirthInfo>
        <xpil:Accounts>
            <xpil:Account>
                <xpil:Organisation>
                    <xnl:NameElement>TEST23235</xnl:NameElement>
                </xpil:Organisation>
            </xpil:Account>
        </xpil:Accounts>
        <xpil:PartyName>
            <xnl:OrganisationName>
                <xnl:NameElement>ACME CORP</xnl:NameElement>
            </xnl:OrganisationName>
        </xpil:PartyName>
        <xpil:Addresses>
            <xpil:Address>
                <xal:Country>
                    <xal:NameElement xal:NameCode="US" xal:NameCodeType="ISO 3166-1 alpha-2"></xal:NameElement>
                </xal:Country>
                <xal:AdministrativeArea>
                    <xal:NameElement xal:NameCode="US-DC" xal:NameCodeType="ISO 3166-2"></xal:NameElement>
                </xal:AdministrativeArea>
            </xpil:Address>
        </xpil:Addresses>
        <xpil:OrganisationInfo xpil:IndustryType="SECTOR_1 | SECTOR_2 | Chemical Sector | Dams Sector" ></xpil:OrganisationInfo>
    </stix-ciq:Specification>
</stixCommon:Identity>
rpiazza commented 5 years ago

The Identity object in STIX 2.x doesn't support a lot of the ciq content. Were you expecting the information to appear somewhere?

BTW - I assume you mean "aren't translated" in the summary of this issue?