LNK_Malicious_Nov1
Description
Detects a suspicious LNK file
Query · yara
strings:
$c1 = "C:\\Windows\\System32\\cmd.exe" ascii wide
$s1 = "cmd.exe /" ascii wide nocase
$s2 = { 00 25 00 53 00 79 00 73 00 74 00 65 00 6D 00 52
00 6F 00 6F 00 74 00 25 00 5C 00 53 00 79 00 73
00 74 00 65 00 6D 00 33 00 32 00 EF 01 2F 00 43
00 20 00 22 00 63 00 6D 00 64 00 2E 00 65 00 78
00 65 }
$s3 = "%comspec%" ascii wide nocase fullword
$fp1 = "Microsoft Visual" ascii wide
condition:
( uint32(0) == 0x0000004c and filesize < 4KB and $c1 and 1 of ($s*) )
and not 1 of ($fp*)