From 7b1c35d583a3deba6adf926fa457697becfacd79 Mon Sep 17 00:00:00 2001 From: chrisr3d Date: Tue, 30 Jul 2019 09:55:36 +0200 Subject: [PATCH] fix: Fixed cvss-score object relation name --- misp_modules/modules/expansion/cve_advanced.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/misp_modules/modules/expansion/cve_advanced.py b/misp_modules/modules/expansion/cve_advanced.py index 3a89ec93..62c49e27 100644 --- a/misp_modules/modules/expansion/cve_advanced.py +++ b/misp_modules/modules/expansion/cve_advanced.py @@ -4,7 +4,9 @@ import requests misperrors = {'error': 'Error'} mispattributes = {'input': ['vulnerability'], 'format': 'misp_standard'} -moduleinfo = {'version': '1', 'author': 'Christian Studer', 'description': 'An expansion module to enrich a CVE attribute with the vulnerability information.', 'module-type': ['expansion', 'hover']} +moduleinfo = {'version': '1', 'author': 'Christian Studer', + 'description': 'An expansion module to enrich a CVE attribute with the vulnerability information.', + 'module-type': ['expansion', 'hover']} moduleconfig = [] cveapi_url = 'https://cve.circl.lu/api/cve/' @@ -17,7 +19,7 @@ class VulnerabilityParser(): 'id': ('text', 'id'), 'summary': ('text', 'summary'), 'vulnerable_configuration_cpe_2_2': ('text', 'vulnerable_configuration'), 'Modified': ('datetime', 'modified'), 'Published': ('datetime', 'published'), - 'references': ('link', 'references'), 'cvss': ('float', 'cvss')} + 'references': ('link', 'references'), 'cvss': ('float', 'cvss-score')} def get_result(self): event = json.loads(self.misp_event.to_json())['Event']