-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAPT_Passcv.yar
186 lines (153 loc) · 6.35 KB
/
APT_Passcv.yar
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
/*
This Yara ruleset is under the GNU-GPLv2 license (http://www.gnu.org/licenses/gpl-2.0.html) and open to any user or organization, as long as you use it under this license.
*/
rule PassCV_Sabre_Malware_1
{
meta:
description = "PassCV Malware mentioned in Cylance Report"
author = "Florian Roth"
reference = "https://blog.cylance.com/digitally-signed-malware-targeting-gaming-companies"
date = "2016-10-20"
hash1 = "24a9bfbff81615a42e42755711c8d04f359f3bf815fb338022edca860ff1908a"
hash2 = "e61e56b8f2666b9e605127b4fcc7dc23871c1ae25aa0a4ea23b48c9de35d5f55"
strings:
$x1 = "F:\\Excalibur\\Excalibur\\Excalibur\\" ascii
$x2 = "bin\\oSaberSvc.pdb" ascii
$s1 = "cmd.exe /c MD " fullword ascii
$s2 = "https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=0&rsv_idx=1&tn=baidu&wd=ip138" fullword wide
$s3 = "CloudRun.exe" fullword wide
$s4 = "SaberSvcB.exe" fullword wide
$s5 = "SaberSvc.exe" fullword wide
$s6 = "SaberSvcW.exe" fullword wide
$s7 = "tianshiyed@iaomaomark1#23mark123tokenmarkqwebjiuga664115" fullword wide
$s8 = "Internet Connect Failed!" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 1000KB and ( 1 of ($x*) and 5 of ($s*) ) ) or ( all of them )
}
rule PassCV_Sabre_Malware_Signing_Cert
{
meta:
description = "PassCV Malware mentioned in Cylance Report"
author = "Florian Roth"
reference = "https://blog.cylance.com/digitally-signed-malware-targeting-gaming-companies"
date = "2016-10-20"
score = 50
hash1 = "7c32885c258a6d5be37ebe83643f00165da3ebf963471503909781540204752e"
strings:
$s1 = "WOODTALE TECHNOLOGY INC" ascii
$s2 = "Flyingbird Technology Limited" ascii
$s3 = "Neoact Co., Ltd." ascii
$s4 = "AmazGame Age Internet Technology Co., Ltd" ascii
$s5 = "EMG Technology Limited" ascii
$s6 = "Zemi Interactive Co., Ltd" ascii
$s7 = "337 Technology Limited" ascii
$s8 = "Runewaker Entertainment0" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 3000KB and 1 of them )
}
rule PassCV_Sabre_Malware_2
{
meta:
description = "PassCV Malware mentioned in Cylance Report"
author = "Florian Roth"
reference = "https://blog.cylance.com/digitally-signed-malware-targeting-gaming-companies"
date = "2016-10-20"
hash1 = "475d1c2d36b2cf28b28b202ada78168e7482a98b42ff980bbb2f65c6483db5b4"
hash2 = "009645c628e719fad2e280ef60bbd8e49bf057196ac09b3f70065f1ad2df9b78"
hash3 = "92479c7503393fc4b8dd7c5cd1d3479a182abca3cda21943279c68a8eef9c64b"
hash4 = "0c7b952c64db7add5b8b50b1199fc7d82e9b6ac07193d9ec30e5b8d353b1f6d2"
strings:
$x1 = "ncProxyXll" fullword ascii
$s1 = "Uniscribe.dll" fullword ascii
$s2 = "WS2_32.dll" ascii
$s3 = "ProxyDll" fullword ascii
$s4 = "JDNSAPI.dll" fullword ascii
$s5 = "x64.dat" fullword ascii
$s6 = "LSpyb2" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 4000KB and $x1 ) or ( all of them )
}
rule PassCV_Sabre_Malware_Excalibur_1
{
meta:
description = "PassCV Malware mentioned in Cylance Report"
author = "Florian Roth"
reference = "https://blog.cylance.com/digitally-signed-malware-targeting-gaming-companies"
date = "2016-10-20"
hash1 = "21566f5ff7d46cc9256dae8bc7e4c57f2b9261f95f6ad2ac921558582ea50dfb"
hash2 = "02922c5d994e81629d650be2a00507ec5ca221a501fe3827b5ed03b4d9f4fb70"
strings:
$x1 = "F:\\Excalibur\\Excalibur\\" ascii
$x2 = "Excalibur\\bin\\Shell.pdb" ascii
$x3 = "SaberSvc.exe" wide
$s1 = "BBB.exe" fullword wide
$s2 = "AAA.exe" fullword wide
condition:
( uint16(0) == 0x5a4d and filesize < 2000KB and 1 of ($x*) or all of ($s*) ) or 3 of them
}
rule PassCV_Sabre_Malware_3
{
meta:
description = "PassCV Malware mentioned in Cylance Report"
author = "Florian Roth"
reference = "https://blog.cylance.com/digitally-signed-malware-targeting-gaming-companies"
date = "2016-10-20"
hash1 = "28c7575b2368a9b58d0d1bf22257c4811bd3c212bd606afc7e65904041c29ce1"
strings:
$x1 = "NXKILL" fullword wide
$s1 = "2OLE32.DLL" fullword ascii
$s2 = "localspn.dll" fullword wide
$s3 = "!This is a Win32 program." fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 8000KB and $x1 and 2 of ($s*) )
}
rule PassCV_Sabre_Malware_4
{
meta:
description = "PassCV Malware mentioned in Cylance Report"
author = "Florian Roth"
reference = "https://blog.cylance.com/digitally-signed-malware-targeting-gaming-companies"
date = "2016-10-20"
hash1 = "27463bcb4301f0fdd95bc10bf67f9049e161a4e51425dac87949387c54c9167f"
strings:
$s1 = "QWNjZXB0On" fullword ascii /* base64 encoded string 'Accept:' */
$s2 = "VXNlci1BZ2VudDogT" fullword ascii /* b64: User-Agent: */
$s3 = "dGFzay5kbnME3luLmN" fullword ascii /* b64: task.dns[ */
condition:
( uint16(0) == 0x5a4d and filesize < 200KB and 2 of them )
}
rule PassCV_Sabre_Tool_NTScan
{
meta:
description = "PassCV Malware mentioned in Cylance Report"
author = "Florian Roth"
reference = "https://blog.cylance.com/digitally-signed-malware-targeting-gaming-companies"
date = "2016-10-20"
hash1 = "0f290612b26349a551a148304a0bd3b0d0651e9563425d7c362f30bd492d8665"
strings:
$x1 = "NTscan.EXE" fullword wide
$x2 = "NTscan Microsoft " fullword wide
$s1 = "admin$" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 300KB and 2 of them )
}
rule PassCV_Sabre_Malware_5
{
meta:
description = "PassCV Malware mentioned in Cylance Report"
author = "Florian Roth"
reference = "https://blog.cylance.com/digitally-signed-malware-targeting-gaming-companies"
date = "2016-10-20"
hash1 = "03aafc5f468a84f7dd7d7d38f91ff17ef1ca044e5f5e8bbdfe589f5509b46ae5"
strings:
$x1 = "ncircTMPg" fullword ascii
$x2 = "~SHELL#" fullword ascii
$x3 = "N.adobe.xm" fullword ascii
$s1 = "NEL32.DLL" fullword ascii
$s2 = "BitLocker.exe" fullword wide
$s3 = "|xtplhd" fullword ascii /* reversed goodware string 'dhlptx|' */
$s4 = "SERVICECORE" fullword wide
$s5 = "SHARECONTROL" fullword wide
condition:
( uint16(0) == 0x5a4d and filesize < 4000KB and 1 of ($x*) or all of ($s*) )
}