mirror of https://github.com/MISP/misp-modules
				
				
				
			fix: Testing if file & registry activities fields exist before trying to parse it
							parent
							
								
									4c8fe9d8ef
								
							
						
					
					
						commit
						41bbbeddfb
					
				| 
						 | 
					@ -167,6 +167,7 @@ class JoeParser():
 | 
				
			||||||
                process_object.add_attribute('start-time', **{'type': 'datetime', 'value': start_time})
 | 
					                process_object.add_attribute('start-time', **{'type': 'datetime', 'value': start_time})
 | 
				
			||||||
                self.misp_event.add_object(**process_object)
 | 
					                self.misp_event.add_object(**process_object)
 | 
				
			||||||
                for field, to_call in process_activities.items():
 | 
					                for field, to_call in process_activities.items():
 | 
				
			||||||
 | 
					                    if process.get(field):
 | 
				
			||||||
                        to_call(process_object.uuid, process[field])
 | 
					                        to_call(process_object.uuid, process[field])
 | 
				
			||||||
                self.references[self.analysisinfo_uuid].append(dict(referenced_uuid=process_object.uuid,
 | 
					                self.references[self.analysisinfo_uuid].append(dict(referenced_uuid=process_object.uuid,
 | 
				
			||||||
                                                                    relationship_type='calls'))
 | 
					                                                                    relationship_type='calls'))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue