Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Egregor

Detects Egregor ransomware variants

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

Ce que détecte cette règle

Detects Egregor ransomware variants

Famille de malware associée : Egregor.

Cibles : PE Windows.

Elle définit 19 motifs (19 texte, 0 hex, 0 regex). Modules YARA utilisés : pe.

YARA-X indique : warning[deprecated_field]: field `number_of_sections` is deprecated

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

Source de la règle

Inclut les imports nécessaires pour la compiler seule.

malware-win-egregor.yarBSD 2-Clause License
import "pe"

rule DITEKSHEN_MALWARE_Win_Egregor : FILE
{
	meta:
		description = "Detects Egregor ransomware variants"
		author = "ditekSHen"
		id = "2e24d4ec-39c2-5148-80a1-04f96bc8b477"
		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#L2397-L2434"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "d39a7bf89a7574f7dfe56db78c8cdbbee97782f829805d4ee87fd9f1635154cd"
		score = 75
		quality = 75
		tags = "FILE"
		clamav_sig = "MALWARE.Win.Ransomware.Egregor"

	strings:
		$s1 = "C:\\Logmein\\{888-8888-9999}\\Logmein.log" fullword wide
		$p1 = "--deinstall" fullword wide
		$p2 = "--del" fullword wide
		$p3 = "--exit" fullword wide
		$p4 = "--kill" fullword wide
		$p5 = "--loud" fullword wide
		$p6 = "--nooperation" fullword wide
		$p7 = "--nop" fullword wide
		$p8 = "--skip" fullword wide
		$p9 = "--useless" fullword wide
		$p10 = "--yourmommy" fullword wide
		$p11 = "-passegregor" ascii wide
		$p12 = "-peguard" ascii wide
		$p13 = "--nomimikatz" ascii wide
		$p14 = "--multiproc" ascii wide
		$p15 = "--killrdp" ascii wide
		$p16 = "--nonet" ascii wide
		$p17 = "--norename" ascii wide
		$p18 = "--greetings" ascii wide

	condition:
		( uint16( 0 ) == 0x5a4d and pe.is_dll ( ) and ( ( all of ( $s* ) and 1 of ( $p* ) ) or ( 2 of them and filesize < 1000KB and for any i in ( 0 .. pe.number_of_sections ) : ( ( pe.sections [ i ] . name == ".00cfg" ) ) ) ) ) or 8 of ( $p* )
}

Chaînes (19 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"C:\\Logmein\\{888-8888-9999}\\Logmein.log"fullword wide
$p1texte"--deinstall"fullword wide
$p2texte"--del"fullword wide
$p3texte"--exit"fullword wide
$p4texte"--kill"fullword wide
$p5texte"--loud"fullword wide
$p6texte"--nooperation"fullword wide
$p7texte"--nop"fullword wide
$p8texte"--skip"fullword wide
$p9texte"--useless"fullword wide
$p10texte"--yourmommy"fullword wide
$p11texte"-passegregor"ascii wide
$p12texte"-peguard"ascii wide
$p13texte"--nomimikatz"ascii wide
$p14texte"--multiproc"ascii wide
$p15texte"--killrdp"ascii wide
$p16texte"--nonet"ascii wide
$p17texte"--norename"ascii wide
$p18texte"--greetings"ascii wide

Condition

( uint16( 0 ) == 0x5a4d and pe.is_dll ( ) and ( ( all of ( $s* ) and 1 of ( $p* ) ) or ( 2 of them and filesize < 1000KB and for any i in ( 0 .. pe.number_of_sections ) : ( ( pe.sections [ i ] . name == ".00cfg" ) ) ) ) ) or 8 of ( $p* )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Le fichier doit faire moins de 1000KB (garde-fou peu coûteux qui écarte les gros fichiers).
  • Tous les motifs de ( $s* ) doivent être trouvés.
  • Au moins 1 motifs de ( $p* ) doivent être trouvés.
  • Au moins 2 motifs de la règle doivent être trouvés.
  • Au moins 8 motifs de ( $p* ) doivent être trouvés.
  • Une boucle for vérifie une propriété sur plusieurs occurrences ou éléments.
  • Utilise le module pe.
  • Vérifie les sections PE (noms, nombre ou propriétés).
  • Exige une DLL.

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: 2e24d4ec-39c2-5148-80a1-04f96bc8b477

Métadonnées

clamav_sigMALWARE.Win.Ransomware.Egregor

Tags:FILE

Plus de règles Egregor