Sneed-Reactivity/yara-Neo23x0/gen_sfx_with_microsoft_copyright.yar

51 lines
2.2 KiB
Text
Raw Normal View History

rule SUSP_Microsoft_7z_SFX_Combo {
meta:
description = "Detects a suspicious file that has a Microsoft copyright and is a 7z SFX"
author = "Florian Roth (Nextron Systems)"
reference = "Internal Research"
date = "2018-09-16"
hash1 = "cce63f209ee4efb4f0419fb4bbb32326392b5ef85cfba80b5b42b861637f1ff1"
id = "9163a689-c3ee-59b1-bf58-aef5d3072be6"
strings:
$s1 = "7ZSfx%03x.cmd" fullword wide
$s2 = "7z SFX: error" fullword ascii
/* PE Header : LegalCopyright (C) Microsoft Corporation. All rights reserved.*/
$c1 = { 00 4C 00 65 00 67 00 61 00 6C 00 43 00 6F 00 70
00 79 00 72 00 69 00 67 00 68 00 74 00 00 00 A9
00 20 00 4D 00 69 00 63 00 72 00 6F 00 73 00 6F
00 66 00 74 00 20 00 43 00 6F 00 72 00 70 00 6F
00 72 00 61 00 74 00 69 00 6F 00 6E 00 2E 00 20
00 41 00 6C 00 6C 00 20 00 72 00 69 00 67 00 68
00 74 00 73 00 20 00 72 00 65 00 73 00 65 00 72
00 76 00 65 00 64 00 2E }
condition:
uint16(0) == 0x5a4d and filesize < 3000KB and 1 of ($s*) and $c1
}
rule SUSP_Microsoft_RAR_SFX_Combo {
meta:
description = "Detects a suspicious file that has a Microsoft copyright and is a RAR SFX"
author = "Florian Roth (Nextron Systems)"
reference = "Internal Research"
date = "2018-09-16"
id = "0fa81a9e-2f41-5783-9786-bb6d33b82bd9"
strings:
$s1 = "winrarsfxmappingfile.tmp" fullword wide
$s2 = "WinRAR self-extracting archive" fullword wide
$s3 = "WINRAR.SFX" fullword
/* PE Header : LegalCopyright (C) Microsoft Corporation. All rights reserved.*/
$c1 = { 00 4C 00 65 00 67 00 61 00 6C 00 43 00 6F 00 70
00 79 00 72 00 69 00 67 00 68 00 74 00 00 00 A9
00 20 00 4D 00 69 00 63 00 72 00 6F 00 73 00 6F
00 66 00 74 00 20 00 43 00 6F 00 72 00 70 00 6F
00 72 00 61 00 74 00 69 00 6F 00 6E 00 2E 00 20
00 41 00 6C 00 6C 00 20 00 72 00 69 00 67 00 68
00 74 00 73 00 20 00 72 00 65 00 73 00 65 00 72
00 76 00 65 00 64 00 2E }
condition:
uint16(0) == 0x5a4d and filesize < 3000KB and 1 of ($s*) and $c1
}