Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Nitol

Detects Nitol backdoor

MalwareNitolditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 73

What this rule detects

Detects Nitol backdoor

Associated malware family: Nitol.

Targets: Windows PE.

It defines 21 patterns (21 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

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* ) ) )
}

Strings (21 patterns)

IdentifierTypeValueModifiers
$s1text"%$#@!.aspGET ^&*().htmlGET"ascii
$s2text"Applications\\iexplore.exe\\shell\\open\\command"fullword ascii
$s3text"taskkill /f /im rundll32.exe"fullword ascii
$s4text"\\Tencent\\Users\\*.*"fullword ascii
$s5text"[Pause Break]"fullword ascii
$s6text":]%d-%d-%d %d:%d:%d"fullword ascii
$s7text"GET %s HTTP/1.1"fullword ascii
$s8text"GET %s%s HTTP/1.1"fullword ascii
$s9text"Accept-Language: zh-cn"fullword ascii
$s10text"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 5.1)"fullword ascii
$s11text"User-Agent:Mozilla/4.0 (compatible; MSIE %d.00; Windows NT %d.0; MyIE 3.01)"fullword ascii
$s12text"User-Agent:Mozilla/4.0 (compatible; MSIE %d.0; Windows NT %d.1; SV1)"fullword ascii
$w1text".aspGET"ascii
$w2text".htmGET"ascii
$w3text".htmlGET"ascii
$domaintext"www.xy999.com"fullword ascii
$v2_1text"loglass"fullword ascii
$v2_2text"rlehgs"fullword ascii
$v2_3text"eherrali"fullword ascii
$v2_4text"agesrlu"fullword ascii
$v2_5text"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* ) ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $v2* ) must match.
  • At least 5 patterns in ( $s* ) must match.
  • At least 3 patterns in the rule must match.
  • At least 3 patterns in ( $s* ) must match.
  • Pattern $w1 must occur > 2 times.
  • Pattern $w2 must occur > 2 times.
  • Pattern $w3 must occur > 2 times.
  • Pattern $domain must be present.

Test this rule in your browser

Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

Licence & attribution

Author: ditekSHen

Source repository: ditekSHen detection @ e76c93dcde

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: d545f826-11ff-5d0f-9a95-8232b19d35b6

Tags:FILE