remg427 / misp42splunk

A Splunk app to use MISP in background
GNU Lesser General Public License v3.0
109 stars 30 forks source link

[BUG] option pipesplit=true returns an error with mispgetevent or mispfetch #253

Closed remg427 closed 8 months ago

remg427 commented 9 months ago

Impacted version: MISP42 4.3.1

Problem

There is a error in code of the cutom command mispgetevent and mispfect and option pipesplit=true to process MISP combined attributes such as domain|ip and return 2 distinct fields (misp_domain and misp_ip in this example).

AttributeError at "/opt/splunk/etc/apps/misp42splunk/bin/mispgetevent.py", line 212 : 'dict' object has no attribute 'deepcopy'

The custom command mispgetioc is not impacted and works as expected with pipesplit=true.

Solution

| eval misp_domain=coalesce(misp_domain, mvindex(split(misp_domain_p_ip,"|"),0))
| eval misp_ip=coalesce(misp_ip, mvindex(split(misp_domain_p_ip,"|"),1))