Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Nemty

Detects Nemty/Nefilim ransomware

MalwareNemtyditekSHen 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 Nemty/Nefilim ransomware

Famille de malware associée : Nemty.

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

malware-win-nemty.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Nemty : FILE
{
	meta:
		description = "Detects Nemty/Nefilim ransomware"
		author = "ditekSHen"
		id = "361269c6-5215-5ecf-869c-3c55ff8387e1"
		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#L3553-L3577"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "dcebcddc472f4fb3bb34c35fc5a5424e54bfc3a262fdae10b189d210217b9b37"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "Go build ID:" ascii
		$s2 = "GOMAXPROCSGetIfEntryGetVersionGlagoliticKharoshthiManichaeanOld_ItalicOld_PermicOld_TurkicOther_MathPOSTALCODEPhoenicianSaurasht" ascii
		$s3 = "crypto/x509.ExtKeyUsage" ascii
		$s4 = "crypto/x509.KeyUsageContentCommitment" ascii
		$s5 = "DEK-Info header" ascii
		$s6 = "GetUserProfileDirectoryWMagallanes Standard TimeMontevideo Standard TimeNorth Asia Standard TimePacific SA Standard TimeQueryPerformanceCounter" fullword ascii
		$s7 = "*( -  <  =  >  k= m=%: +00+03+04+05+06+07+08+09+10+11+12+13+14-01-02-03-04-05-06-08-09-11-12..." ascii
		$s8 = "Go cmd/compile go1.10" fullword ascii
		$s9 = ".dllprogramdatarecycle.bin" ascii
		$s10 = ".dll.exe.lnk.sys.url" ascii
		$vx1_1 = "Fa1led to os.OpenFile()" ascii
		$vx1_2 = "-HELP.txt" ascii
		$vf1_1 = "main.CTREncrypt" fullword ascii
		$vf1_2 = "main.FileSearch" fullword ascii
		$vf1_3 = "main.getdrives" fullword ascii
		$vf1_4 = "main.RSAEncrypt" fullword ascii
		$vf1_5 = "main.SaveNote" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 9 of ( $s* ) or ( all of ( $vx* ) and 2 of ( $s* ) ) or all of ( $vf* ) )
}

Chaînes (17 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"Go build ID:"ascii
$s2texte"GOMAXPROCSGetIfEntryGetVersionGlagoliticKharoshthiManichaeanOld_ItalicOld_PermicOld_TurkicOther_MathPOSTALCODEPhoenicianSaurasht"ascii
$s3texte"crypto/x509.ExtKeyUsage"ascii
$s4texte"crypto/x509.KeyUsageContentCommitment"ascii
$s5texte"DEK-Info header"ascii
$s6texte"GetUserProfileDirectoryWMagallanes Standard TimeMontevideo Standard TimeNorth Asia Standard TimePacific SA Standard TimeQueryPerformanceCounter"fullword ascii
$s7texte"*( - < = > k= m=%: +00+03+04+05+06+07+08+09+10+11+12+13+14-01-02-03-04-05-06-08-09-11-12..."ascii
$s8texte"Go cmd/compile go1.10"fullword ascii
$s9texte".dllprogramdatarecycle.bin"ascii
$s10texte".dll.exe.lnk.sys.url"ascii
$vx1_1texte"Fa1led to os.OpenFile()"ascii
$vx1_2texte"-HELP.txt"ascii
$vf1_1texte"main.CTREncrypt"fullword ascii
$vf1_2texte"main.FileSearch"fullword ascii
$vf1_3texte"main.getdrives"fullword ascii
$vf1_4texte"main.RSAEncrypt"fullword ascii
$vf1_5texte"main.SaveNote"fullword ascii

Condition

uint16( 0 ) == 0x5a4d and ( 9 of ( $s* ) or ( all of ( $vx* ) and 2 of ( $s* ) ) or all of ( $vf* ) )

En clair (Heuristique)

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

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: 361269c6-5215-5ecf-869c-3c55ff8387e1

Tags:FILE

Plus de règles Nemty