Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Malware_Valleyrat_Strings_Config

ValleyRAT strings based on HIVE KEYS and config.

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compila con YARA-X
Autor
Sekoia.io
Fecha
2024-08-19
Modificada
2024-12-19
Puntuación / Calidad
75 / 80

Qué detecta esta regla

ValleyRAT strings based on HIVE KEYS and config.

Objetivos: PE de Windows.

Define 5 patrones (3 de texto, 2 hex, 0 regex).

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

Código de la regla

malware-valleyrat-strings-config.yarDetection Rule License 1.1
rule SEKOIA_Malware_Valleyrat_Strings_Config : FILE
{
	meta:
		description = "ValleyRAT strings based on HIVE KEYS and config. "
		author = "Sekoia.io"
		id = "bb186ab7-60cd-487e-8b9c-c2ff8f121454"
		date = "2024-08-19"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/malware_valleyrat_strings_config.yar#L1-L27"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "b1887a48e59ac7b1b1742854d2a228af"
		hash = "f6c69e83ce61aacacfbc410345008268"
		hash = "63ad42e03aca6ce447fb447e21aeb385"
		hash = "e1d41e5fdfebf8062911ef3c3853b807"
		hash = "e6cafb4136a9438227086a5826eafe10"
		hash = "54ba4bbeacd1521164a40e92262b15f6"
		logic_hash = "89a3d3ca32f9c57e932686f0ed03821350770f82e598948ed86414e231e27a30"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$key1 = "IpDateInfo" ascii fullword
		$key2 = "IpDate" ascii fullword
		$key3 = "SelfPath" ascii fullword
		$config1 = {7c 00 69 00 3a 00 }
		$config2 = {7c 00 70 00 3a 00 }

	condition:
		uint16be( 0 ) == 0x4d5a and 1 of ( $key* ) and $config2 in ( @config1 .. @config1 + 100 ) and filesize > 300KB and filesize < 100MB
}

Cadenas (5 patrones)

IdentificadorTipoValorModificadores
$key1texto"IpDateInfo"ascii fullword
$key2texto"IpDate"ascii fullword
$key3texto"SelfPath"ascii fullword
$config1hex{7c 00 69 00 3a 00 }
$config2hex{7c 00 70 00 3a 00 }

Condición

uint16be( 0 ) == 0x4d5a and 1 of ( $key* ) and $config2 in ( @config1 .. @config1 + 100 ) and filesize > 300KB and filesize < 100MB

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • El archivo debe ocupar menos de 100MB (un límite barato que descarta archivos grandes).
  • El archivo debe ocupar más de 300KB.
  • Deben coincidir al menos 1 patrones de ( $key* ).
  • El patrón $config2 debe estar en el rango @config1 .. @config1 + 100.

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

  • b1887a48e59ac7b1b1742854d2a228af
  • f6c69e83ce61aacacfbc410345008268
  • 63ad42e03aca6ce447fb447e21aeb385
  • e1d41e5fdfebf8062911ef3c3853b807
  • e6cafb4136a9438227086a5826eafe10
  • 54ba4bbeacd1521164a40e92262b15f6

Licencia y atribución

Autor: Sekoia.io

Repositorio de origen: SEKOIA.IO Community @ a438a5901a

Licencia: Detection Rule License 1.1 (licencia del repositorio)

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: bb186ab7-60cd-487e-8b9c-c2ff8f121454

Metadatos

version1.0
classificationTLP:CLEAR

Etiquetas:FILE