Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Xfiles

Detect the X-FILES infostealer based on specific strings

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

Qué detecta esta regla

Detect the X-FILES infostealer based on specific strings

Familia de malware asociada: Xfiles.

Objetivos: PE de Windows.

Define 31 patrones (31 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-xfiles.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Xfiles : FILE
{
	meta:
		description = "Detect the X-FILES infostealer based on specific strings"
		author = "Sekoia.io"
		id = "3ad3ee19-6be8-484b-943c-05813cdcbd18"
		date = "2022-02-03"
		modified = "2024-12-19"
		reference = "https://twitter.com/3xp0rtblog/status/1375206169384521730"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_xfiles.yar#L1-L50"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "404ee02fa1905f49c3c3ca525cfb3c5ba1d2ec46554239035c1891d21f547a2c"
		score = 75
		quality = 78
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$xfi0 = "Telegram bot - @XFILESShop_Bot" wide
		$xfi1 = "Telegram support - @XFILES_Seller" wide
		$brw0 = "\\Google\\Chrome\\User Data\\Default\\Network\\Cookies" wide
		$brw1 = "\\Chromium\\User Data\\Default\\Cookies" wide
		$brw2 = "\\Slimjet\\User Data\\Default\\Cookies" wide
		$brw3 = "\\Vivaldi\\User Data\\Default\\Cookies" wide
		$brw4 = "\\Opera Software\\Opera GX Stable\\Cookies" wide
		$brw5 = "\\Opera Software\\Opera Stable\\Cookies" wide
		$crp00 = "Tronlink" wide
		$crp01 = "NiftyWallet" wide
		$crp02 = "MetaMask" wide
		$crp03 = "MathWallet" wide
		$crp04 = "Coinbase" wide
		$crp05 = "BinanceChain" wide
		$crp06 = "GuardaWallet" wide
		$crp07 = "EqualWallet" wide
		$crp08 = "BitAppWallet" wide
		$crp09 = "iWallet" wide
		$crp10 = "Wombat" wide
		$crp11 = "Zcash" wide
		$crp12 = "Armory" wide
		$crp13 = "Bytecoin" wide
		$crp14 = "Jaxx" wide
		$crp15 = "Exodus" wide
		$crp16 = "Ethereum" wide
		$crp17 = "AtomicWallet" wide
		$crp18 = "Guarda" wide
		$crp19 = "Coinomi" wide
		$crp20 = "Litecoin" wide
		$crp21 = "Dash" wide
		$crp22 = "Bitcoin" wide

	condition:
		uint16( 0 ) == 0x5A4D and any of ( $xfi* ) or 5 of ( $brw* ) and 20 of ( $crp* )
}

Cadenas (31 patrones)

IdentificadorTipoValorModificadores
$xfi0texto"Telegram bot - @XFILESShop_Bot"wide
$xfi1texto"Telegram support - @XFILES_Seller"wide
$brw0texto"\\Google\\Chrome\\User Data\\Default\\Network\\Cookies"wide
$brw1texto"\\Chromium\\User Data\\Default\\Cookies"wide
$brw2texto"\\Slimjet\\User Data\\Default\\Cookies"wide
$brw3texto"\\Vivaldi\\User Data\\Default\\Cookies"wide
$brw4texto"\\Opera Software\\Opera GX Stable\\Cookies"wide
$brw5texto"\\Opera Software\\Opera Stable\\Cookies"wide
$crp00texto"Tronlink"wide
$crp01texto"NiftyWallet"wide
$crp02texto"MetaMask"wide
$crp03texto"MathWallet"wide
$crp04texto"Coinbase"wide
$crp05texto"BinanceChain"wide
$crp06texto"GuardaWallet"wide
$crp07texto"EqualWallet"wide
$crp08texto"BitAppWallet"wide
$crp09texto"iWallet"wide
$crp10texto"Wombat"wide
$crp11texto"Zcash"wide
$crp12texto"Armory"wide
$crp13texto"Bytecoin"wide
$crp14texto"Jaxx"wide
$crp15texto"Exodus"wide
$crp16texto"Ethereum"wide
$crp17texto"AtomicWallet"wide
$crp18texto"Guarda"wide
$crp19texto"Coinomi"wide
$crp20texto"Litecoin"wide
$crp21texto"Dash"wide
$crp22texto"Bitcoin"wide

Condición

uint16( 0 ) == 0x5A4D and any of ( $xfi* ) or 5 of ( $brw* ) and 20 of ( $crp* )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Debe coincidir al menos un patrón de ( $xfi* ).
  • Deben coincidir al menos 5 patrones de ( $brw* ).
  • Deben coincidir al menos 20 patrones de ( $crp* ).

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: 3ad3ee19-6be8-484b-943c-05813cdcbd18

Metadatos

version1.0
classificationTLP:CLEAR

Etiquetas:FILE