Potential Beacon Masking from a Stomped Module
Description
Identifies multiple attempts to modify the memory protection of a memory module and the origin of the call is coming from the same target module. This may indicate evasion to mask/unmask the text section of beacon from a stomped module.
Query · eql
api where process.Ext.api.name == "VirtualProtect" and process.Ext.api.behaviors == "allocate_shellcode" and process.Ext.api.behaviors == "execute_fluctuation" and process.Ext.api.metadata.target_address_name : "*.dll" and process.Ext.api.parameters.size >= 150000 and stringcontains~(process.thread.Ext.call_stack_final_user_module.protection_provenance, process.Ext.api.metadata.target_address_name) and process.thread.Ext.call_stack_final_user_module.hash.sha256 != "528056732408c8dd2ef0cd585e719acdf1407326bfac4d9566d50dbb11ac2d1d"