YARA · CAPE Sandbox (CAPEv2)
CAPE_Lumma_1
Lumma config extraction
- Author
- kevoreilly
- Date
- 2024-01-05
- Modified
- 2024-05-09
- Score / Quality
- 75 / 70
What this rule detects
Lumma config extraction
Associated malware family: Lumma.
Targets: Windows PE.
It defines 3 patterns (0 text, 3 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
lumma-1.yarGNU General Public License v3.0
rule CAPE_Lumma_1 : FILE
{
meta:
= "Lumma config extraction"
= "kevoreilly"
= "b2166620-3070-5727-b189-e6959cc5b698"
= "2024-01-05"
= "2024-05-09"
= "https://github.com/kevoreilly/CAPEv2"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/analyzer/windows/data/yara/Lumma.yar#L1-L14"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
= "a8f9212b619796f91f14c4164e4d2f30c66b51118f22f3d6c310841b6707b7b0"
= 75
= 70
= "FILE"
= "bp0=$decode+5,action0=string:ebp,count=0,bp1=$patch+8,action1=skip,typestring=Lumma Config"
= "0ee580f0127b821f4f1e7c032cf76475df9724a9fade2e153a69849f652045f8"
strings:
$c2 = {8D 44 24 ?? 50 89 4C 24 ?? FF 31 E8 [4] 83 C4 08 B8 FF FF FF FF}
$decode = {C6 44 05 00 00 83 C4 2C 5E 5F 5B 5D C3}
$patch = {66 C7 0? 00 00 8B 46 1? C6 00 01 8B}
condition:
uint16( 0 ) == 0x5a4d and 2 of them
}
Strings (3 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $c2 | hex | {8D 44 24 ?? 50 89 4C 24 ?? FF 31 E8 [4] 83 C4 08 B8 FF FF FF FF} | |
| $decode | hex | {C6 44 05 00 00 83 C4 2C 5E 5F 5B 5D C3} | |
| $patch | hex | {66 C7 0? 00 00 8B 46 1? C6 00 01 8B} |
Condition
uint16( 0 ) == 0x5a4d and 2 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 2 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: kevoreilly
Source repository: CAPE Sandbox (CAPEv2) @ 6b15e76f28
Licence: GNU General Public License v3.0 (repository licence)
Copyright notice: Cuckoo Sandbox is copyrighted by the Cuckoo Foundation.
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: b2166620-3070-5727-b189-e6959cc5b698
Metadata
| cape_options | bp0=$decode+5,action0=string:ebp,count=0,bp1=$patch+8,action1=skip,typestring=Lumma Config |
|---|---|
| packed | 0ee580f0127b821f4f1e7c032cf76475df9724a9fade2e153a69849f652045f8 |
Tags:FILE
Related rules
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2024-01-05
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2024-01-05
- MalwareSEKOIA.IO Community· Sekoia.io· 2023-09-14
- MalwareEmbee Research· Matthew @ Embee_Research· 2023-09-13
- MalwareEmbee Research· Matthew @ Embee_Research· 2023-09-13
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2026-07-31
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2024-02-26