Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Backdoor_Win_Minibike

Detect the MINIBIKE malware

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

Qué detecta esta regla

Detect the MINIBIKE malware

Familia de malware asociada: Minibike.

Objetivos: PE de Windows.

Define 1 patrones (1 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.

backdoor-win-minibike.yarDetection Rule License 1.1
import "pe"
import "hash"

rule SEKOIA_Backdoor_Win_Minibike : FILE
{
	meta:
		description = "Detect the MINIBIKE malware"
		author = "Sekoia.io"
		id = "d758c41a-279c-4706-9cf3-87740e45f71d"
		date = "2024-04-08"
		modified = "2024-12-19"
		reference = "https://www.mandiant.com/resources/blog/suspected-iranian-unc1549-targets-israel-middle-east"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/backdoor_win_minibike.yar#L4-L37"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "985967e245d8fbc722e30371c9ed48c3269ceaa6b9b9b80caf2b95c920c856c2"
		hash = "ab0b602665b609392eacdcbfc6c1981f216c19f21e2156a55cf9998eab02227b"
		hash = "8e2429d70989bbdd2ea8842dce7c3d790ebe148490ee519b47767557f4a4a733"
		hash = "be86b8559a84d97aa1cc9852e60a553f5164477bacfc69b7f3453ad37fb6fd2a"
		hash = "78065411e7e8eb205ddae7215a229b7c93bdca5d628670f89caa982238ac7eb6"
		hash = "73bf3a5877a7fe16544d15670e3ece034e4826323ba555b3527ad4d061f44ec4"
		logic_hash = "d09ab10aff629c6edafa7df640e98bcb6b2523a9bf4e2f2ca87f6694ccfe21bf"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "Mini-Junked.dll"

	condition:
		uint16( 0 ) == 0x5A4D and all of them or pe.imphash ( ) == "75a9ae7d4394abdc30e2a873908fa09d" or hash.md5 ( pe.rich_signature.clear_data ) == "06b2ec5892ac9ad566693b04cf427f3f" 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 ) == "612006b6f68cd0b8b0d48252dbdef4be" )
}

Cadenas (1 patrones)

IdentificadorTipoValorModificadores
$texto"Mini-Junked.dll"

Condición

uint16( 0 ) == 0x5A4D and all of them or pe.imphash ( ) == "75a9ae7d4394abdc30e2a873908fa09d" or hash.md5 ( pe.rich_signature.clear_data ) == "06b2ec5892ac9ad566693b04cf427f3f" 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 ) == "612006b6f68cd0b8b0d48252dbdef4be" )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir todos los patrones de la regla.
  • Un bucle for comprueba una propiedad sobre varias coincidencias o elementos.
  • Usa el módulo pe.
  • Usa el módulo hash.
  • Compara un hash del archivo o de una parte.
  • Comprueba el hash de importaciones PE (imphash).
  • 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

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

  • 985967e245d8fbc722e30371c9ed48c3269ceaa6b9b9b80caf2b95c920c856c2
  • ab0b602665b609392eacdcbfc6c1981f216c19f21e2156a55cf9998eab02227b
  • 8e2429d70989bbdd2ea8842dce7c3d790ebe148490ee519b47767557f4a4a733
  • be86b8559a84d97aa1cc9852e60a553f5164477bacfc69b7f3453ad37fb6fd2a
  • 78065411e7e8eb205ddae7215a229b7c93bdca5d628670f89caa982238ac7eb6
  • 73bf3a5877a7fe16544d15670e3ece034e4826323ba555b3527ad4d061f44ec4

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: d758c41a-279c-4706-9cf3-87740e45f71d

Metadatos

version1.0
classificationTLP:CLEAR

Etiquetas:FILE