Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Nermer

Detects Nermer ransomware

MalwareNermerditekSHen 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 Nermer ransomware

Famille de malware associée : Nermer.

Cibles : PE Windows.

Elle définit 19 motifs (19 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-nermer.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Nermer : FILE
{
	meta:
		description = "Detects Nermer ransomware"
		author = "ditekSHen"
		id = "fce4f178-8e98-53b0-ae09-2ce876ad524e"
		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#L6036-L6062"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "e885b1b908b256ee07f5cb144d63f5ad65e5bf746b70efe168b0ac742a246ab3"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$x1 = "gPROTECT_INFO.TXT" fullword wide
		$x2 = ".nermer" fullword wide
		$s1 = "db_journal" fullword wide
		$s2 = "quicken2015backup" fullword wide
		$s3 = "mysql" fullword wide
		$s4 = "sas7bdat" fullword wide
		$s5 = "httpd.exe" fullword wide
		$s6 = "Intuit.QuickBooks.FCS" fullword wide
		$s7 = "convimage" fullword wide
		$s8 = ".?AV?$_Binder@U_Unforced@std@@P8shares_t@" ascii
		$s9 = "BgIAAACkAABSU0ExAAgAAAEAAQCt" ascii
		$m1 = "YOUR FILES WERE ENCRYPTED" ascii
		$m2 = "MARKED BY EXTENSION .nermer" ascii
		$m3 = "send us your id: >> {id} <<" ascii
		$m4 = "email us: >> {email} <<" ascii
		$c1 = "/repeater.php" ascii
		$c2 = "HTTPClient/0.1" fullword ascii
		$c3 = "94.156.35.227" ascii
		$c4 = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( all of ( $m* ) or all of ( $c* ) or all of ( $s* ) or ( 4 of ( $s* ) and ( 1 of ( $x* ) or 1 of ( $m* ) or 2 of ( $c* ) ) ) or 14 of them )
}

Chaînes (19 motifs)

IdentifiantTypeValeurModificateurs
$x1texte"gPROTECT_INFO.TXT"fullword wide
$x2texte".nermer"fullword wide
$s1texte"db_journal"fullword wide
$s2texte"quicken2015backup"fullword wide
$s3texte"mysql"fullword wide
$s4texte"sas7bdat"fullword wide
$s5texte"httpd.exe"fullword wide
$s6texte"Intuit.QuickBooks.FCS"fullword wide
$s7texte"convimage"fullword wide
$s8texte".?AV?$_Binder@U_Unforced@std@@P8shares_t@"ascii
$s9texte"BgIAAACkAABSU0ExAAgAAAEAAQCt"ascii
$m1texte"YOUR FILES WERE ENCRYPTED"ascii
$m2texte"MARKED BY EXTENSION .nermer"ascii
$m3texte"send us your id: >> {id} <<"ascii
$m4texte"email us: >> {email} <<"ascii
$c1texte"/repeater.php"ascii
$c2texte"HTTPClient/0.1"fullword ascii
$c3texte"94.156.35.227"ascii
$c4texte"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"fullword ascii

Condition

uint16( 0 ) == 0x5a4d and ( all of ( $m* ) or all of ( $c* ) or all of ( $s* ) or ( 4 of ( $s* ) and ( 1 of ( $x* ) or 1 of ( $m* ) or 2 of ( $c* ) ) ) or 14 of them )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Tous les motifs de ( $m* ) doivent être trouvés.
  • Tous les motifs de ( $c* ) doivent être trouvés.
  • Tous les motifs de ( $s* ) doivent être trouvés.
  • Au moins 4 motifs de ( $s* ) doivent être trouvés.
  • Au moins 1 motifs de ( $x* ) doivent être trouvés.
  • Au moins 1 motifs de ( $m* ) doivent être trouvés.
  • Au moins 2 motifs de ( $c* ) doivent être trouvés.
  • Au moins 14 motifs de la règle 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 : 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: fce4f178-8e98-53b0-ae09-2ce876ad524e

Tags:FILE