Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Launcher_Win_Mistcloak

Detect the MISTCLOAK malware

MalwareMistcloakSEKOIA.IO CommunityDetection Rule License 1.1Compila con YARA-X (con avisos)
Autor
Sekoia.io
Fecha
2022-12-01
Modificada
2024-12-19
Puntuación / Calidad
75 / 80

Qué detecta esta regla

Detect the MISTCLOAK malware

Familia de malware asociada: Mistcloak.

Objetivos: PE de Windows.

Define 5 patrones (5 de texto, 0 hex, 0 regex). Módulos YARA usados: pe, hash.

YARA-X dice: warning[deprecated_field]: field `number_of_sections` is deprecated

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

Código de la regla

Incluye los imports necesarios para compilarla por sí sola.

launcher-win-mistcloak.yarDetection Rule License 1.1
import "pe"
import "hash"

rule SEKOIA_Launcher_Win_Mistcloak : FILE
{
	meta:
		description = "Detect the MISTCLOAK malware"
		author = "Sekoia.io"
		id = "3dbf5efa-d77c-436a-a080-9ac58a78425f"
		date = "2022-12-01"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/launcher_win_mistcloak.yar#L4-L33"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "fc2731ec4e2917be1ad169908ed324931a93f6998aee606319750b5cc02715e2"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "\\usb.ini"
		$ = "autorun.inf\\Protection for Autorun\\System Volume Information"
		$ = "G:\\project\\APT\\U"
		$ = "\\new\\u2ec\\Release\\u2ec.pdb"
		$ = "CheckUsbService"

	condition:
		uint16( 0 ) == 0x5A4D and 3 of them or hash.md5 ( pe.rich_signature.clear_data ) == "0f5082fd7ddd1950fa332a8fa4df052f" or for any i in ( 0 .. pe.number_of_sections -1 ) : ( hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "0ceac625db1e8405efe45d47486e9e2d" or hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "6968e6ac7b9c1dfbf40a0b3c4f6f4157" or hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "e6ed2da41f74e948cba7a002c41c6af5" )
}

Cadenas (5 patrones)

IdentificadorTipoValorModificadores
$texto"\\usb.ini"
$texto"autorun.inf\\Protection for Autorun\\System Volume Information"
$texto"G:\\project\\APT\\U"
$texto"\\new\\u2ec\\Release\\u2ec.pdb"
$texto"CheckUsbService"

Condición

uint16( 0 ) == 0x5A4D and 3 of them or hash.md5 ( pe.rich_signature.clear_data ) == "0f5082fd7ddd1950fa332a8fa4df052f" or for any i in ( 0 .. pe.number_of_sections -1 ) : ( hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "0ceac625db1e8405efe45d47486e9e2d" or hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "6968e6ac7b9c1dfbf40a0b3c4f6f4157" or hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "e6ed2da41f74e948cba7a002c41c6af5" )

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.
  • Un bucle for comprueba una propiedad sobre varias coincidencias o elementos.
  • Usa el módulo hash.
  • Usa el módulo pe.
  • Compara un hash del archivo o de una parte.
  • Comprueba secciones PE (nombres, número o propiedades).

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: 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: 3dbf5efa-d77c-436a-a080-9ac58a78425f

Metadatos

version1.0
classificationTLP:CLEAR

Etiquetas:FILE