Skip to content

Instantly share code, notes, and snippets.

@glaslos
Created August 7, 2014 08:30
Show Gist options
  • Save glaslos/3f6a1374ed09aa9e0dba to your computer and use it in GitHub Desktop.
Save glaslos/3f6a1374ed09aa9e0dba to your computer and use it in GitHub Desktop.
maec in stix example
from lxml import etree
from maec.package.package import Package
from stix.extensions.malware.maec_4_1_malware import MAECInstance
malware_package = Package()
maec_malware_instance = MAECInstance()
maec_malware_instance.maec = etree.fromstring(
malware_package.to_xml(), parser=etree.ETCompatXMLParser()
)
print maec_malware_instance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment