@@ -39,7 +39,6 @@ def parse_stix_objects(self, stix_objects, stix_object_type):
3939 'matrix' : technique ['external_references' ][0 ]['source_name' ],
4040 'technique' : technique ['name' ],
4141 'technique_description' : self .try_except (technique , 'description' ),
42- #'tactic': self.handle_list(technique,'kill_chain_phases'),
4342 'tactic' : self .try_except (technique ,'kill_chain_phases' ),
4443 'technique_id' : technique ['external_references' ][0 ]['external_id' ],
4544 'platform' : self .try_except (technique ,'x_mitre_platforms' ),
@@ -97,12 +96,12 @@ def parse_stix_objects(self, stix_objects, stix_object_type):
9796 software_dict = {
9897 'type' : software ['type' ],
9998 'id' : software ['id' ],
100- 'created_by_ref' : software [ 'created_by_ref' ] ,
99+ 'created_by_ref' : self . try_except ( software , 'created_by_ref' ) ,
101100 'created' : str (software ['created' ]),
102101 'modified' : str (software ['modified' ]),
103102 'matrix' : software ['external_references' ][0 ]['source_name' ],
104103 'software' : software ['name' ],
105- 'software_description' : software [ 'description' ] ,
104+ 'software_description' : self . try_except ( software , 'description' ) ,
106105 'software_labels' : self .try_except (software , 'labels' ),
107106 'software_id' : software ['external_references' ][0 ]['external_id' ],
108107 'url' : software ['external_references' ][0 ]['url' ],
0 commit comments