Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Dlinjector01

Detects specific downloader injector shellcode

MalwareDlinjector01ditekSHen 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 specific downloader injector shellcode

Associated malware family: Dlinjector01.

Targets: Windows PE.

It defines 13 patterns (7 text, 6 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-dlinjector01.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Dlinjector01 : FILE
{
	meta:
		description = "Detects specific downloader injector shellcode"
		author = "ditekSHen"
		id = "c5e0946c-3e15-5ebc-b1b5-3f00566dc5cd"
		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#L5995-L6015"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "5c13af5fdbb2e8a27103d9502126a82d0bff15d9a269b22e4279b5b459d50e2d"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "process call create \"%s\"" ascii wide
		$s2 = "\\REGISTRY\\MACHINE\\System\\CurrentControlSet\\Enum\\" ascii wide
		$s3 = "%systemroot%\\system32\\ntdll.dll" ascii wide
		$s4 = "qemu-ga.exe" ascii wide
		$s5 = "prl_tools.exe" ascii wide
		$s6 = "vboxservice.exe" ascii wide
		$o1 = { 75 04 74 02 38 6e 8b 34 24 83 c4 04 eb 0a 08 81 }
		$o2 = { 16 f8 f7 ba f0 3d 87 c7 95 13 b7 64 22 be e1 59 }
		$o3 = { 8b 0c 24 83 c4 04 eb 05 ea f2 eb ef 05 e8 ad fe }
		$o4 = { eb 05 1d 51 eb f5 ce e8 80 fd ff ff 77 a1 f4 cd }
		$o5 = { eb 05 6e 33 eb f5 73 e8 64 f6 ff ff 77 a1 f4 77 }
		$o6 = { 59 eb 05 fd 98 eb f4 50 e8 d5 f5 ff ff 3b b9 00 }
		$o7 = "bYkoDA7G" fullword ascii

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

Strings (13 patterns)

IdentifierTypeValueModifiers
$s1text"process call create \"%s\""ascii wide
$s2text"\\REGISTRY\\MACHINE\\System\\CurrentControlSet\\Enum\\"ascii wide
$s3text"%systemroot%\\system32\\ntdll.dll"ascii wide
$s4text"qemu-ga.exe"ascii wide
$s5text"prl_tools.exe"ascii wide
$s6text"vboxservice.exe"ascii wide
$o1hex{ 75 04 74 02 38 6e 8b 34 24 83 c4 04 eb 0a 08 81 }
$o2hex{ 16 f8 f7 ba f0 3d 87 c7 95 13 b7 64 22 be e1 59 }
$o3hex{ 8b 0c 24 83 c4 04 eb 05 ea f2 eb ef 05 e8 ad fe }
$o4hex{ eb 05 1d 51 eb f5 ce e8 80 fd ff ff 77 a1 f4 cd }
$o5hex{ eb 05 6e 33 eb f5 73 e8 64 f6 ff ff 77 a1 f4 77 }
$o6hex{ 59 eb 05 fd 98 eb f4 50 e8 d5 f5 ff ff 3b b9 00 }
$o7text"bYkoDA7G"fullword ascii

Condition

( uint16( 0 ) == 0x5a4d and all of ( $o* ) ) or ( all of ( $s* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $o* ) must match.
  • All patterns in ( $s* ) 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: c5e0946c-3e15-5ebc-b1b5-3f00566dc5cd

Tags:FILE