YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_UNK05
Detects potential BazarLoader
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects potential BazarLoader
Associated malware family: UNK05.
Targets: Windows PE.
It defines 10 patterns (10 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-unk05.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_UNK05 : FILE
{
meta:
= "Detects potential BazarLoader"
= "ditekSHen"
= "12f66315-f381-5910-b1d4-2cbf21c889a4"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L8469-L8486"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "b3074f237fbaf449a53dcc219f48509db6af4c0d0859e6590563c3412be30aa8"
= 75
= 75
= "FILE"
strings:
$s1 = "/api/get" ascii wide
$s2 = "PARENTCMDLINE" fullword ascii
$s3 = "https://microsoft.com/telemetry/update.exe" ascii wide
$s4 = "api.opennicproject.org" fullword ascii wide
$s5 = "https://%hu.%hu.%hu.%hu:%u" fullword ascii wide
$s6 = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36 Edg/94.0.992.31" ascii wide
$s7 = "PARENTJOBID" fullword ascii wide
$s8 = "\\System32\\rundll32.exe" fullword ascii wide
$s9 = "{ccc38b40-5b04-4fb1-a684-07c7e448d4df}" fullword ascii wide
$s10 = "{065f6686-990b-46fc-829c-a53ec188a723}" fullword ascii wide
condition:
uint16( 0 ) == 0x5a4d and 6 of them
}
Strings (10 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "/api/get" | ascii wide |
| $s2 | text | "PARENTCMDLINE" | fullword ascii |
| $s3 | text | "https://microsoft.com/telemetry/update.exe" | ascii wide |
| $s4 | text | "api.opennicproject.org" | fullword ascii wide |
| $s5 | text | "https://%hu.%hu.%hu.%hu:%u" | fullword ascii wide |
| $s6 | text | "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36 Edg/94.0.992.31" | ascii wide |
| $s7 | text | "PARENTJOBID" | fullword ascii wide |
| $s8 | text | "\\System32\\rundll32.exe" | fullword ascii wide |
| $s9 | text | "{ccc38b40-5b04-4fb1-a684-07c7e448d4df}" | fullword ascii wide |
| $s10 | text | "{065f6686-990b-46fc-829c-a53ec188a723}" | fullword ascii wide |
Condition
uint16( 0 ) == 0x5a4d and 6 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 6 patterns in the rule must match.
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: 12f66315-f381-5910-b1d4-2cbf21c889a4
Tags:FILE
Related rules
- 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
- MalwareditekSHen detection· ditekSHen· 2020-11-06