Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Redlinedropperahk

Detects AutoIt/AutoHotKey executables dropping RedLine infostealer

MalwareRedlinedropperahkditekSHen 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 AutoIt/AutoHotKey executables dropping RedLine infostealer

Associated malware family: Redlinedropperahk.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-redlinedropperahk.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Redlinedropperahk : FILE
{
	meta:
		description = "Detects AutoIt/AutoHotKey executables dropping RedLine infostealer"
		author = "ditekSHen"
		id = "16eee826-f1fd-5a6f-b6f3-e02ccd889614"
		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#L1866-L1878"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "0950fe9daa02f3a8fd527f75275766111be7e8774578963b0bdb455800dfc4f9"
		score = 75
		quality = 75
		tags = "FILE"
		clamav_sig = "MALWARE.Win.Trojan.RedLineDropper-AHK"

	strings:
		$s1 = ".SetRequestHeader(\"User-Agent\",\" ( \" OSName \" | \" bit \" | \" CPUNAme \"\"" ascii
		$s2 = ":= \" | Windows Defender\"" ascii
		$s3 = "WindowSpy.ahk" wide
		$s4 = ">AUTOHOTKEY SCRIPT<" fullword wide

	condition:
		uint16( 0 ) == 0x5a4d and all of them
}

Strings (4 patterns)

IdentifierTypeValueModifiers
$s1text".SetRequestHeader(\"User-Agent\",\" ( \" OSName \" | \" bit \" | \" CPUNAme \"\""ascii
$s2text":= \" | Windows Defender\""ascii
$s3text"WindowSpy.ahk"wide
$s4text">AUTOHOTKEY SCRIPT<"fullword wide

Condition

uint16( 0 ) == 0x5a4d and all of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All 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: 16eee826-f1fd-5a6f-b6f3-e02ccd889614

Metadata

clamav_sigMALWARE.Win.Trojan.RedLineDropper-AHK

Tags:FILE