Saltar al contenido

YARA · CAPE Sandbox (CAPEv2)

CAPE_Nightshadec2

NightshadeC2 AKA CastleRAT - https://x.com/YungBinary/status/1963751038340534482

MalwareNightshade C2CAPE Sandbox (CAPEv2)GNU General Public License v3.0Compila con YARA-X
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

nightshadec2.yarGNU General Public License v3.0
rule CAPE_Nightshadec2 : FILE
{
	meta:
		description = "NightshadeC2 AKA CastleRAT - https://x.com/YungBinary/status/1963751038340534482"
		author = "YungBinary"
		id = "d70f9051-c7ab-537a-ab80-03ae7ef80b81"
		date = "2025-09-04"
		modified = "2025-09-12"
		reference = "https://github.com/kevoreilly/CAPEv2"
		source_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/NightshadeC2.yar#L1-L20"
		license_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
		hash = "963c012d56c62093d105ab5044517fdcce4ab826f7782b3e377932da1df6896d"
		logic_hash = "f9fabc391e21180a1c92abea0a5ded6d7669e8d8f2330b69d6c1227c9b4237a0"
		score = 75
		quality = 70
		tags = "FILE"
		cape_type = "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)

IdentificadorTipoValorModificadores
$s1texto"keylog.txt"fullword wide
$s2texto"\"%ws\" --mute-audio --do-not-de-elevate"fullword wide
$s3texto"\"%ws\" -no-deelevate"fullword wide
$s4texto"MachineGuid"fullword wide
$s5texto"www.ip-api.com"fullword wide
$s6texto"rundll32 \"C:\\Windows\\System32\\shell32.dll\" #61"fullword wide
$s7texto"IsabellaWine"fullword wide
$s8texto"Shell_TrayWnd"fullword wide

Condición

uint16( 0 ) == 0x5A4D and 3 of them

En 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.

Arrastra un archivo aquí o haz clic para elegirSe escanea en local con YARA-X. Archivos de hasta 200 MB.

Abrir en el editor

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.

Regla original

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_typeNightshadeC2 Payload

Etiquetas:FILE