Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_UNK05

Detects potential BazarLoader

MalwareUNK05ditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
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:
		description = "Detects potential BazarLoader"
		author = "ditekSHen"
		id = "12f66315-f381-5910-b1d4-2cbf21c889a4"
		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#L8469-L8486"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "b3074f237fbaf449a53dcc219f48509db6af4c0d0859e6590563c3412be30aa8"
		score = 75
		quality = 75
		tags = "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)

IdentifierTypeValueModifiers
$s1text"/api/get"ascii wide
$s2text"PARENTCMDLINE"fullword ascii
$s3text"https://microsoft.com/telemetry/update.exe"ascii wide
$s4text"api.opennicproject.org"fullword ascii wide
$s5text"https://%hu.%hu.%hu.%hu:%u"fullword ascii wide
$s6text"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
$s7text"PARENTJOBID"fullword ascii wide
$s8text"\\System32\\rundll32.exe"fullword ascii wide
$s9text"{ccc38b40-5b04-4fb1-a684-07c7e448d4df}"fullword ascii wide
$s10text"{065f6686-990b-46fc-829c-a53ec188a723}"fullword ascii wide

Condition

uint16( 0 ) == 0x5a4d and 6 of them

In 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.

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: 12f66315-f381-5910-b1d4-2cbf21c889a4

Tags:FILE