Skip to content

Commit 62facaa

Browse files
committed
Create mal_perfctl_oct24.yar
1 parent b8b079a commit 62facaa

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

yara/mal_perfctl_oct24.yar

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
2+
rule MAL_EXPL_Perfctl_Oct24 {
3+
meta:
4+
description = "Detects exploits used in relation with Perfctl malware campaigns"
5+
author = "Florian Roth"
6+
reference = "https://www.aquasec.com/blog/perfctl-a-stealthy-malware-targeting-millions-of-linux-servers/"
7+
date = "2024-10-09"
8+
score = 80
9+
hash1 = "22e4a57ac560ebe1eff8957906589f4dd5934ee555ebcc0f7ba613b07fad2c13"
10+
strings:
11+
$s1 = "Exploit failed. Target is most likely patched." ascii fullword
12+
$s2 = "SHELL=pkexec" ascii fullword
13+
$s3 = "/dump_" ascii fullword
14+
$s4 = ".EYE$" ascii
15+
condition:
16+
uint16(0) == 0x457f
17+
and filesize < 30000KB
18+
and 2 of them
19+
or all of them
20+
}
21+
22+
rule MAL_LNX_Perfctl_Oct24 {
23+
meta:
24+
description = "Detects Perfctl malware samples"
25+
author = "Florian Roth"
26+
reference = "https://www.aquasec.com/blog/perfctl-a-stealthy-malware-targeting-millions-of-linux-servers/"
27+
date = "2024-10-09"
28+
score = 75
29+
hash1 = "a6d3c6b6359ae660d855f978057aab1115b418ed277bb9047cd488f9c7850747"
30+
hash2 = "ca3f246d635bfa560f6c839111be554a14735513e90b3e6784bedfe1930bdfd6"
31+
strings:
32+
$op1 = { 83 45 f8 01 8b 45 f8 48 3b 45 98 0f 82 1b ff ff ff 90 c9 c3 55 }
33+
$op2 = { 48 8b 55 a0 48 01 ca 0f b6 0a 48 8b 55 a8 89 c0 88 4c 02 18 8b 45 fc 83 e0 3f }
34+
$op3 = { 88 4c 10 58 83 45 f8 01 83 7d f8 03 0f 86 68 ff ff ff 90 c9 c3 55 }
35+
$op4 = { 48 83 ec 68 48 89 7d a8 48 89 75 a0 48 89 55 98 48 8b 45 a8 48 8b 00 83 e0 3f 89 45 fc }
36+
condition:
37+
uint16(0) == 0x457f
38+
and filesize < 300KB
39+
and 2 of them
40+
}

0 commit comments

Comments
 (0)