-
Notifications
You must be signed in to change notification settings - Fork 89
Closed
Description
This code
import stix.core
import cybox.core
import cybox.objects.address_object
p = stix.core.STIXPackage()
p.add_observable(cybox.objects.address_object.Address('1.2.3.4'))
p.add_observable(cybox.core.Event())
print(p.to_xml())produces
<stix:STIX_Package
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cyboxCommon="http://cybox.mitre.org/common-2"
xmlns:cybox="http://cybox.mitre.org/cybox-2"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:stix="http://stix.mitre.org/stix-1"
xmlns:AddressObj="http://cybox.mitre.org/objects#AddressObject-2"
xmlns:example="http://example.com"
id="example:Package-858fc4b4-648e-41b0-90fe-299c44e5a765"
version="1.2">
<stix:Observables cybox_major_version="2" cybox_minor_version="1" cybox_update_version="0">
<cybox:Observable id="example:Observable-60e703c5-d717-482a-9b0a-3ed3d5fbdf27">
<cybox:Object id="example:Address-397f22b1-cd16-4d76-bcd5-86066eb82b69">
<cybox:Properties xsi:type="AddressObj:AddressObjectType">
<AddressObj:Address_Value>1.2.3.4</AddressObj:Address_Value>
</cybox:Properties>
</cybox:Object>
</cybox:Observable>
<cybox:Observable id="example:Observable-d2a00877-b46e-48df-8dbe-45ffe7f95551">
<cybox:Event/>
</cybox:Observable>
</stix:Observables>
</stix:STIX_Package>
Why does the address have an id, but not the event?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels