Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Dlinjector04

Detects downloader / injector

MalwareDlinjector04ditekSHen 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 downloader / injector

Associated malware family: Dlinjector04.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-dlinjector04.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Dlinjector04 : FILE
{
	meta:
		description = "Detects downloader / injector"
		author = "ditekSHen"
		id = "fe423aee-6ff4-5fd0-9fa2-51dd0c27f54b"
		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#L7769-L7790"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "ab9a047e53dec2cc5986522636783b5cb8aae7fc0297292d017ec22ee5750cce"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "Runner" fullword ascii
		$s2 = "DownloadPayload" fullword ascii
		$s3 = "RunOnStartup" fullword ascii
		$a1 = "Antis" fullword ascii
		$a2 = "antiVM" fullword ascii
		$a3 = "antiSandbox" fullword ascii
		$a4 = "antiDebug" fullword ascii
		$a5 = "antiEmulator" fullword ascii
		$a6 = "enablePersistence" fullword ascii
		$a7 = "enableFakeError" fullword ascii
		$a8 = "DetectVirtualMachine" fullword ascii
		$a9 = "DetectSandboxie" fullword ascii
		$a10 = "DetectDebugger" fullword ascii
		$a11 = "CheckEmulator" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( ( all of ( $s* ) and 5 of ( $a* ) ) or 10 of ( $a* ) )
}

Strings (14 patterns)

IdentifierTypeValueModifiers
$s1text"Runner"fullword ascii
$s2text"DownloadPayload"fullword ascii
$s3text"RunOnStartup"fullword ascii
$a1text"Antis"fullword ascii
$a2text"antiVM"fullword ascii
$a3text"antiSandbox"fullword ascii
$a4text"antiDebug"fullword ascii
$a5text"antiEmulator"fullword ascii
$a6text"enablePersistence"fullword ascii
$a7text"enableFakeError"fullword ascii
$a8text"DetectVirtualMachine"fullword ascii
$a9text"DetectSandboxie"fullword ascii
$a10text"DetectDebugger"fullword ascii
$a11text"CheckEmulator"fullword ascii

Condition

uint16( 0 ) == 0x5a4d and ( ( all of ( $s* ) and 5 of ( $a* ) ) or 10 of ( $a* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $s* ) must match.
  • At least 5 patterns in ( $a* ) must match.
  • At least 10 patterns in ( $a* ) 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: fe423aee-6ff4-5fd0-9fa2-51dd0c27f54b

Tags:FILE