YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Nitol
Detects Nitol backdoor
- 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:
= "Detects Nitol backdoor"
= "ditekSHen"
= "d545f826-11ff-5d0f-9a95-8232b19d35b6"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L3676-L3704"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "c0ddcd6179bea2f3af77ae198e07f55f62884e07a975623ae41bcec163060f89"
= 75
= 73
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "%$#@!.aspGET ^&*().htmlGET" | ascii |
| $s2 | text | "Applications\\iexplore.exe\\shell\\open\\command" | fullword ascii |
| $s3 | text | "taskkill /f /im rundll32.exe" | fullword ascii |
| $s4 | text | "\\Tencent\\Users\\*.*" | fullword ascii |
| $s5 | text | "[Pause Break]" | fullword ascii |
| $s6 | text | ":]%d-%d-%d %d:%d:%d" | fullword ascii |
| $s7 | text | "GET %s HTTP/1.1" | fullword ascii |
| $s8 | text | "GET %s%s HTTP/1.1" | fullword ascii |
| $s9 | text | "Accept-Language: zh-cn" | fullword ascii |
| $s10 | text | "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 5.1)" | fullword ascii |
| $s11 | text | "User-Agent:Mozilla/4.0 (compatible; MSIE %d.00; Windows NT %d.0; MyIE 3.01)" | fullword ascii |
| $s12 | text | "User-Agent:Mozilla/4.0 (compatible; MSIE %d.0; Windows NT %d.1; SV1)" | fullword ascii |
| $w1 | text | ".aspGET" | ascii |
| $w2 | text | ".htmGET" | ascii |
| $w3 | text | ".htmlGET" | ascii |
| $domain | text | "www.xy999.com" | fullword ascii |
| $v2_1 | text | "loglass" | fullword ascii |
| $v2_2 | text | "rlehgs" | fullword ascii |
| $v2_3 | text | "eherrali" | fullword ascii |
| $v2_4 | text | "agesrlu" | fullword ascii |
| $v2_5 | text | "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.
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).
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
Related rules
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06