Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Solarmarker_Dll

Finds SolarMarker DLL based on characteristic strings

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

Qué detecta esta regla

Finds SolarMarker DLL based on characteristic strings

Familia de malware asociada: Solarmarker.

Objetivos: PE de Windows.

Define 11 patrones (11 de texto, 0 hex, 0 regex).

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

Código de la regla

infostealer-win-solarmarker-dll.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Solarmarker_Dll : FILE
{
	meta:
		description = "Finds SolarMarker DLL based on characteristic strings"
		author = "Sekoia.io"
		id = "a2fe7f09-7134-4054-ba40-5ea66785a26c"
		date = "2022-12-09"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_solarmarker_dll.yar#L1-L28"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "5be0a95adb7e486cdec5f0e8433afed41516fc1a990e1d1ba00db7e8fb32dbbb"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$zka = "zkabsr" wide
		$str0 = "set_PersistKeyInCsp" ascii
		$str1 = "get_IV" ascii
		$str2 = "get_MachineName" ascii
		$str3 = "get_Current" ascii
		$str4 = "ps_script" ascii
		$str5 = "request_data" ascii
		$str6 = "WindowsBuiltInRole" ascii
		$str7 = "DllImportAttribute" ascii
		$str8 = "get_BlockSize" ascii
		$str9 = "GetRequestStream" ascii

	condition:
		uint16( 0 ) == 0x5A4D and ( ( $zka and 3 of ( $str* ) ) or ( all of ( $str* ) ) ) and filesize < 1MB
}

Cadenas (11 patrones)

IdentificadorTipoValorModificadores
$zkatexto"zkabsr"wide
$str0texto"set_PersistKeyInCsp"ascii
$str1texto"get_IV"ascii
$str2texto"get_MachineName"ascii
$str3texto"get_Current"ascii
$str4texto"ps_script"ascii
$str5texto"request_data"ascii
$str6texto"WindowsBuiltInRole"ascii
$str7texto"DllImportAttribute"ascii
$str8texto"get_BlockSize"ascii
$str9texto"GetRequestStream"ascii

Condición

uint16( 0 ) == 0x5A4D and ( ( $zka and 3 of ( $str* ) ) or ( all of ( $str* ) ) ) and filesize < 1MB

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • El archivo debe ocupar menos de 1MB (un límite barato que descarta archivos grandes).
  • Deben coincidir todos los patrones de ( $str* ).
  • Deben coincidir al menos 3 patrones de ( $str* ).
  • El patrón $zka debe estar presente.

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: a2fe7f09-7134-4054-ba40-5ea66785a26c

Metadatos

version1.0
classificationTLP:CLEAR

Etiquetas:FILE

Más reglas de Solarmarker