Merge pull request #17 from mavjs/bugfix/groups-software_id

Fix for when not having the 'software_id' present for a group YAML file.
master
Marcus Bakker 2020-01-30 16:24:32 +01:00 committed by GitHub
commit 36a3379ea1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ def _get_group_techniques(groups, stage, platform, file_type):
groups_dict[group_id]['weight'] = group['technique_id']
if campaign != '':
groups_dict[group_id]['campaign'] = str(campaign)
groups_dict[group_id]['software'] = group['software_id']
groups_dict[group_id]['software'] = group.get('software_id', None)
else:
# groups are provided as arguments via the command line
all_groups_tech = load_attack_data(DATA_TYPE_CUSTOM_TECH_BY_GROUP)