Skip to content

Commit e3c8052

Browse files
committed
2 parents f15e866 + 00aed1b commit e3c8052

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

yara/apt_cn_twisted_panda.yar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ rule APT_CN_TwistedPanda_loader {
3232
$seq3 = { 6A 00 6A 00 6A 03 6A 00 6A 03 68 00 00 00 80 }
3333
3434
// Decryption sequence
35-
$decryption = { 8B C? [2-3] F6 D? 1A C? [2-3] [2-3] 30 0? ?? 4? }
35+
$decryption = { 8B C? [2-3] F6 D? 1A C? [4-6] 30 0? ?? 4? }
3636
3737
condition:
3838
// MZ signature at offset 0 and ...

yara/apt_grizzlybear_uscert.yar

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1434,6 +1434,7 @@ rule IMPLANT_9_v1 {
14341434
author = "US CERT"
14351435
reference = "https://www.us-cert.gov/ncas/current-activity/2017/02/10/Enhanced-Analysis-GRIZZLY-STEPPE"
14361436
date = "2017-02-10"
1437+
modified = "2025-07-01"
14371438
score = 85
14381439
id = "5460ff29-681b-5d11-a6ba-5f294e8577e6"
14391440
strings:
@@ -1443,7 +1444,7 @@ rule IMPLANT_9_v1 {
14431444
$STR3 = { 8B 55 F8 8B C8 83 E1 03 8A 4C 11 08 8B 55 FC 32 0C 10 8B 17 88
14441445
4C 02 04 40 3B 06 72 E3 }
14451446
condition:
1446-
(uint16(0) == 0x5A4D or uint16(0)) and all of them
1447+
uint16(0) == 0x5A4D and all of them
14471448
}
14481449

14491450
/* TOO MANY FALSE POSITIVES

yara/apt_nk_andariel_jul24.yar

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ rule MAL_APT_NK_Andariel_HHSD_FileTransferTool {
9090
description = "Detects a variant of the HHSD File Transfer Tool"
9191
reference = "https://www.cisa.gov/news-events/cybersecurity-advisories/aa24-207a"
9292
date = "2024-07-25"
93+
modified = "2025-07-09"
9394
score = 70
9495
id = "46b6dbaf-1272-5bbd-a586-5e48ba6c5022"
9596
strings:
@@ -111,17 +112,17 @@ rule MAL_APT_NK_Andariel_HHSD_FileTransferTool {
111112
// 41 02 D0 add dl, r8b
112113
// 44 02 DA add r11b, dl
113114
// 3C 1F cmp al, 1Fh
114-
$buf_add_cmp_1f = { 4? 02 ?? 4? 02 ?? 3? 1F }
115+
// $buf_add_cmp_1f = { 4? 02 ?? 4? 02 ?? 3? 1F } removed due to 1 byte atom
115116
// B9 8D 10 B7 F8 mov ecx, 0F8B7108Dh
116117
// E8 F1 BA FF FF call sub_140001280
117118
$hash_call_loadlib = { B? 8D 10 B7 F8 E8 }
118119
$hash_call_unk = { B? 91 B8 F6 88 E8 }
119120
120121
condition:
121122
uint16(0) == 0x5a4d
122-
and 1 of ($handshake, $err_xor_str, $buf_add_cmp_1f)
123+
and 1 of ($handshake, $err_xor_str)
123124
and 1 of ($hash_call_*)
124-
or 2 of ($handshake, $err_xor_str, $buf_add_cmp_1f)
125+
or 2 of ($handshake, $err_xor_str)
125126
}
126127

127128
rule MAL_APT_NK_Andariel_Atharvan_3RAT {

yara/apt_winnti.yar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ rule APT_Winnti_MAL_Dec19_3 {
209209
score = 75
210210
id = "2e001c91-0794-5940-ad8c-8e58a01e100c"
211211
strings:
212-
$b1 = { 0F B7 ?? 16 [0-1] (81 E? | 25) 00 20 [0-2] [8] 8B ?? 50 41 B9 40 00 00 00 41 B8 00 10 00 00 }
212+
$b1 = { 0F B7 ?? 16 [0-1] (81 E? | 25) 00 20 [8-10] 8B ?? 50 41 B9 40 00 00 00 41 B8 00 10 00 00 }
213213
$b2 = { 8B 40 28 [5-8] 48 03 C8 48 8B C1 [5-8] 48 89 41 28 }
214214
$b3 = { 48 6B ?? 28 [5-8] 8B ?? ?? 10 [5-8] 48 6B ?? 28 [5-8] 8B ?? ?? 14 }
215215
$b4 = { 83 B? 90 00 00 00 00 0F 84 [9-12] 83 B? 94 00 00 00 00 0F 84 }

yara/gen_nighthawk_c2.yar

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ rule EXT_HKTL_Nighthawk_RAT
1111
hash3 = "38881b87826f184cc91559555a3456ecf00128e01986a9df36a72d60fb179ccf"
1212
hash4 = "f3bba2bfd4ed48b5426e36eba3b7613973226983a784d24d7a20fcf9df0de74e"
1313
hash5 = "b775a8f7629966592cc7727e2081924a7d7cf83edd7447aa60627a2b67d87c94"
14-
modified = "2022-11-30"
15-
date = "2022-11-22"
14+
modified = "2025-07-01"
15+
date = "2022-11-22"
1616

1717
id = "7a58b8bf-fb14-5758-bc2a-ad2c6fff1216"
1818
strings:
@@ -26,7 +26,7 @@ rule EXT_HKTL_Nighthawk_RAT
2626
condition:
2727
uint16(0) == 0x5A4D and filesize < 2MB and
2828
(3 of ($pattern*) or
29-
(pe.section_index(".profile") and pe.section_index(".detourc") and pe.section_index(".detourd")))
29+
(pe.section_index(".profile") >= 0 and pe.section_index(".detourc") >= 0 and pe.section_index(".detourd") >= 0))
3030
}
3131

3232
rule HKTL_MAL_Nighthawk_Nov_2022_1 : nighthawk beacon {

yara/thor-webshells.yar

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4741,6 +4741,7 @@ rule sql_php_php {
47414741
$s3 = "print \"<a href=\\\"$_SERVER[PHP_SELF]?s=$s&login=$login&passwd=$passwd&"
47424742
condition:
47434743
1 of them
4744+
and not uint32(0) == 0x6D783F3C /* <?xm */
47444745
}
47454746
rule cgi_python_py {
47464747
meta:

0 commit comments

Comments
 (0)