Potential Shellcode Injection by a Browser Process
Description
Identifies suspicious memory allocations by a browser process. This may indicate an attempt to exploit a vulnerability for initial access and execution.
Query · eql
api where process.Ext.api.name == "VirtualProtect" and
process.Ext.api.name == "VirtualAlloc" and process.Ext.api.parameters.size >= 10000 and
process.Ext.api.summary like "*COMMIT*" and process.thread.Ext.call_stack_final_user_module.name == "Unbacked" and
process.name in~ ("iexplore.exe", "chrome.exe", "msedge.exe") and
not _arraysearch(process.thread.Ext.call_stack, $entry, $entry.protection_provenance like ("Kernel", "Kernel|*")) and
not process.thread.Ext.call_stack_final_user_module.protection_provenance like ("Kernel", "Kernel|*", "chrome.exe", "chrome.exe|*", "msedge.exe", "msedge.exe|*") and
not process.thread.Ext.call_stack_final_user_module.hash.sha256 in
("1a9ca25a7d7f11f6be10dee684505ee4b3340a0d3cbc22d959e69322e7cf0848",
"d09f0ed19b426b1f78de9b736f6c1f667b3e689c1927e6a3466423ddf88fd4a4") and
not process.thread.Ext.call_stack_final_user_module.protection_provenance like ("chrome.exe", "chrome.exe|*", "msedge.exe", "msedge.exe|*") and
not _arraysearch(process.thread.Ext.call_stack_final_user_module.code_signature, $entry, $entry.trusted == true)