Suspicious NtOSKrnl Image Load
Description
Identifies an unsigned process loading the ntoskrnl image. Some exploits map the Windows kernel file in memory to calculate the offset for certain structures and objects needed for exploitation that may vary per target Operating System.
Query · eql
library where (dll.name : "ntoskrnl.exe" or dll.pe.original_file_name : "ntkrnlmp.exe") and
(process.code_signature.trusted == false or process.code_signature.exists == false) and
process.thread.Ext.call_stack_summary : "?*" and
not process.thread.Ext.call_stack_summary : "*libfacter.so|x64-msvcrt-ruby*" and
not process.executable :
("?:\\Program Files\\Puppet Labs\\Puppet\\sys\\ruby\\bin\\ruby.exe",
"?:\\Program Files\\Puppet Labs\\Puppet\\puppet\\bin\\ruby.exe",
"?:\\Program Files\\Puppet Labs\\Puppet\\puppet\\bin\\facter.exe",
"?:\\Windows\\SystemApps\\MicrosoftWindows.Client.*\\SearchHost.exe",
"?:\\Users\\*\\AppData\\Local\\Programs\\STAR\\resources\\BISPrint\\pr.exe")