YARA · CAPE Sandbox (CAPEv2)
CAPE_Lumma
Lumma Payload
- Author
- kevoreilly
- Date
- 2024-01-05
- Modified
- 2025-07-08
- Score / Quality
- 75 / 70
What this rule detects
Lumma Payload
Associated malware family: Lumma.
Targets: Windows PE.
It defines 4 patterns (0 text, 4 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
lumma.yarGNU General Public License v3.0
rule CAPE_Lumma : FILE
{
meta:
= "Lumma Payload"
= "kevoreilly"
= "66cb8b1a-e27e-5008-8f52-0e52e6624057"
= "2024-01-05"
= "2025-07-08"
= "https://github.com/kevoreilly/CAPEv2"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/Lumma.yar#L1-L16"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
= "ca7822292c58af68e7a1610362bf0b5d27c93e3222ceec8d216e05a442008f37"
= 75
= 70
= "FILE"
= "Lumma Payload"
= "0ee580f0127b821f4f1e7c032cf76475df9724a9fade2e153a69849f652045f8"
= "23ff1c20b16d9afaf1ce443784fc9a025434a010e2194de9dec041788c369887"
strings:
$decode1 = {C1 (E9|EA) 02 [0-3] 0F B6 (44|4C) ?? FF 83 (F8|F9) 3D 74 05 83 (F8|F9) 2E 75 01 (49|4A) [0-30] 2E 75}
$decode2 = {B0 40 C3 B0 3F C3 89 C8 04 D0 3C 09 77 06 80 C1 04 89 C8 C3 89 C8 04 BF 3C}
$decode3 = {B0 40 C3 B0 3F C3 80 F9 30 72 ?? 80 F9 39 77 06 80 C1 04 89 C8 C3}
$decode4 = {89 C8 04 D0 3C 09 77 ?? [3-11] 89 C8 [0-1] C3 89 C8 04 BF 3C 1A 72 ?? 89 C8 04 9F 3C}
condition:
uint16( 0 ) == 0x5a4d and any of them
}
Strings (4 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $decode1 | hex | {C1 (E9|EA) 02 [0-3] 0F B6 (44|4C) ?? FF 83 (F8|F9) 3D 74 05 83 (F8|F9) 2E 75 01 (49|4A) [0-30] 2E 75} | |
| $decode2 | hex | {B0 40 C3 B0 3F C3 89 C8 04 D0 3C 09 77 06 80 C1 04 89 C8 C3 89 C8 04 BF 3C} | |
| $decode3 | hex | {B0 40 C3 B0 3F C3 80 F9 30 72 ?? 80 F9 39 77 06 80 C1 04 89 C8 C3} | |
| $decode4 | hex | {89 C8 04 D0 3C 09 77 ?? [3-11] 89 C8 [0-1] C3 89 C8 04 BF 3C 1A 72 ?? 89 C8 04 9F 3C} |
Condition
uint16( 0 ) == 0x5a4d and any of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least one pattern 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: 66cb8b1a-e27e-5008-8f52-0e52e6624057
Metadata
| cape_type | Lumma Payload |
|---|---|
| packed | 0ee580f0127b821f4f1e7c032cf76475df9724a9fade2e153a69849f652045f8 |
| packed | 23ff1c20b16d9afaf1ce443784fc9a025434a010e2194de9dec041788c369887 |
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