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

pull/326/head
chrisr3d 2019-08-02 10:10:44 +02:00
parent d770a290b9
commit 034222d7b3
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 1 additions and 1 deletions

View File

@ -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']: