YARA · CAPE Sandbox (CAPEv2)
CAPE_Nightshadec2
NightshadeC2 AKA CastleRAT - https://x.com/YungBinary/status/1963751038340534482
- Autor
- YungBinary
- Fecha
- 2025-09-04
- Modificada
- 2025-09-12
- Puntuación / Calidad
- 75 / 70
Qué detecta esta regla
NightshadeC2 AKA CastleRAT - https://x.com/YungBinary/status/1963751038340534482
Familia de malware asociada: Nightshade C2.
Objetivos: PE de Windows.
Define 8 patrones (8 de texto, 0 hex, 0 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
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
}
Cadenas (8 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "keylog.txt" | fullword wide |
| $s2 | texto | "\"%ws\" --mute-audio --do-not-de-elevate" | fullword wide |
| $s3 | texto | "\"%ws\" -no-deelevate" | fullword wide |
| $s4 | texto | "MachineGuid" | fullword wide |
| $s5 | texto | "www.ip-api.com" | fullword wide |
| $s6 | texto | "rundll32 \"C:\\Windows\\System32\\shell32.dll\" #61" | fullword wide |
| $s7 | texto | "IsabellaWine" | fullword wide |
| $s8 | texto | "Shell_TrayWnd" | fullword wide |
Condición
uint16( 0 ) == 0x5A4D and 3 of themEn palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 3 patrones de la regla.
Prueba esta regla en tu navegador
Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.
Referencias
Hashes de muestras
Hashes de las muestras que el autor lista en los metadatos de la regla (búscalos en tu plataforma de threat intelligence).
- 963c012d56c62093d105ab5044517fdcce4ab826f7782b3e377932da1df6896d
Licencia y atribución
Autor: YungBinary
Repositorio de origen: CAPE Sandbox (CAPEv2) @ 6b15e76f28
Licencia: GNU General Public License v3.0 (licencia del repositorio)
Aviso de copyright: Cuckoo Sandbox is copyrighted by the Cuckoo Foundation.
Obtenida a través de YARA Forge 20260927, que añade a los nombres el prefijo de la fuente y campos meta normalizados.
Id de la regla: d70f9051-c7ab-537a-ab80-03ae7ef80b81
Metadatos
| cape_type | NightshadeC2 Payload |
|---|
Etiquetas:FILE
Reglas relacionadas
- 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
- GenéricaCAPE Sandbox (CAPEv2)· YungBinary· 2026-04-11
- GenéricaCAPE Sandbox (CAPEv2)· YungBinary· 2025-10-24