diff --git a/misp_stix_converter/converters/buildMISPAttribute.py b/misp_stix_converter/converters/buildMISPAttribute.py index 0a4a28d..60ae8e9 100644 --- a/misp_stix_converter/converters/buildMISPAttribute.py +++ b/misp_stix_converter/converters/buildMISPAttribute.py @@ -257,6 +257,7 @@ def buildEvent(pkg, **kwargs): title = "STIX Import" else: title = pkg.stix_header.title + log.info("Using title %s", title) log.debug("Seting up MISPEvent...") @@ -266,9 +267,9 @@ def buildEvent(pkg, **kwargs): event.analysis = kwargs.get("analysis", 0) event.info = title - if hasattr(pkg, "description"): - log.debug("Found description %s", pkg.description) - event.add_attribute("comment", pkg.description) + if pkg.stix_header and hasattr(pkg.stix_header, "description") and hasattr(pkg.stix_header.description, 'value'): + log.debug("Found description %s", pkg.stix_header.description.value) + event.add_attribute("comment", pkg.stix_header.description.value) log.debug("Beginning to Lint_roll...") ids = []