fix: Using the attack-pattern object template (copy-paste typo)

pull/326/head
chrisr3d 3 years ago
parent d770a290b9
commit 034222d7b3
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
  1. 2
      misp_modules/modules/expansion/cve_advanced.py

@ -65,7 +65,7 @@ class VulnerabilityParser():
def __parse_capec(self, vulnerability_uuid):
attribute_type = 'text'
for capec in self.vulnerability['capec']:
capec_object = MISPObject('capec')
capec_object = MISPObject('attack-pattern')
for feature in self.capec_features:
capec_object.add_attribute(feature, **dict(type=attribute_type, value=capec[feature]))
for related_weakness in capec['related_weakness']:

Loading…
Cancel
Save