Execution of a downloaded executable with low or unknown reputation
Description
Identifies Windows executable files that have been recently downloaded and have an unknown or malicious reputation. Attackers may rely upon a user downloading and opening a file in order for their malicious code to execute and gain initial access to an endpoint. Users may be subjected to social engineering to get them to open a file that will lead to code execution.
Query · eql
sequence with maxspan=5m
[file where event.action == "creation" and file.Ext.windows.zone_identifier >= 3 and
file.origin_url regex~ """https?:[\/\\]{2}[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}[\/\\]{1}.*"""] as event0
[process where event.action == "start" and
(process.code_signature.trusted == false or process.code_signature.exists == false) and
not process.code_signature.status like "errorCode_endpoint*" and startswith~(event0.file.name, process.name)]