Saltar al contenido

YARA · CAPE Sandbox (CAPEv2)

CAPE_Stxrat

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
2026-04-11
Modificada
2026-04-14
Puntuación / Calidad
75 / 70

Qué detecta esta regla

No description has been set in the source file - CAPE

Objetivos: PE de Windows.

Define 8 patrones (1 de texto, 7 hex, 0 regex).

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

Código de la regla

stxrat.yarGNU General Public License v3.0
rule CAPE_Stxrat : FILE
{
	meta:
		description = "No description has been set in the source file - CAPE"
		author = "YungBinary"
		id = "9ce51412-52ce-5682-802d-fad96c053c30"
		date = "2026-04-11"
		modified = "2026-04-14"
		reference = "https://www.esentire.com/blog/stx-rat-a-new-rat-in-2026-with-infostealer-capabilities"
		source_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/STXRat.yar#L49-L120"
		license_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
		logic_hash = "f82b832e6bf936ff936332c059b1d3b981ce387bf82964ecf64a9cb12cda955d"
		score = 75
		quality = 70
		tags = "FILE"
		cape_type = "STXRat Payload"

	strings:
		$s1 = {
            8D 51 BF
            83 FA 19
            8D 41 20
            0F 47 C1
            C2 
        }
		$s2 = {
            48 8D 05 ?? ?? ?? ??
            66 C7 45 ?? 48 B8 [0-6]
            48 89 45 ??
            48 8D 55 ??
            66 C7 45 ?? FF E0
        }
		$s3 = {
            65 48 8B 04 25 60 00 00 00
            80 78 02 01
        }
		$s4 = "Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)" ascii
		$s5 = {
            B9 10 66 00 00 [0-3]
            0F 44 C1
            B9 0F 66 00 00
            41 81 ?? C0 00 00 00
            0F 44 C1
            B9 0E 66 00 00
        }
		$s6 = {
            48 83 FB 5A
            73 ??
            88 84 1C ?? ?? ?? ??
            48 FF C3
            48 FF C1
            8A 01
            84 C0
            75
        }
		$s7 = {
            83 61 18 00
            83 61 14 00
            C7 01 01 23 45 67
            C7 41 04 89 AB CD EF
            C7 41 08 FE DC BA 98
            C7 41 0C 76 54 32 10
            C7 41 10 F0 E1 D2 C3
            C3
        }
		$s8 = {
            80 61 1F 3F
            80 49 1F 40
            80 21 F8
        }

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

Cadenas (8 patrones)

IdentificadorTipoValorModificadores
$s1hex{ 8D 51 BF 83 FA 19 8D 41 20 0F 47 C1 C2 }
$s2hex{ 48 8D 05 ?? ?? ?? ?? 66 C7 45 ?? 48 B8 [0-6] 48 89 45 ?? 48 8D 55 ?? 66 C7 45 ?? FF E0 }
$s3hex{ 65 48 8B 04 25 60 00 00 00 80 78 02 01 }
$s4texto"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)"ascii
$s5hex{ B9 10 66 00 00 [0-3] 0F 44 C1 B9 0F 66 00 00 41 81 ?? C0 00 00 00 0F 44 C1 B9 0E 66 00 …
$s6hex{ 48 83 FB 5A 73 ?? 88 84 1C ?? ?? ?? ?? 48 FF C3 48 FF C1 8A 01 84 C0 …
$s7hex{ 83 61 18 00 83 61 14 00 C7 01 01 23 45 67 C7 41 04 89 AB CD EF C7 41 08 FE DC BA 98 C7 …
$s8hex{ 80 61 1F 3F 80 49 1F 40 80 21 F8 }

Condición

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

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir al menos 4 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: 9ce51412-52ce-5682-802d-fad96c053c30

Metadatos

cape_typeSTXRat Payload

Etiquetas:FILE