Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Fakewmi

FakeWMI payload

MalwareFakewmiditekSHen 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

FakeWMI payload

Famille de malware associée : Fakewmi.

Cibles : PE Windows.

Elle définit 9 motifs (9 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

malware-win-fakewmi.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Fakewmi : FILE
{
	meta:
		description = "FakeWMI payload"
		author = "ditekSHen"
		id = "689bc207-2bc6-50de-80d6-d1ba0a26b264"
		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#L1047-L1064"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "627886cdd01f5f02e454ef284c77c87eb027ee33f6a51536758fb7f095271a40"
		score = 75
		quality = 75
		tags = "FILE"
		clamav_sig = "MALWARE.Win.Trojan.Fakewmi"

	strings:
		$s1 = "-BEGIN RSA PUBLIC KEY-" ascii
		$s2 = ".exe|" ascii
		$s3 = "cmd /c wmic " ascii
		$s4 = "cmd /c sc " ascii
		$s5 = "schtasks" ascii
		$s6 = "taskkill" ascii
		$s7 = "findstr" ascii
		$s8 = "netsh interface" ascii
		$s9 = "CreateService" ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( all of ( $s* ) and #s2 > 10 )
}

Chaînes (9 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"-BEGIN RSA PUBLIC KEY-"ascii
$s2texte".exe|"ascii
$s3texte"cmd /c wmic "ascii
$s4texte"cmd /c sc "ascii
$s5texte"schtasks"ascii
$s6texte"taskkill"ascii
$s7texte"findstr"ascii
$s8texte"netsh interface"ascii
$s9texte"CreateService"ascii

Condition

uint16( 0 ) == 0x5a4d and ( all of ( $s* ) and #s2 > 10 )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Tous les motifs de ( $s* ) doivent être trouvés.
  • Le motif $s2 doit apparaître > 10 fois.

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 : 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: 689bc207-2bc6-50de-80d6-d1ba0a26b264

Métadonnées

clamav_sigMALWARE.Win.Trojan.Fakewmi

Tags:FILE