From aeb2c60a7b1bcfcfb58f891ffb9150c322d89a82 Mon Sep 17 00:00:00 2001 From: Esteban Rodriguez Date: Tue, 5 Sep 2023 15:37:56 -0300 Subject: [PATCH] Device Name puede ser vacio, lo completamos con DeviceID enese caso, pero si no esta ninguno de los dos lo dejamos en unknown --- faraday_plugins/plugins/repo/windows_defender/plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/faraday_plugins/plugins/repo/windows_defender/plugin.py b/faraday_plugins/plugins/repo/windows_defender/plugin.py index d2167ba4..95eb3b9a 100644 --- a/faraday_plugins/plugins/repo/windows_defender/plugin.py +++ b/faraday_plugins/plugins/repo/windows_defender/plugin.py @@ -19,6 +19,8 @@ def parseOutputString(self, output): data = json.loads(json_str) device_name = data.pop('DeviceName', 'Unknown') + if device_name == "Unknown": + device_name = data.pop('DeviceId', 'Unknown') os_platform = data.pop('OSPlatform', 'Unknown') cve_id = data.pop('CveId', 'Unknown') severity = data.pop('VulnerabilitySeverityLevel', 'Unknown')