Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Stealerium

Detects Stealerium based on specific strings

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

Qué detecta esta regla

Detects Stealerium based on specific strings

Familia de malware asociada: Stealerium.

Objetivos: PE de Windows.

Define 21 patrones (21 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-stealerium.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Stealerium : FILE
{
	meta:
		description = "Detects Stealerium based on specific strings"
		author = "Sekoia.io"
		id = "165c7d3d-de7e-4d71-b94a-8ab4a0e5ddd5"
		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/infostealer_win_stealerium.yar#L1-L36"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "f420848164ad4b6966f2a776a58d90b7d70c8b151a42d6f56b654f1700b5e564"
		score = 75
		quality = 78
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$stl = "Stealerium" ascii wide
		$str01 = "Processe: " wide
		$str02 = "Compname: " wide
		$str03 = "Language: " wide
		$str04 = "SandBoxie: " wide
		$str05 = "== System Info ==" wide
		$str06 = "== Hardware ==" wide
		$str07 = "== Domains ==" wide
		$str08 = "WEBCAMS COUNT: " wide
		$str09 = "[Virtualization]" wide
		$str10 = "[Open google maps](" wide
		$str11 = "Remember password: " wide
		$str12 = "Target.Browsers.Firefox" ascii
		$str13 = "Modules.Keylogger" ascii
		$str14 = "ClipperAddresses" ascii
		$str15 = "ChromiumPswPaths" ascii
		$str16 = "DetectedBankingServices" ascii
		$str17 = "DetectCryptocurrencyServices" ascii
		$str18 = "CheckRemoteDebuggerPresent" ascii
		$str19 = "GetConnectedCamerasCount" ascii
		$str20 = "costura.discord-webhook-client.dll.compressed" ascii wide

	condition:
		uint16( 0 ) == 0x5A4D and filesize > 1MB and ( ( #stl > 5 and 2 of ( $str* ) ) or 15 of ( $str* ) )
}

Cadenas (21 patrones)

IdentificadorTipoValorModificadores
$stltexto"Stealerium"ascii wide
$str01texto"Processe: "wide
$str02texto"Compname: "wide
$str03texto"Language: "wide
$str04texto"SandBoxie: "wide
$str05texto"== System Info =="wide
$str06texto"== Hardware =="wide
$str07texto"== Domains =="wide
$str08texto"WEBCAMS COUNT: "wide
$str09texto"[Virtualization]"wide
$str10texto"[Open google maps]("wide
$str11texto"Remember password: "wide
$str12texto"Target.Browsers.Firefox"ascii
$str13texto"Modules.Keylogger"ascii
$str14texto"ClipperAddresses"ascii
$str15texto"ChromiumPswPaths"ascii
$str16texto"DetectedBankingServices"ascii
$str17texto"DetectCryptocurrencyServices"ascii
$str18texto"CheckRemoteDebuggerPresent"ascii
$str19texto"GetConnectedCamerasCount"ascii
$str20texto"costura.discord-webhook-client.dll.compressed"ascii wide

Condición

uint16( 0 ) == 0x5A4D and filesize > 1MB and ( ( #stl > 5 and 2 of ( $str* ) ) or 15 of ( $str* ) )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • El archivo debe ocupar más de 1MB.
  • Deben coincidir al menos 2 patrones de ( $str* ).
  • Deben coincidir al menos 15 patrones de ( $str* ).
  • El patrón $stl debe aparecer > 5 veces.

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: 165c7d3d-de7e-4d71-b94a-8ab4a0e5ddd5

Metadatos

version1.0
classificationTLP:CLEAR

Etiquetas:FILE