YARA · CAPE Sandbox (CAPEv2)
CAPE_Nightshadec2
NightshadeC2 AKA CastleRAT - https://x.com/YungBinary/status/1963751038340534482
- Autor
- YungBinary
- Datum
- 2025-09-04
- Geändert
- 2025-09-12
- Score / Qualität
- 75 / 70
Was diese Regel erkennt
NightshadeC2 AKA CastleRAT - https://x.com/YungBinary/status/1963751038340534482
Zugehörige Malware-Familie: Nightshade C2.
Ziele: Windows-PE.
Sie definiert 8 Muster (8 Text, 0 Hex, 0 Regex).
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
rule CAPE_Nightshadec2 : FILE
{
meta:
= "NightshadeC2 AKA CastleRAT - https://x.com/YungBinary/status/1963751038340534482"
= "YungBinary"
= "d70f9051-c7ab-537a-ab80-03ae7ef80b81"
= "2025-09-04"
= "2025-09-12"
= "https://github.com/kevoreilly/CAPEv2"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/NightshadeC2.yar#L1-L20"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
= "963c012d56c62093d105ab5044517fdcce4ab826f7782b3e377932da1df6896d"
= "f9fabc391e21180a1c92abea0a5ded6d7669e8d8f2330b69d6c1227c9b4237a0"
= 75
= 70
= "FILE"
= "NightshadeC2 Payload"
strings:
$s1 = "keylog.txt" fullword wide
$s2 = "\"%ws\" --mute-audio --do-not-de-elevate" fullword wide
$s3 = "\"%ws\" -no-deelevate" fullword wide
$s4 = "MachineGuid" fullword wide
$s5 = "www.ip-api.com" fullword wide
$s6 = "rundll32 \"C:\\Windows\\System32\\shell32.dll\" #61" fullword wide
$s7 = "IsabellaWine" fullword wide
$s8 = "Shell_TrayWnd" fullword wide
condition:
uint16( 0 ) == 0x5A4D and 3 of them
}
Strings (8 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $s1 | Text | "keylog.txt" | fullword wide |
| $s2 | Text | "\"%ws\" --mute-audio --do-not-de-elevate" | fullword wide |
| $s3 | Text | "\"%ws\" -no-deelevate" | fullword wide |
| $s4 | Text | "MachineGuid" | fullword wide |
| $s5 | Text | "www.ip-api.com" | fullword wide |
| $s6 | Text | "rundll32 \"C:\\Windows\\System32\\shell32.dll\" #61" | fullword wide |
| $s7 | Text | "IsabellaWine" | fullword wide |
| $s8 | Text | "Shell_TrayWnd" | fullword wide |
Bedingung
uint16( 0 ) == 0x5A4D and 3 of themIn Worten (Heuristik)
- Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
- Mindestens 3 Muster aus der Regel müssen treffen.
Diese Regel im Browser testen
Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.
Referenzen
Proben-Hashes
Hashes der Proben, die der Autor in den Metadaten der Regel nennt (in Ihrer Threat-Intelligence-Plattform nachschlagen).
- 963c012d56c62093d105ab5044517fdcce4ab826f7782b3e377932da1df6896d
Lizenz & Namensnennung
Autor: YungBinary
Quell-Repository: CAPE Sandbox (CAPEv2) @ 6b15e76f28
Lizenz: GNU General Public License v3.0 (Repository-Lizenz)
Copyright-Hinweis: Cuckoo Sandbox is copyrighted by the Cuckoo Foundation.
Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.
Regel-ID: d70f9051-c7ab-537a-ab80-03ae7ef80b81
Metadaten
| cape_type | NightshadeC2 Payload |
|---|
Tags:FILE
Verwandte Regeln
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareCAPE Sandbox (CAPEv2)· YungBinary· 2024-10-25
- MalwareCAPE Sandbox (CAPEv2)· YungBinary· 2025-10-17
- GenerischCAPE Sandbox (CAPEv2)· YungBinary· 2026-04-11
- GenerischCAPE Sandbox (CAPEv2)· YungBinary· 2025-10-24