YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Lummastealer
Detects Lumma Stealer
- Author
- ditekSHen
- Date
- 2034-02-17
- Modified
- 2024-11-01
- Score / Quality
- 75 / 73
What this rule detects
Detects Lumma Stealer
Associated malware family: Lummastealer.
Targets: Windows PE.
It defines 15 patterns (12 text, 0 hex, 3 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-lummastealer.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Lummastealer : FILE
{
meta:
= "Detects Lumma Stealer"
= "ditekSHen"
= "b54521ab-4a31-5c1c-8ef2-b08b0f713693"
= "2034-02-17"
= "2034-02-17"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L9829-L9854"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "74014c5bcc85977b90faed93b348c34e47ee033b06c2f145348ca9c54c27bda5"
= 75
= 73
= "FILE"
= "MALWARE.Win.Trojan.LummaStealer"
strings:
$x1 = /Lum[0-9]{3}xedmaC2,\sBuild/ ascii
$x2 = /LID\(Lu[0-9]{3}xedmma\sID\):/ ascii
$s1 = /os_c[0-9]{3}xedrypt\.encry[0-9]{3}xedpted_key/ fullword ascii
$s2 = "c2sock" wide
$s3 = "c2conf" wide
$s4 = "TeslaBrowser/" wide
$s5 = "Software.txt" fullword wide
$s6 = "SysmonDrv" fullword
$s7 = "*.eml" fullword wide nocase
$s8 = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall" wide
$s9 = "- Screen Resoluton:" ascii
$s10 = "lid=%s" ascii
$s11 = "&ver=" ascii
$s12 = "769cb9aa22f4ccc412f9cbc81feedd" fullword wide
$s13 = "gapi-node.io" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or ( 1 of ( $x* ) and 2 of ( $s* ) ) or 5 of ( $s* ) or 7 of them )
}
Strings (15 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | regex | /Lum[0-9]{3}xedmaC2,\sBuild/ | ascii |
| $x2 | regex | /LID\(Lu[0-9]{3}xedmma\sID\):/ | ascii |
| $s1 | regex | /os_c[0-9]{3}xedrypt\.encry[0-9]{3}xedpted_key/ | fullword ascii |
| $s2 | text | "c2sock" | wide |
| $s3 | text | "c2conf" | wide |
| $s4 | text | "TeslaBrowser/" | wide |
| $s5 | text | "Software.txt" | fullword wide |
| $s6 | text | "SysmonDrv" | fullword |
| $s7 | text | "*.eml" | fullword wide nocase |
| $s8 | text | "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall" | wide |
| $s9 | text | "- Screen Resoluton:" | ascii |
| $s10 | text | "lid=%s" | ascii |
| $s11 | text | "&ver=" | ascii |
| $s12 | text | "769cb9aa22f4ccc412f9cbc81feedd" | fullword wide |
| $s13 | text | "gapi-node.io" | fullword ascii |
Condition
uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or ( 1 of ( $x* ) and 2 of ( $s* ) ) or 5 of ( $s* ) or 7 of them )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $x* ) must match.
- At least 1 patterns in ( $x* ) must match.
- At least 2 patterns in ( $s* ) must match.
- At least 5 patterns in ( $s* ) must match.
- At least 7 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.
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: b54521ab-4a31-5c1c-8ef2-b08b0f713693
Metadata
| clamav1 | MALWARE.Win.Trojan.LummaStealer |
|---|
Tags:FILE
Related rules
- 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
- MalwareditekSHen detection· ditekSHen· 2020-11-06