Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Exmatter

Detects BlackMatter data exfiltration tool

MalwareExmatterditekSHen detectionBSD 2-Clause LicenseCompile avec YARA-X
Auteur
ditekSHen
Date
2020-11-06
Modifiée
2024-11-01
Score / Qualité
75 / 75

Ce que détecte cette règle

Detects BlackMatter data exfiltration tool

Famille de malware associée : Exmatter.

Cibles : PE Windows.

Elle définit 13 motifs (12 texte, 1 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

malware-win-exmatter.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Exmatter : FILE
{
	meta:
		description = "Detects BlackMatter data exfiltration tool"
		author = "ditekSHen"
		id = "93df7a68-1e19-5db3-95d4-39d77d1036d8"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L8303-L8325"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		hash = "4a0e10e1e9fea0906379f99fa350b91c2af37f0fd2cc55491643cc71a9887d30"
		hash = "a5e050f1278473d41c3a3d6f98f3fd82932f51a937bc57d8f5605815f0efb0f8"
		logic_hash = "25a35c82919f96bdba00558616f574e901b83785713ed1a63a6f06df576777cd"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "Renci.SshNet." ascii
		$s2 = "DirNotEmpty" fullword ascii
		$s3 = "MkDir" fullword ascii
		$s4 = "RmDir" fullword ascii
		$s5 = "get_MainWindowHandle" fullword ascii
		$s6 = "GetCurrentProcess" fullword ascii
		$s7 = "]]>]]>" fullword wide
		$s8 = "1.3.132.0.35" fullword wide
		$s9 = "1.3.132.0.34" fullword wide
		$s10 = "1.2.840.10045.3.1.7" fullword wide
		$x1 = "sender2.pdb" fullword ascii
		$x2 = { 64 00 61 00 74 00 61 00 ?? 72 00 6f 00 6f 00 74 }
		$x3 = "157.230.28.192" fullword wide

	condition:
		uint16( 0 ) == 0x5a4d and ( all of ( $s* ) or ( 1 of ( $x* ) and 7 of ( $s* ) ) )
}

Chaînes (13 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"Renci.SshNet."ascii
$s2texte"DirNotEmpty"fullword ascii
$s3texte"MkDir"fullword ascii
$s4texte"RmDir"fullword ascii
$s5texte"get_MainWindowHandle"fullword ascii
$s6texte"GetCurrentProcess"fullword ascii
$s7texte"]]>]]>"fullword wide
$s8texte"1.3.132.0.35"fullword wide
$s9texte"1.3.132.0.34"fullword wide
$s10texte"1.2.840.10045.3.1.7"fullword wide
$x1texte"sender2.pdb"fullword ascii
$x2hex{ 64 00 61 00 74 00 61 00 ?? 72 00 6f 00 6f 00 74 }
$x3texte"157.230.28.192"fullword wide

Condition

uint16( 0 ) == 0x5a4d and ( all of ( $s* ) or ( 1 of ( $x* ) and 7 of ( $s* ) ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Tous les motifs de ( $s* ) doivent être trouvés.
  • Au moins 1 motifs de ( $x* ) doivent être trouvés.
  • Au moins 7 motifs de ( $s* ) 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

Hashes d’échantillons

Hashes des échantillons listés par l’auteur dans les métadonnées de la règle (à rechercher dans votre plateforme de threat intelligence).

  • 4a0e10e1e9fea0906379f99fa350b91c2af37f0fd2cc55491643cc71a9887d30
  • a5e050f1278473d41c3a3d6f98f3fd82932f51a937bc57d8f5605815f0efb0f8

Licence et attribution

Auteur : ditekSHen

Dépôt source : ditekSHen detection @ e76c93dcde

Licence : BSD 2-Clause License (licence du dépôt)

Mention de copyright : Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

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: 93df7a68-1e19-5db3-95d4-39d77d1036d8

Tags:FILE