Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Exmatter

Detects BlackMatter data exfiltration tool

MalwareExmatterditekSHen detectionBSD 2-Clause LicenseCompila con YARA-X
Autor
ditekSHen
Fecha
2020-11-06
Modificada
2024-11-01
Puntuación / Calidad
75 / 75

Qué detecta esta regla

Detects BlackMatter data exfiltration tool

Familia de malware asociada: Exmatter.

Objetivos: PE de Windows.

Define 13 patrones (12 de texto, 1 hex, 0 regex).

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

Código de la regla

malware-win-exmatter.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Exmatter : FILE
{
	meta:
		description = "Detects BlackMatter data exfiltration tool"
		author = "ditekSHen"
		id = "93df7a68-1e19-5db3-95d4-39d77d1036d8"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L8303-L8325"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		hash = "4a0e10e1e9fea0906379f99fa350b91c2af37f0fd2cc55491643cc71a9887d30"
		hash = "a5e050f1278473d41c3a3d6f98f3fd82932f51a937bc57d8f5605815f0efb0f8"
		logic_hash = "25a35c82919f96bdba00558616f574e901b83785713ed1a63a6f06df576777cd"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "Renci.SshNet." ascii
		$s2 = "DirNotEmpty" fullword ascii
		$s3 = "MkDir" fullword ascii
		$s4 = "RmDir" fullword ascii
		$s5 = "get_MainWindowHandle" fullword ascii
		$s6 = "GetCurrentProcess" fullword ascii
		$s7 = "]]>]]>" fullword wide
		$s8 = "1.3.132.0.35" fullword wide
		$s9 = "1.3.132.0.34" fullword wide
		$s10 = "1.2.840.10045.3.1.7" fullword wide
		$x1 = "sender2.pdb" fullword ascii
		$x2 = { 64 00 61 00 74 00 61 00 ?? 72 00 6f 00 6f 00 74 }
		$x3 = "157.230.28.192" fullword wide

	condition:
		uint16( 0 ) == 0x5a4d and ( all of ( $s* ) or ( 1 of ( $x* ) and 7 of ( $s* ) ) )
}

Cadenas (13 patrones)

IdentificadorTipoValorModificadores
$s1texto"Renci.SshNet."ascii
$s2texto"DirNotEmpty"fullword ascii
$s3texto"MkDir"fullword ascii
$s4texto"RmDir"fullword ascii
$s5texto"get_MainWindowHandle"fullword ascii
$s6texto"GetCurrentProcess"fullword ascii
$s7texto"]]>]]>"fullword wide
$s8texto"1.3.132.0.35"fullword wide
$s9texto"1.3.132.0.34"fullword wide
$s10texto"1.2.840.10045.3.1.7"fullword wide
$x1texto"sender2.pdb"fullword ascii
$x2hex{ 64 00 61 00 74 00 61 00 ?? 72 00 6f 00 6f 00 74 }
$x3texto"157.230.28.192"fullword wide

Condición

uint16( 0 ) == 0x5a4d and ( all of ( $s* ) or ( 1 of ( $x* ) and 7 of ( $s* ) ) )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir todos los patrones de ( $s* ).
  • Deben coincidir al menos 1 patrones de ( $x* ).
  • Deben coincidir al menos 7 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

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

  • 4a0e10e1e9fea0906379f99fa350b91c2af37f0fd2cc55491643cc71a9887d30
  • a5e050f1278473d41c3a3d6f98f3fd82932f51a937bc57d8f5605815f0efb0f8

Licencia y atribución

Autor: ditekSHen

Repositorio de origen: ditekSHen detection @ e76c93dcde

Licencia: BSD 2-Clause License (licencia del repositorio)

Aviso de copyright: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

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: 93df7a68-1e19-5db3-95d4-39d77d1036d8

Etiquetas:FILE