From 58e78b7203449738ba4d06064ed5c33d42be5d0f Mon Sep 17 00:00:00 2001 From: DastInDark <2350416+hitenkoku@users.noreply.github.com> Date: Thu, 8 Sep 2022 09:52:26 +0900 Subject: [PATCH] changed MitreTags, MitreTactics, OtherTags field separator character --- src/detections/detection.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/detections/detection.rs b/src/detections/detection.rs index 75e801de..c28756bd 100644 --- a/src/detections/detection.rs +++ b/src/detections/detection.rs @@ -326,7 +326,7 @@ impl Detection { .filter(|x| TAGS_CONFIG.values().contains(x)) .map(|y| y.to_owned()) .collect(); - profile_converter.insert("%MitreTactics%".to_string(), tactics.join(" : ")); + profile_converter.insert("%MitreTactics%".to_string(), tactics.join(" | ")); } "%MitreTags%" => { let techniques: &Vec = &tag_info @@ -342,7 +342,7 @@ impl Detection { make_ascii_titlecase(&mut replaced_tag) }) .collect(); - profile_converter.insert("%MitreTags%".to_string(), techniques.join(" : ")); + profile_converter.insert("%MitreTags%".to_string(), techniques.join(" | ")); } "%OtherTags%" => { let tags: &Vec = &tag_info @@ -355,7 +355,7 @@ impl Detection { }) .map(|y| y.to_owned()) .collect(); - profile_converter.insert("%OtherTags%".to_string(), tags.join(" : ")); + profile_converter.insert("%OtherTags%".to_string(), tags.join(" | ")); } _ => {} @@ -458,7 +458,7 @@ impl Detection { .filter(|x| TAGS_CONFIG.values().contains(x)) .map(|y| y.to_owned()) .collect(); - profile_converter.insert("%MitreTactics%".to_string(), tactics.join(" : ")); + profile_converter.insert("%MitreTactics%".to_string(), tactics.join(" | ")); } "%MitreTags%" => { let techniques: &Vec = &tag_info @@ -474,7 +474,7 @@ impl Detection { make_ascii_titlecase(&mut replaced_tag) }) .collect(); - profile_converter.insert("%MitreTags%".to_string(), techniques.join(" : ")); + profile_converter.insert("%MitreTags%".to_string(), techniques.join(" | ")); } "%OtherTags%" => { let tags: &Vec = &tag_info @@ -487,7 +487,7 @@ impl Detection { }) .map(|y| y.to_owned()) .collect(); - profile_converter.insert("%OtherTags%".to_string(), tags.join(" : ")); + profile_converter.insert("%OtherTags%".to_string(), tags.join(" | ")); } _ => {} }