fix: [stix export] Fixed dictionary key used to check pe sections to parse

pull/5216/head
chrisr3d 2019-09-24 11:03:44 +02:00
parent 0a563c99d6
commit 8b9a9c1326
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ class StixBuilder(object):
pe_file_header = PEFileHeader()
pe_sections = PESectionList()
for reference in pe_object['ObjectReference']:
if reference['Object']['name'] == "pe-section" and reference['referenced_uuid'] in self.objects_to_parse['pe_section']:
if reference['Object']['name'] == "pe-section" and reference['referenced_uuid'] in self.objects_to_parse['pe-section']:
pe_section_object = self.objects_to_parse['pe-section'][reference['referenced_uuid']]
to_ids_section, section_dict = self.create_attributes_dict(pe_section_object['Attribute'])
to_ids_list.append(to_ids_section)