YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Redlinedropperahk
Detects AutoIt/AutoHotKey executables dropping RedLine infostealer
- 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
rule DITEKSHEN_MALWARE_Win_Redlinedropperahk : FILE
{
meta:
= "Detects AutoIt/AutoHotKey executables dropping RedLine infostealer"
= "ditekSHen"
= "16eee826-f1fd-5a6f-b6f3-e02ccd889614"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L1866-L1878"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "0950fe9daa02f3a8fd527f75275766111be7e8774578963b0bdb455800dfc4f9"
= 75
= 75
= "FILE"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | ".SetRequestHeader(\"User-Agent\",\" ( \" OSName \" | \" bit \" | \" CPUNAme \"\"" | ascii |
| $s2 | text | ":= \" | Windows Defender\"" | ascii |
| $s3 | text | "WindowSpy.ahk" | wide |
| $s4 | text | ">AUTOHOTKEY SCRIPT<" | fullword wide |
Condition
uint16( 0 ) == 0x5a4d and all of themIn 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.
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).
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_sig | MALWARE.Win.Trojan.RedLineDropper-AHK |
|---|
Tags:FILE
Related rules
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06