Skip to content

Commit 3743b26

Browse files
authored
Merge pull request kevoreilly#2723 from YungBinary/master
Add DarkCloud, ChaosBot yara rules
2 parents b7ede03 + d371f37 commit 3743b26

2 files changed

Lines changed: 63 additions & 0 deletions

File tree

data/yara/CAPE/ChaosBot.yar

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
rule ChaosBot
2+
{
3+
meta:
4+
author = "YungBinary"
5+
description = "https://x.com/YungBinary/status/1976580501508182269"
6+
cape_type = "ChaosBot Payload"
7+
strings:
8+
$s1 = { 48 6f 73 74 20 20 63 6f 6e 6e 65 63 74 65 64 2c 20 63 68 61 6e 6e 65 6c 20 63 72 65 61 74 65 64 3a 20 3c }
9+
$s2 = { 73 68 65 6c 6c 20 64 6f 77 6e 6c 6f 61 64 20 63 64 20 46 61 69 6c 65 64 20 74 6f 20 63 68 61 6e 67 65 20 64 69 72 65 63 74 6f 72 79 3a }
10+
$s3 = { 56 69 72 74 75 61 6c 50 72 6f 74 65 63 74 41 6d 73 69 53 63 61 6e 42 75 66 66 65 72 45 74 77 45 76 65 6e 74 57 72 69 74 65 43 4f 4d 50 55 54 45 52 4e 41 4d 45 }
11+
$s4 = { 43 3a 5c 55 73 65 72 73 5c 50 75 62 6c 69 63 5c 6d 65 73 73 61 67 65 5f 2e 74 78 74 }
12+
$bypass = {
13+
74 ??
14+
66 C7 03 31 C0
15+
C6 43 02 C3
16+
}
17+
$antivm = {
18+
48 ?? 30 30 3A 30 43 3A 32 39
19+
49 39 ?? 00
20+
}
21+
condition:
22+
uint16(0) == 0x5a4d and (1 of ($s*) or ($antivm and $bypass))
23+
24+
}

data/yara/CAPE/DarkCloud.yar

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
rule DarkCloud {
2+
meta:
3+
author = "YungBinary"
4+
description = "https://x.com/YungBinary/status/1971585972912689643"
5+
cape_type = "DarkCloud Payload"
6+
strings:
7+
$darkcloud1 = "===============DARKCLOUD===============" fullword wide
8+
$creds1 = "@GateUrl" wide
9+
$creds2 = "@StrFtpUser" wide
10+
$creds3 = "@StrFtpPass" wide
11+
$creds4 = "@StrFtpServer" wide
12+
$creds5 = "@StrReceiver" wide
13+
$creds6 = "@StrSmtpUser" wide
14+
$creds7 = "@StrSmtpPass" wide
15+
$sql1 = "SELECT item1 FROM metadata" wide
16+
$sql2 = "SELECT name_on_card, expiration_month, expiration_year, card_number_encrypted FROM credit_cards" wide
17+
$sql3 = "SELECT hostname, encryptedUsername, encryptedPassword FROM moz_logins" wide
18+
$sql4 = "SELECT address FROM ConversationRecipients" wide
19+
$sql5 = "SELECT address FROM ConversationSenders" wide
20+
$app1 = "Application : Pidgin" wide
21+
$app2 = "Application: CoreFTP" wide
22+
$app3 = "Application: WinSCP" wide
23+
$app4 = "Application: Outlook" wide
24+
$app5 = "Application : FileZilla" fullword wide
25+
$fingerprint1 = "Computer Name: " fullword wide
26+
$fingerprint2 = "OS FullName: " fullword wide
27+
$fingerprint3 = "CPU: " fullword wide
28+
$fingerprint4 = "SELECT * FROM Win32_Processor" fullword wide
29+
$fingerprint5 = "SELECT * FROM Win32_OperatingSystem" fullword wide
30+
condition:
31+
uint16(0) == 0x5a4d and
32+
(
33+
$darkcloud1 and 1 of ($creds*) or
34+
(3 of ($creds*) and 1 of ($sql*)) or
35+
(2 of ($sql*) and 2 of ($app*)) or
36+
(2 of ($creds*) and 2 of ($fingerprint*)) or
37+
(2 of ($app*) and 2 of ($fingerprint*) and 1 of ($sql*))
38+
)
39+
}

0 commit comments

Comments
 (0)