Skip to content

Commit 6a286aa

Browse files
committed
1 parent 64321f8 commit 6a286aa

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

attackcti/attack_api.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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'],

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
setuptools.setup(
1515
name="attackcti",
16-
version="0.1.6",
16+
version="0.1.7",
1717
author="Roberto Rodriguez",
1818
author_email="[email protected]",
1919
description="ATTACK CTI Libary",

0 commit comments

Comments
 (0)