Saltar al contenido

YARA · CAPE Sandbox (CAPEv2)

CAPE_Mykings

No description has been set in the source file - CAPE

GenéricaCAPE Sandbox (CAPEv2)GNU General Public License v3.0Compila con YARA-X
Autor
YungBinary
Fecha
2025-10-24
Modificada
2025-10-26
Puntuación / Calidad
75 / 70

Qué detecta esta regla

No description has been set in the source file - CAPE

Objetivos: PE de Windows.

Define 13 patrones (10 de texto, 3 hex, 0 regex).

Resumen generado a partir de los metadatos y la condición de la regla.

Código de la regla

mykings.yarGNU General Public License v3.0
rule CAPE_Mykings : FILE
{
	meta:
		description = "No description has been set in the source file - CAPE"
		author = "YungBinary"
		id = "c9d7b061-b76c-595c-a362-6c89c96093d9"
		date = "2025-10-24"
		modified = "2025-10-26"
		reference = "https://x.com/YungBinary/status/1981108948498333900"
		source_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/MyKings.yar#L1-L23"
		license_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
		logic_hash = "82647dd23c0247faa045893ec1cf111da2a30528a1b737b59ce1b71172a64473"
		score = 75
		quality = 70
		tags = "FILE"
		cape_type = "MyKings Payload"

	strings:
		$s1 = "login.php?uid=0" wide
		$s2 = "download.txt?rnd=" wide
		$s3 = "AcceptOK" ascii
		$s4 = "winsta0\\default" wide
		$s5 = "base64_ip.txt" wide
		$s6 = { 70 00 6F 00 77 00 65 00 72 00 74 00 6F 00 6F 00 6C 00 00 00 6B 00 61 00 73 00 70 00 65 00 72 00 73 00 6B 00 79 }
		$s7 = { 53 00 61 00 66 00 65 00 00 00 00 00 45 00 73 00 65 00 74 }
		$s8 = { 4E 00 6F 00 64 00 33 00 32 00 00 00 4D 00 61 00 6C 00 77 00 61 00 72 00 65 }
		$s9 = "Custom C++ HTTP Client/1.0" wide
		$s10 = "/ru \"SYSTEM\" /f" ascii
		$s11 = "cmd.exe /C timeout /t 1 & del " wide
		$s12 = "/login.aspx?uid=0" wide
		$s13 = "cmd-230812.ru" base64

	condition:
		uint16( 0 ) == 0x5a4d and ( 3 of ( $s* ) )
}

Cadenas (13 patrones)

IdentificadorTipoValorModificadores
$s1texto"login.php?uid=0"wide
$s2texto"download.txt?rnd="wide
$s3texto"AcceptOK"ascii
$s4texto"winsta0\\default"wide
$s5texto"base64_ip.txt"wide
$s6hex{ 70 00 6F 00 77 00 65 00 72 00 74 00 6F 00 6F 00 6C 00 00 00 6B 00 61 00 73 00 70 00 65 00 72 00 73 00 6B 00 79 }
$s7hex{ 53 00 61 00 66 00 65 00 00 00 00 00 45 00 73 00 65 00 74 }
$s8hex{ 4E 00 6F 00 64 00 33 00 32 00 00 00 4D 00 61 00 6C 00 77 00 61 00 72 00 65 }
$s9texto"Custom C++ HTTP Client/1.0"wide
$s10texto"/ru \"SYSTEM\" /f"ascii
$s11texto"cmd.exe /C timeout /t 1 & del "wide
$s12texto"/login.aspx?uid=0"wide
$s13texto"cmd-230812.ru"base64

Condición

uint16( 0 ) == 0x5a4d and ( 3 of ( $s* ) )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir al menos 3 patrones de ( $s* ).

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

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: c9d7b061-b76c-595c-a362-6c89c96093d9

Metadatos

cape_typeMyKings Payload

Etiquetas:FILE