@@ -301,7 +301,7 @@ func TestProcFilter(t *testing.T) {
301301
302302 {`evt.name = 'CreateProcess' and ps.name contains 'svchost'` , true },
303303
304- {`ps.modules IN ('kernel32.dll')` , true },
304+ {`ps.modules IN ('C:\\Windows\\System32\\ kernel32.dll')` , true },
305305 {`evt.name = 'CreateProcess' and evt.pid != ps.ppid` , true },
306306 {`ps.parent.name = 'svchost.exe'` , true },
307307
@@ -328,7 +328,7 @@ func TestProcFilter(t *testing.T) {
328328 {`ps.args iintersects ('-K', 'DComLaunch')` , true },
329329 {`ps.args iintersects ('-W', 'DcomLaunch')` , false },
330330
331- {`foreach(ps.modules, $mod, $mod imatches 'us?r32.dll')` , true },
331+ {`foreach(ps.modules, $mod, $mod imatches '?:\\*\\ us?r32.dll')` , true },
332332 {`foreach(ps._modules, $mod, $mod.path imatches '?:\\Windows\\System32\\us?r32.dll')` , true },
333333 {`foreach(ps._modules, $mod, $mod.name imatches 'USER32.*')` , true },
334334 {`foreach(ps._modules, $mod, $mod.name imatches 'USER32.*' and $mod.size >= 212354)` , true },
0 commit comments