Windows Shortcut File Embedded Object Execution
Description
Identifies the execution of a script or program extracted from within a Windows shortcut (lnk) file. Adversaries may embed malicious scripts or files in a shortcut file before delivering it to their target in order to trick them into executing the payload.
Query · eql
sequence with maxspan=60s
[process where event.action == "start" and process.name : "cmd.exe" and
process.command_line :
("*find*.*.lnk*>*&*",
"*.lnk*find*>*&*",
"*dir*/s*/b*.lnk*",
"*dir*.lnk*/s*/b*",
"*for*/f*in*.lnk*",
"*LoadFromFile*.lnk*>*&*",
"*.lnk*do type*",
"*/s*/d*type*.lnk*",
"*.doc.lnk*",
"*.pdf.lnk*")
] by process.entity_id
[file where event.action != "deletion" and process.name : "cmd.exe"] by process.entity_id
[process where event.action == "start" and
not process.executable :
("?:\\Windows\\system32\\attrib.exe",
"?:\\Windows\\SysWOW64\\attrib.exe",
"?:\\Windows\\system32\\find.exe",
"?:\\Windows\\SysWOW64\\find.exe",
"?:\\Windows\\system32\\findstr.exe",
"?:\\Windows\\SysWOW64\\findstr.exe",
"?:\\Windows\\system32\\conhost.exe",
"?:\\Windows\\SysWOW64\\conhost.exe") and
not (process.name : "cmd.exe" and
process.command_line :
("*find*.*.lnk*>*",
"*.lnk*find*>*",
"*dir*/s*/b*.lnk*",
"*dir*.lnk*/s*/b*",
"*for*/f*in*.lnk*",
"*LoadFromFile*.lnk*",
"*.lnk*do type*",
"*/s*/d*type*.lnk*",
"*.doc.lnk*",
"*.pdf.lnk*"))
] by process.parent.entity_id