Aller au contenu

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Xfiles

Detect the X-FILES infostealer based on specific strings

MalwareXfilesSEKOIA.IO CommunityDetection Rule License 1.1Compile avec YARA-X
Auteur
Sekoia.io
Date
2022-02-03
Modifiée
2024-12-19
Score / Qualité
75 / 78

Ce que détecte cette règle

Detect the X-FILES infostealer based on specific strings

Famille de malware associée : Xfiles.

Cibles : PE Windows.

Elle définit 31 motifs (31 texte, 0 hex, 0 regex).

Résumé généré à partir des métadonnées et de la condition de la règle.

Source de la règle

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* )
}

Chaînes (31 motifs)

IdentifiantTypeValeurModificateurs
$xfi0texte"Telegram bot - @XFILESShop_Bot"wide
$xfi1texte"Telegram support - @XFILES_Seller"wide
$brw0texte"\\Google\\Chrome\\User Data\\Default\\Network\\Cookies"wide
$brw1texte"\\Chromium\\User Data\\Default\\Cookies"wide
$brw2texte"\\Slimjet\\User Data\\Default\\Cookies"wide
$brw3texte"\\Vivaldi\\User Data\\Default\\Cookies"wide
$brw4texte"\\Opera Software\\Opera GX Stable\\Cookies"wide
$brw5texte"\\Opera Software\\Opera Stable\\Cookies"wide
$crp00texte"Tronlink"wide
$crp01texte"NiftyWallet"wide
$crp02texte"MetaMask"wide
$crp03texte"MathWallet"wide
$crp04texte"Coinbase"wide
$crp05texte"BinanceChain"wide
$crp06texte"GuardaWallet"wide
$crp07texte"EqualWallet"wide
$crp08texte"BitAppWallet"wide
$crp09texte"iWallet"wide
$crp10texte"Wombat"wide
$crp11texte"Zcash"wide
$crp12texte"Armory"wide
$crp13texte"Bytecoin"wide
$crp14texte"Jaxx"wide
$crp15texte"Exodus"wide
$crp16texte"Ethereum"wide
$crp17texte"AtomicWallet"wide
$crp18texte"Guarda"wide
$crp19texte"Coinomi"wide
$crp20texte"Litecoin"wide
$crp21texte"Dash"wide
$crp22texte"Bitcoin"wide

Condition

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

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Au moins un motif de ( $xfi* ) doit être trouvé.
  • Au moins 5 motifs de ( $brw* ) doivent être trouvés.
  • Au moins 20 motifs de ( $crp* ) doivent être trouvés.

Tester cette règle dans votre navigateur

Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.

Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.

Ouvrir dans l’éditeur

Références

Licence et attribution

Auteur : Sekoia.io

Dépôt source : SEKOIA.IO Community @ a438a5901a

Licence : Detection Rule License 1.1 (licence du dépôt)

Règle d’origine

Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.

Identifiant de règle: 3ad3ee19-6be8-484b-943c-05813cdcbd18

Métadonnées

version1.0
classificationTLP:CLEAR

Tags:FILE