Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Xehook_Str

Finds XehookStealer standalone samples based on specific strings.

GenéricaSEKOIA.IO CommunityDetection Rule License 1.1Compila con YARA-X
Autor
Sekoia.io
Fecha
2024-06-12
Modificada
2024-12-19
Puntuación / Calidad
75 / 80

Qué detecta esta regla

Finds XehookStealer standalone samples based on specific strings.

Objetivos: PE de Windows.

Define 17 patrones (17 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-xehook-str.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Xehook_Str : FILE
{
	meta:
		description = "Finds XehookStealer standalone samples based on specific strings."
		author = "Sekoia.io"
		id = "fa76988d-f0a2-4fc2-a122-c104fd585f34"
		date = "2024-06-12"
		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_xehook_str.yar#L1-L32"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "543ec3b523e5f00d3c285e453c8d11f3d5c7778b2986b7fe03f2d62ff18c2778"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "xehook" ascii
		$str02 = "Classes.LogRecord" ascii
		$str03 = "__  _____| |__   ___   ___ | | __" wide
		$str04 = "\\ \\/ / _ \\ '_ \\ / _ \\ / _ \\| |/ /" wide
		$str05 = " >  <  __/ | | | (_) | (_) |   <" wide
		$str06 = "/_/\\_\\___|_| |_|\\___/ \\___/|_|\\_\\" wide
		$str07 = "https://t.me/xehook" wide
		$str08 = "About PC.txt" wide
		$str09 = "Browser: {4} v{5} ({6})" wide
		$str10 = "http://ip-api.com/json/?fields=11827" wide
		$str11 = "{0}gate.php?id={1}&build={2}&passwords={3}&cookies={4}" wide
		$str12 = "getjson.php?id=" wide
		$com01 = "CheckRemoteDebuggerPresent" ascii
		$com02 = "get_CurrentThread" ascii
		$com03 = "get_InstalledInputLanguages" ascii
		$com04 = "get_Ticks" ascii
		$com05 = "System.Security.Cryptography" ascii

	condition:
		uint16( 0 ) == 0x5A4D and 2 of ( $str* ) and 4 of ( $com* )
}

Cadenas (17 patrones)

IdentificadorTipoValorModificadores
$str01texto"xehook"ascii
$str02texto"Classes.LogRecord"ascii
$str03texto"__ _____| |__ ___ ___ | | __"wide
$str04texto"\\ \\/ / _ \\ '_ \\ / _ \\ / _ \\| |/ /"wide
$str05texto" > < __/ | | | (_) | (_) | <"wide
$str06texto"/_/\\_\\___|_| |_|\\___/ \\___/|_|\\_\\"wide
$str07texto"https://t.me/xehook"wide
$str08texto"About PC.txt"wide
$str09texto"Browser: {4} v{5} ({6})"wide
$str10texto"http://ip-api.com/json/?fields=11827"wide
$str11texto"{0}gate.php?id={1}&build={2}&passwords={3}&cookies={4}"wide
$str12texto"getjson.php?id="wide
$com01texto"CheckRemoteDebuggerPresent"ascii
$com02texto"get_CurrentThread"ascii
$com03texto"get_InstalledInputLanguages"ascii
$com04texto"get_Ticks"ascii
$com05texto"System.Security.Cryptography"ascii

Condición

uint16( 0 ) == 0x5A4D and 2 of ( $str* ) and 4 of ( $com* )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir al menos 2 patrones de ( $str* ).
  • Deben coincidir al menos 4 patrones de ( $com* ).

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: fa76988d-f0a2-4fc2-a122-c104fd585f34

Metadatos

version1.0
classificationTLP:CLEAR

Etiquetas:FILE