Skip to content

Commit 3bf7337

Browse files
israelpoliShirleyDenkberg
authored andcommitted
Fix MISPV3 that returned indicator with DBot score unknown (#38106)
* commit * commit * update RN * remove all debug * Update Packs/MISP/ReleaseNotes/2_1_50.md Co-authored-by: ShirleyDenkberg <[email protected]> --------- Co-authored-by: ShirleyDenkberg <[email protected]>
1 parent 9d8bcc8 commit 3bf7337

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

Packs/MISP/Integrations/MISPV3/MISPV3.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,10 +410,10 @@ def limit_tag_output_to_id_and_name(attribute_dict, is_event_level):
410410
is_event_tag = tag.get('inherited', 0) # field doesn't exist when this is an attribute level, default is '0'
411411
tag_id = tag.get('id')
412412
if is_event_level:
413-
tag_set_ids.add(tag_id)
413+
tag_set_ids.add(str(tag_id))
414414
else: # attribute level
415415
if not is_event_tag:
416-
tag_set_ids.add(tag_id)
416+
tag_set_ids.add(str(tag_id))
417417
output.append({'ID': tag_id, 'Name': tag.get('name')})
418418
return output, tag_set_ids
419419

@@ -922,7 +922,7 @@ def search_events_with_scored_tag(object_data_dict, found_tag, event_name):
922922
related_events = []
923923
object_tags_list = object_data_dict.get('Tag', [])
924924
for tag in object_tags_list:
925-
if tag.get('ID') == found_tag:
925+
if (tag_id := tag.get('ID')) and str(tag_id) == found_tag:
926926
event_id = get_event_id(object_data_dict)
927927
tag_name = tag.get('Name')
928928
related_events.append({'Event_ID': event_id, 'Event_Name': event_name,

Packs/MISP/ReleaseNotes/2_1_50.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
#### Integrations
3+
4+
##### MISP v3
5+
6+
Fixed an issue where an indicator with a tag defined in the *Malicious tag IDs* parameter returned a score of `unknown` instead of `malicious`.

Packs/MISP/pack_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "MISP",
33
"description": "Malware information and threat sharing platform.",
44
"support": "xsoar",
5-
"currentVersion": "2.1.49",
5+
"currentVersion": "2.1.50",
66
"author": "Cortex XSOAR",
77
"url": "https://www.paloaltonetworks.com/cortex",
88
"email": "",

0 commit comments

Comments
 (0)