From f9b02a65b69ad6fa93c21ec3cdc510d57f025924 Mon Sep 17 00:00:00 2001 From: Alan Smithee Date: Tue, 22 Feb 2022 08:42:23 +0900 Subject: [PATCH] fixed test to change regex detectlist_suspicous_services.txt --- src/detections/rule/matchers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detections/rule/matchers.rs b/src/detections/rule/matchers.rs index ba4801cf..4a72914c 100644 --- a/src/detections/rule/matchers.rs +++ b/src/detections/rule/matchers.rs @@ -644,13 +644,13 @@ mod tests { // regexes.txtの中身と一致していることを確認 let csvcontent = &ancestor_matcher.regexes; - assert_eq!(csvcontent.len(), 17); + assert_eq!(csvcontent.len(), 16); assert_eq!( csvcontent[0].as_str().to_string(), r"^cmd.exe /c echo [a-z]{6} > \\\\.\\pipe\\[a-z]{6}$" ); assert_eq!( - csvcontent[14].as_str().to_string(), + csvcontent[13].as_str().to_string(), r"\\cvtres\.exe.*\\AppData\\Local\\Temp\\[A-Z0-9]{7}\.tmp" ); }