Suspicious Network Module LoadLibrary
Description
Detects attempts to load a Microsoft networking related module from a potentially altered call stack in order to conceal the true source of the call.
Query · eql
library where dll.name : ("ws2_32.dll", "winhttp.dll", "wininet.dll") and
_arraysearch(process.thread.Ext.call_stack, $entry, $entry.symbol_info like "C:\\Windows\\System32\\KernelBase.dll!LoadLibrary*") and
process.thread.Ext.call_stack_summary like "ntdll.dll|kernelbase.dll|*" and
not process.thread.Ext.call_stack_summary like "ntdll.dll|kernelbase.dll|*|kernelbase.dll*" and
_arraysearch(process.thread.Ext.call_stack, $entry, $entry.symbol_info regex~ """C:\\Windows\\System32\\KernelBase.dll!([A-K]|[M-Z]).+""") and
_arraysearch(process.thread.Ext.call_stack, $entry, $entry.symbol_info: "C:\\Windows\\System32\\ntdll.dll!LdrLoadDll*") and
_arraysearch(process.thread.Ext.call_stack, $entry, $entry.symbol_info: "C:\\Windows\\System32\\kernel32.dll!BaseThreadInitThunk*") and
not process.thread.Ext.call_stack_summary in ("ntdll.dll|kernelbase.dll|doclient.dll|rpcrt4.dll|combase.dll|rpcrt4.dll|ntdll.dll|kernel32.dll|ntdll.dll",
"ntdll.dll|kernelbase.dll|doclient.dll|dosvc.dll|svchost.exe|sechost.dll|kernel32.dll|ntdll.dll")