Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Miniduke

Detects MiniDuke

MalwareMinidukeditekSHen 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 MiniDuke

Associated malware family: Miniduke.

Targets: Windows PE.

It defines 13 patterns (12 text, 1 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-miniduke.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Miniduke : FILE
{
	meta:
		description = "Detects MiniDuke"
		author = "ditekSHen"
		id = "947cd414-d19d-5543-8961-94aef69cc94e"
		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#L3948-L3969"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "c3ab139b4fda2ff9678ceecbdf5ac0c57536bd658f62aa9d19610028b0a5f92c"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "DefPipe" fullword ascii
		$s2 = "term %5d" fullword ascii
		$s3 = "pid %5d" fullword ascii
		$s4 = "uptime %5d.%02dh" fullword ascii
		$s5 = "login: %s\\%s" fullword ascii
		$s6 = "Software\\Microsoft\\ApplicationManager" ascii
		$s7 = { 69 64 6c 65 ?? 00 73 74 6f 70 ?? 00 61 63 63 65 70 74 ?? 00 63 6f 6e 6e 65 63 74 ?? 00 6c 69 73 74 65 6e ?? 00 }
		$net1 = "salesappliances.com" ascii
		$net2 = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36" fullword ascii
		$net3 = "http://10." ascii
		$net4 = "JiM9t8g7j8KoJkLJlKqka8dbo7q5z4v5u3o4z" ascii
		$net5 = "application/octet-stream" ascii
		$net6 = "Content-Disposition: form-data; name=\"%s\"; filename=\"%s\"" ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 5 of ( $s* ) or 4 of ( $net* ) or 7 of them )
}

Strings (13 patterns)

IdentifierTypeValueModifiers
$s1text"DefPipe"fullword ascii
$s2text"term %5d"fullword ascii
$s3text"pid %5d"fullword ascii
$s4text"uptime %5d.%02dh"fullword ascii
$s5text"login: %s\\%s"fullword ascii
$s6text"Software\\Microsoft\\ApplicationManager"ascii
$s7hex{ 69 64 6c 65 ?? 00 73 74 6f 70 ?? 00 61 63 63 65 70 74 ?? 00 63 6f 6e 6e 65 63 74 ?? 00 6c 69 73 74 65 6e ?? 00 }
$net1text"salesappliances.com"ascii
$net2text"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36"fullword ascii
$net3text"http://10."ascii
$net4text"JiM9t8g7j8KoJkLJlKqka8dbo7q5z4v5u3o4z"ascii
$net5text"application/octet-stream"ascii
$net6text"Content-Disposition: form-data; name=\"%s\"; filename=\"%s\""ascii

Condition

uint16( 0 ) == 0x5a4d and ( 5 of ( $s* ) or 4 of ( $net* ) or 7 of them )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 5 patterns in ( $s* ) must match.
  • At least 4 patterns in ( $net* ) must match.
  • At least 7 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: 947cd414-d19d-5543-8961-94aef69cc94e

Tags:FILE