-
Notifications
You must be signed in to change notification settings - Fork 13
/
APT29.yara
53 lines (40 loc) · 1.79 KB
/
APT29.yara
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
rule detect_apt_APT29: APT29
{
meta:
description = "detect_APT32_malware"
author = "@malgamy12"
date = "2022-11-6"
license = "DRL 1.1"
hash_sample1 = "93054d3abc36019ccfe88f87363363e6ca9b77f4"
hash_sample2 = "0eadbd6ef9f5930257530ac5a3b8abb49c9755d1"
hash_sample3 = "69c2d292179dc615bfe4d7f880b5f9928604558e"
hash_sample4 = "616306489de4029da7271eadbdf090cee22ae1af"
hash_sample5 = "ecb8edfddd812a125b515dc42a2e93569c1caed9"
hash_sample6 = "a86f3faf1eedb7325023616adf37a62c9129c24e"
hash_sample7 = "4d22b2d85b75ccf651f0ba85808482660a440bff"
hash_sample8 = "3463df6b33b26c1249207f6e004c0bbc31b31152"
hash_sample9 = "ca4c53eb86d5b920b321de573e212e31405707d5"
hash_sample10 = "a48e4dd017618ae2d46a753345594a5f57fbe869"
strings:
$pdb = "5\\bin\\bot.pdb" ascii
$s1 = "pipe\\40DC244D-F62E-093E-8A91-736FF2FA2AA2" wide
$s2 = "LoginName" ascii
$s3 = "select id, hostname, usernamefield, passwordfield, encryptedusern" wide
$s4 = "*temporary;*Cookies;*games;*system32;*program files;*\\windows\\;*\\System Volume Information" wide
$s5 = "msicheck.cmd" ascii
$s6 = "AppData\\Roaming\\Miranda" wide
$s7 = "Local Settings\\Application Data" wide
/*
imul ebx, esi
imul esi, 0BC8Fh
mov eax, edx
and eax, 3
lea eax, [ebp+eax*4+var_3C]
xor [eax], ebx
inc edx
dec [ebp+var_8]
*/
$chunk_1 = {0F AF DE 69 F6 ?? ?? ?? ?? 8B C2 83 E0 ?? 8D 44 85 ?? 31 18 42 FF 4D ??}
condition:
uint16(0) == 0x5A4D and filesize > 70KB and ($pdb or (4 of ($s*) and $chunk_1 ))
}