Repository navigation
Expand file tree
/
Copy pathrules.yar
More file actions
152 lines (139 loc) · 5.44 KB
/
Copy pathrules.yar
File metadata and controls
152 lines (139 loc) · 5.44 KB
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
rule apt_ico_uta0040_b64_c2 : UTA0040
{
meta:
author = "threatintel@volexity.com"
description = "Detection of malicious ICO files used in 3CX compromise."
date = "2023-03-30"
hash1 = "a541e5fc421c358e0a2b07bf4771e897fb5a617998aa4876e0e1baa5fbb8e25c"
memory_suitable = 0
license = "See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt"
strings:
$IEND_dollar = {49 45 4e 44 ae 42 60 82 24} // IEND.B`.$
$IEND_nodollar = {49 45 4e 44 ae 42 60 82 } // IEND.B`.
condition:
uint16be(0) == 0x0000 and
filesize < 120KB and
(
$IEND_dollar in (filesize-500..filesize) and not
$IEND_nodollar in (filesize-20..filesize) and
for any k in (1..#IEND_dollar):
(
for all i in (1..4):
(
// in range [0-9a-zA-Z]
uint8(@IEND_dollar[k]+!IEND_dollar[k] + i ) < 123 and
uint8(@IEND_dollar[k]+!IEND_dollar[k] + i) > 47
)
)
)
}
rule apt_mac_iconic: UTA0040
{
meta:
author = "threatintel@volexity.com"
date = "2023-03-30"
description = "Detects the MACOS version of the ICONIC loader."
hash1 = "a64fa9f1c76457ecc58402142a8728ce34ccba378c17318b3340083eeb7acc67"
reference = "https://www.reddit.com/r/crowdstrike/comments/125r3uu/20230329_situational_awareness_crowdstrike/"
memory_suitable = 1
license = "See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt"
strings:
$str1 = "3CX Desktop App" xor(0x01-0xff)
$str2 = "__tutma=" xor(0x01-0xff)
$str3 = "Mozilla/5.0" xor(0x01-0xff)
condition:
all of them
}
rule apt_win_iconicstealer: UTA0040
{
meta:
author = "threatintel@volexity.com"
date = "2023-03-30"
description = "Detect the ICONICSTEALER malware family."
hash1 = "8ab3a5eaaf8c296080fadf56b265194681d7da5da7c02562953a4cb60e147423"
reference = "https://www.reddit.com/r/crowdstrike/comments/125r3uu/20230329_situational_awareness_crowdstrike/"
memory_suitable = 1
license = "See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt"
strings:
$str1 = "\\3CXDesktopApp\\config.json" wide
$str2 = "url, title FROM urls" wide
$str3 = "url, title FROM moz_places" wide
condition:
all of them
}
rule apt_win_iconic: UTA0040
{
meta:
author = "threatintel@volexity.com"
date = "2023-03-30"
description = "Detect the ICONIC loader."
hash1 = "f79c3b0adb6ec7bcc8bc9ae955a1571aaed6755a28c8b17b1d7595ee86840952"
reference = "https://www.reddit.com/r/crowdstrike/comments/125r3uu/20230329_situational_awareness_crowdstrike/"
memory_suitable = 1
license = "See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt"
strings:
$internal_name = "samcli.dll"
$str1 = "gzip, deflate, br"
$str2 = "__tutma"
$str3 = "__tutmc"
$str4 = "ChainingModeGCM" wide
$str5 = "ChainingMode" wide
$str6 = "icon%d.ico" wide
condition:
all of them
}
rule apt_win_3cx_backdoored_lib: UTA0040
{
meta:
author = "threatintel@volexity.com"
date = "2023-03-30"
description = "Detects the malicious library delivered in the backdoored 3CX installer."
hash1 = "7986bbaee8940da11ce089383521ab420c443ab7b15ed42aed91fd31ce833896"
reference = "https://www.reddit.com/r/crowdstrike/comments/125r3uu/20230329_situational_awareness_crowdstrike/"
memory_suitable = 1
license = "See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt"
strings:
$shellcode = {
44 8D 4A ??
44 8D 92 ?? ?? ?? ??
45 85 C9
45 0F 49 D1
41 81 E2 00 FF FF FF
41 F7 DA
44 01 D2
FF C2
4C 63 CA
46 8A 94 0C ?? ?? ?? ??
45 00 D0
45 0F B6 D8
42 8A AC 1C ?? ?? ?? ??
46 88 94 1C ?? ?? ?? ??
42 88 AC 0C ?? ?? ?? ??
42 02 AC 1C ?? ?? ?? ??
44 0F B6 CD
46 8A 8C 0C ?? ?? ?? ??
45 30 0C 0E
48 FF C1
48 39 C8
75 ??
}
condition:
all of them
}
rule informational_win_3cx_msi : UTA0040
{
meta:
author = "threatintel@volexity.com"
date = "2023-03-30"
description = "Detects 3CX installers created in March 2023, 3CX was known to be compromised at this time."
hash1 = "aa124a4b4df12b34e74ee7f6c683b2ebec4ce9a8edcf9be345823b4fdcf5d868"
reference = "https://www.reddit.com/r/crowdstrike/comments/125r3uu/20230329_situational_awareness_crowdstrike/"
memory_suitable = 0
license = "See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt"
strings:
$cert = { 1B 66 11 DF 9C 9A 4D 6E CC 8E D5 0C 9B 91 78 73 }
$app = "3CXDesktopApp.exe"
$data = "202303"
condition:
all of them
}