Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Nitol

Detects Nitol backdoor

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

Ce que détecte cette règle

Detects Nitol backdoor

Famille de malware associée : Nitol.

Cibles : PE Windows.

Elle définit 21 motifs (21 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-nitol.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Nitol : FILE
{
	meta:
		description = "Detects Nitol backdoor"
		author = "ditekSHen"
		id = "d545f826-11ff-5d0f-9a95-8232b19d35b6"
		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#L3676-L3704"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "c0ddcd6179bea2f3af77ae198e07f55f62884e07a975623ae41bcec163060f89"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$s1 = "%$#@!.aspGET ^&*().htmlGET" ascii
		$s2 = "Applications\\iexplore.exe\\shell\\open\\command" fullword ascii
		$s3 = "taskkill /f /im rundll32.exe" fullword ascii
		$s4 = "\\Tencent\\Users\\*.*" fullword ascii
		$s5 = "[Pause Break]" fullword ascii
		$s6 = ":]%d-%d-%d  %d:%d:%d" fullword ascii
		$s7 = "GET %s HTTP/1.1" fullword ascii
		$s8 = "GET %s%s HTTP/1.1" fullword ascii
		$s9 = "Accept-Language: zh-cn" fullword ascii
		$s10 = "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 5.1)" fullword ascii
		$s11 = "User-Agent:Mozilla/4.0 (compatible; MSIE %d.00; Windows NT %d.0; MyIE 3.01)" fullword ascii
		$s12 = "User-Agent:Mozilla/4.0 (compatible; MSIE %d.0; Windows NT %d.1; SV1)" fullword ascii
		$w1 = ".aspGET" ascii
		$w2 = ".htmGET" ascii
		$w3 = ".htmlGET" ascii
		$domain = "www.xy999.com" fullword ascii
		$v2_1 = "loglass" fullword ascii
		$v2_2 = "rlehgs" fullword ascii
		$v2_3 = "eherrali" fullword ascii
		$v2_4 = "agesrlu" fullword ascii
		$v2_5 = "lepejagas" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 5 of ( $s* ) or ( all of ( $v2* ) ) or ( $domain and 3 of them ) or ( #w1 > 2 and #w2 > 2 and #w3 > 2 and 3 of ( $s* ) ) )
}

Chaînes (21 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"%$#@!.aspGET ^&*().htmlGET"ascii
$s2texte"Applications\\iexplore.exe\\shell\\open\\command"fullword ascii
$s3texte"taskkill /f /im rundll32.exe"fullword ascii
$s4texte"\\Tencent\\Users\\*.*"fullword ascii
$s5texte"[Pause Break]"fullword ascii
$s6texte":]%d-%d-%d %d:%d:%d"fullword ascii
$s7texte"GET %s HTTP/1.1"fullword ascii
$s8texte"GET %s%s HTTP/1.1"fullword ascii
$s9texte"Accept-Language: zh-cn"fullword ascii
$s10texte"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 5.1)"fullword ascii
$s11texte"User-Agent:Mozilla/4.0 (compatible; MSIE %d.00; Windows NT %d.0; MyIE 3.01)"fullword ascii
$s12texte"User-Agent:Mozilla/4.0 (compatible; MSIE %d.0; Windows NT %d.1; SV1)"fullword ascii
$w1texte".aspGET"ascii
$w2texte".htmGET"ascii
$w3texte".htmlGET"ascii
$domaintexte"www.xy999.com"fullword ascii
$v2_1texte"loglass"fullword ascii
$v2_2texte"rlehgs"fullword ascii
$v2_3texte"eherrali"fullword ascii
$v2_4texte"agesrlu"fullword ascii
$v2_5texte"lepejagas"fullword ascii

Condition

uint16( 0 ) == 0x5a4d and ( 5 of ( $s* ) or ( all of ( $v2* ) ) or ( $domain and 3 of them ) or ( #w1 > 2 and #w2 > 2 and #w3 > 2 and 3 of ( $s* ) ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Tous les motifs de ( $v2* ) doivent être trouvés.
  • Au moins 5 motifs de ( $s* ) doivent être trouvés.
  • Au moins 3 motifs de la règle doivent être trouvés.
  • Au moins 3 motifs de ( $s* ) doivent être trouvés.
  • Le motif $w1 doit apparaître > 2 fois.
  • Le motif $w2 doit apparaître > 2 fois.
  • Le motif $w3 doit apparaître > 2 fois.
  • Le motif $domain doit être présent.

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: d545f826-11ff-5d0f-9a95-8232b19d35b6

Tags:FILE