diff --git a/misp_stix_converter/stix2misp/converters/stix2converter.py b/misp_stix_converter/stix2misp/converters/stix2converter.py index f288e0b..c830ab8 100644 --- a/misp_stix_converter/stix2misp/converters/stix2converter.py +++ b/misp_stix_converter/stix2misp/converters/stix2converter.py @@ -212,9 +212,9 @@ def parse(self, stix_object_ref: str): ############################################################################ def _check_existing_galaxy_name(self, stix_object_name: str) -> Union[list, None]: - if stix_object_name in self.synonyms_mapping: - return self.synonyms_mapping[stix_object_name] - for name, tag_names in self.synonyms_mapping.items(): + if stix_object_name in self.main_parser.synonyms_mapping: + return self.main_parser.synonyms_mapping[stix_object_name] + for name, tag_names in self.main_parser.synonyms_mapping.items(): if stix_object_name in name: return tag_names