@@ -109,25 +109,27 @@ query = '''
109109sequence by host.id with maxspan=5s
110110 [process where host.os.type == "windows" and event.type == "end" and
111111 process.code_signature.trusted != true and
112- not process.executable : ("C:\\Windows\\SoftwareDistribution\\*.exe", "C:\\Windows\\WinSxS\\*.exe")
112+ not process.executable like
113+ ("C:\\Windows\\SoftwareDistribution\\*.exe",
114+ "C:\\Windows\\WinSxS\\*.exe",
115+ "?:\\Windows\\Postillion\\Office\\*.exe")
113116 ] by process.executable
114- [file where host.os.type == "windows" and event.type == "deletion" and file.extension : ("exe", "scr", "com") and
115- and process.code_signature.trusted != true and
116- not process.executable :
117+ [file where host.os.type == "windows" and event.type == "deletion" and file.extension in ("exe", "scr", "com") and
118+ not process.executable like
117119 ("?:\\Program Files\\*.exe",
118120 "?:\\Program Files (x86)\\*.exe",
119121 "?:\\Windows\\System32\\svchost.exe",
120- "?:\\Windows\\System32\\drvinst.exe"
121- "?:\\Windows\\Postillion\\Office\\*.exe) and
122- not file.path : (
122+ "?:\\Windows\\System32\\drvinst.exe",
123+ "?:\\Windows\\Postillion\\Office\\*.exe" ) and
124+ not file.path like (
123125 "?:\\Program Files\\*.exe",
124126 "?:\\Program Files (x86)\\*.exe",
125127 "?:\\Windows\\Temp\\*\\DismHost.exe",
126128 "?:\\$WINDOWS.~BT\\Work\\*\\DismHost.exe",
127129 "?:\\$WinREAgent\\Scratch\\*\\DismHost.exe",
128130 "?:\\Windows\\tenable_mw_scan_*.exe",
129131 "?:\\Users\\*\\AppData\\Local\\Temp\\LogiUI\\Pak\\uninstall.exe",
130- "?:\\ProgramData\\chocolatey\\*.exe
132+ "?:\\ProgramData\\chocolatey\\*.exe"
131133 )
132134 ] by file.path
133135'''
0 commit comments