Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Dlinjector02

Detects downloader injector

MalwareDlinjector02ditekSHen 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: Dlinjector02.

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-dlinjector02.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Dlinjector02 : FILE
{
	meta:
		description = "Detects downloader injector"
		author = "ditekSHen"
		id = "ce2c418d-18e4-579c-9828-94e294385846"
		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#L6017-L6034"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "76d185cfcbc7f4996c2fb5c7c1ba4eb20b32d322d8ff47594283a4ca3e573a0b"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$x1 = "In$J$ct0r" fullword wide
		$x2 = "%InJ%ector%" fullword wide
		$a1 = "WriteProcessMemory" fullword wide
		$a2 = "URLDownloadToFileA" fullword ascii
		$a3 = "Wow64SetThreadContext" fullword wide
		$a4 = "VirtualAllocEx" fullword wide
		$s1 = "RunPE" fullword wide
		$s2 = "SETTINGS" fullword wide
		$s3 = "net.pipe" fullword wide
		$s4 = "vsmacros" fullword wide

	condition:
		uint16( 0 ) == 0x5a4d and ( 1 of ( $x* ) or ( all of ( $a* ) and 3 of ( $s* ) ) )
}

Strings (10 patterns)

IdentifierTypeValueModifiers
$x1text"In$J$ct0r"fullword wide
$x2text"%InJ%ector%"fullword wide
$a1text"WriteProcessMemory"fullword wide
$a2text"URLDownloadToFileA"fullword ascii
$a3text"Wow64SetThreadContext"fullword wide
$a4text"VirtualAllocEx"fullword wide
$s1text"RunPE"fullword wide
$s2text"SETTINGS"fullword wide
$s3text"net.pipe"fullword wide
$s4text"vsmacros"fullword wide

Condition

uint16( 0 ) == 0x5a4d and ( 1 of ( $x* ) or ( all of ( $a* ) and 3 of ( $s* ) ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $a* ) must match.
  • At least 1 patterns in ( $x* ) must match.
  • At least 3 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: ce2c418d-18e4-579c-9828-94e294385846

Tags:FILE