Registry Modification from a Potentially Altered Call Stack
Description
Detects registry modification from a potentially altered call stack in order to conceal the true source of the call.
Query · eql
registry where event.action == "modification" and process.executable != null and registry.value == "CachePrefix" and
process.thread.Ext.call_stack_summary :
("ntdll.dll|kernelbase.dll|wininet.dll|ntdll.dll|kernelbase.dll|wininet.dll|kernel32.dll*",
"ntdll.dll|kernelbase.dll|wininet.dll|ntdll.dll|kernelbase.dll|wininet.dll|kernelbase.dll*") and
_arraysearch(process.thread.Ext.call_stack, $entry, $entry.symbol_info: "?:\\Windows\\System32\\wininet.dll!HttpSendRequest*") and
not (process.code_signature.trusted == true and
_arraysearch(process.thread.Ext.call_stack, $entry, $entry.symbol_info : "C:\\Windows\\System32\\ntdll.dll!LdrGetDllPath*") and
_arraysearch(process.thread.Ext.call_stack, $entry, $entry.symbol_info : "C:\\Windows\\System32\\KernelBase.dll!GetProcessTimes*"))