signature-base/yara/gen_mal_link.yar
2017-11-22 16:46:31 +01:00

22 lines
814 B
Plaintext

rule LNK_Malicious_Nov1 {
meta:
description = "Detects a malicious LNK file"
author = "Florian Roth"
reference = "https://www.virustotal.com/en/file/ee069edc46a18698fa99b6d2204895e6a516af1a306ea986a798b178f289ecd6/analysis/"
date = "2017-11-06"
score = 60
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
condition:
( uint32(0) == 0x0000004c and filesize < 4KB and $c1 and 1 of ($s*) )
}