YARA · CAPE Sandbox (CAPEv2)
CAPE_Nightshadec2
NightshadeC2 AKA CastleRAT - https://x.com/YungBinary/status/1963751038340534482
- Auteur
- YungBinary
- Date
- 2025-09-04
- Modifiée
- 2025-09-12
- Score / Qualité
- 75 / 70
Ce que détecte cette règle
NightshadeC2 AKA CastleRAT - https://x.com/YungBinary/status/1963751038340534482
Famille de malware associée : Nightshade C2.
Cibles : PE Windows.
Elle définit 8 motifs (8 texte, 0 hex, 0 regex).
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
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
}
Chaînes (8 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $s1 | texte | "keylog.txt" | fullword wide |
| $s2 | texte | "\"%ws\" --mute-audio --do-not-de-elevate" | fullword wide |
| $s3 | texte | "\"%ws\" -no-deelevate" | fullword wide |
| $s4 | texte | "MachineGuid" | fullword wide |
| $s5 | texte | "www.ip-api.com" | fullword wide |
| $s6 | texte | "rundll32 \"C:\\Windows\\System32\\shell32.dll\" #61" | fullword wide |
| $s7 | texte | "IsabellaWine" | fullword wide |
| $s8 | texte | "Shell_TrayWnd" | fullword wide |
Condition
uint16( 0 ) == 0x5A4D and 3 of themEn clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Au moins 3 motifs de la règle doivent être trouvés.
Tester cette règle dans votre navigateur
Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.
Références
Hashes d’échantillons
Hashes des échantillons listés par l’auteur dans les métadonnées de la règle (à rechercher dans votre plateforme de threat intelligence).
- 963c012d56c62093d105ab5044517fdcce4ab826f7782b3e377932da1df6896d
Licence et attribution
Auteur : YungBinary
Dépôt source : CAPE Sandbox (CAPEv2) @ 6b15e76f28
Licence : GNU General Public License v3.0 (licence du dépôt)
Mention de copyright : Cuckoo Sandbox is copyrighted by the Cuckoo Foundation.
Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.
Identifiant de règle: d70f9051-c7ab-537a-ab80-03ae7ef80b81
Métadonnées
| cape_type | NightshadeC2 Payload |
|---|
Tags:FILE
Règles liées
- 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
- GénériqueCAPE Sandbox (CAPEv2)· YungBinary· 2026-04-11
- GénériqueCAPE Sandbox (CAPEv2)· YungBinary· 2025-10-24