Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Redlinedropperexe

Detects executables dropping RedLine infostealer

MalwareRedlinedropperexeditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X (with warnings)
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 75

What this rule detects

Detects executables dropping RedLine infostealer

Associated malware family: Redlinedropperexe.

Targets: Windows PE.

It defines 7 patterns (7 text, 0 hex, 0 regex). YARA modules used: pe.

YARA-X says: warning[deprecated_field]: field `number_of_sections` is deprecated

Summary generated from the rule's metadata and condition.

Rule source

Includes the imports needed to compile it on its own.

malware-win-redlinedropperexe.yarBSD 2-Clause License
import "pe"

rule DITEKSHEN_MALWARE_Win_Redlinedropperexe : FILE
{
	meta:
		description = "Detects executables dropping RedLine infostealer"
		author = "ditekSHen"
		id = "364ba540-60a5-5e1b-bb21-505a442eabb6"
		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#L2461-L2484"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "cd1fb4a1d0883221dbdcc519db7f54b0f7285e8a19201dbc586c2520e8086bc2"
		score = 75
		quality = 75
		tags = "FILE"
		clamav_sig = "MALWARE.Win.Trojan.RedLineDropper-EXE"

	strings:
		$s1 = "Wizutezinod togeto0Rowadufevomuki futenujilazem jic lefogatenezinor" fullword wide
		$s2 = "6Tatafamobevofaj bizafoju peyovavacoco lizine kezakajuj" fullword wide
		$s3 = "Lawuherusozeru kucu zam0Zorizeyuk lepaposupu gala kinarusot ruvasaxehuwo" fullword wide
		$s4 = "ClearEventLogW" fullword ascii
		$s5 = "ProductionVersion" fullword wide
		$s6 = "Vasuko)Yugenizugilobo toxocivoriye yexozoyohuzeb" wide
		$s7 = "Yikezevavuzus gucajanesan#Rolapucededoxu xewulep fuwehofiwifi" wide

	condition:
		uint16( 0 ) == 0x5a4d and ( pe.exports ( "_fgeek@8" ) and 2 of them ) or ( 2 of them and for any i in ( 0 .. pe.number_of_sections ) : ( ( pe.sections [ i ] . name == ".rig" ) ) )
}

Strings (7 patterns)

IdentifierTypeValueModifiers
$s1text"Wizutezinod togeto0Rowadufevomuki futenujilazem jic lefogatenezinor"fullword wide
$s2text"6Tatafamobevofaj bizafoju peyovavacoco lizine kezakajuj"fullword wide
$s3text"Lawuherusozeru kucu zam0Zorizeyuk lepaposupu gala kinarusot ruvasaxehuwo"fullword wide
$s4text"ClearEventLogW"fullword ascii
$s5text"ProductionVersion"fullword wide
$s6text"Vasuko)Yugenizugilobo toxocivoriye yexozoyohuzeb"wide
$s7text"Yikezevavuzus gucajanesan#Rolapucededoxu xewulep fuwehofiwifi"wide

Condition

uint16( 0 ) == 0x5a4d and ( pe.exports ( "_fgeek@8" ) and 2 of them ) or ( 2 of them and for any i in ( 0 .. pe.number_of_sections ) : ( ( pe.sections [ i ] . name == ".rig" ) ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 2 patterns in the rule must match.
  • A for-loop checks a property over several matches or items.
  • Uses the pe module.
  • Checks exported functions or the DLL name.
  • Checks PE sections (names, count or properties).

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: 364ba540-60a5-5e1b-bb21-505a442eabb6

Metadata

clamav_sigMALWARE.Win.Trojan.RedLineDropper-EXE

Tags:FILE