From db902275b314b8d3c7cf1be9a22407cee7cbf744 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Sat, 5 Mar 2022 15:24:29 +0100 Subject: [PATCH] chg: [joe] skip not existing system in behavior --- misp_modules/lib/joe_parser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misp_modules/lib/joe_parser.py b/misp_modules/lib/joe_parser.py index 22a4918..8b400fe 100644 --- a/misp_modules/lib/joe_parser.py +++ b/misp_modules/lib/joe_parser.py @@ -167,6 +167,8 @@ class JoeParser(): self.misp_event.add_attribute(**attribute) def parse_system_behavior(self): + if not 'system' in self.data['behavior']: + return system = self.data['behavior']['system'] if system.get('processes'): process_activities = {'fileactivities': self.parse_fileactivities,