Aller au contenu

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Xehook_Str

Finds XehookStealer standalone samples based on specific strings.

GénériqueSEKOIA.IO CommunityDetection Rule License 1.1Compile avec YARA-X
Auteur
Sekoia.io
Date
2024-06-12
Modifiée
2024-12-19
Score / Qualité
75 / 80

Ce que détecte cette règle

Finds XehookStealer standalone samples based on specific strings.

Cibles : PE Windows.

Elle définit 17 motifs (17 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-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* )
}

Chaînes (17 motifs)

IdentifiantTypeValeurModificateurs
$str01texte"xehook"ascii
$str02texte"Classes.LogRecord"ascii
$str03texte"__ _____| |__ ___ ___ | | __"wide
$str04texte"\\ \\/ / _ \\ '_ \\ / _ \\ / _ \\| |/ /"wide
$str05texte" > < __/ | | | (_) | (_) | <"wide
$str06texte"/_/\\_\\___|_| |_|\\___/ \\___/|_|\\_\\"wide
$str07texte"https://t.me/xehook"wide
$str08texte"About PC.txt"wide
$str09texte"Browser: {4} v{5} ({6})"wide
$str10texte"http://ip-api.com/json/?fields=11827"wide
$str11texte"{0}gate.php?id={1}&build={2}&passwords={3}&cookies={4}"wide
$str12texte"getjson.php?id="wide
$com01texte"CheckRemoteDebuggerPresent"ascii
$com02texte"get_CurrentThread"ascii
$com03texte"get_InstalledInputLanguages"ascii
$com04texte"get_Ticks"ascii
$com05texte"System.Security.Cryptography"ascii

Condition

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

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Au moins 2 motifs de ( $str* ) doivent être trouvés.
  • Au moins 4 motifs de ( $com* ) 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: fa76988d-f0a2-4fc2-a122-c104fd585f34

Métadonnées

version1.0
classificationTLP:CLEAR

Tags:FILE