imProcessCreate | where (TargetProcessName endswith "\\sc.exe" and (TargetProcessCommandLine contains "create" or TargetProcessCommandLine contains "config") and (TargetProcessCommandLine contains "binPath" and TargetProcessCommandLine contains "type" and TargetProcessCommandLine contains "kernel")) and (not(((TargetProcessCommandLine contains "create netprotection_network_filter" and TargetProcessCommandLine contains "type= kernel start= " and TargetProcessCommandLine contains "binPath= System32\\drivers\\netprotection_network_filter" and TargetProcessCommandLine contains "DisplayName= netprotection_network_filter" and TargetProcessCommandLine contains "group= PNP_TDI tag= yes") or (TargetProcessCommandLine contains "create avelam binpath=C:\\Windows\\system32\\drivers\\avelam.sys" and TargetProcessCommandLine contains "type=kernel start=boot error=critical group=Early-Launch"))))