Skip to content

YARA · CAPE Sandbox (CAPEv2)

CAPE_Lumma_1

Lumma config extraction

MalwareLummaCAPE Sandbox (CAPEv2)GNU General Public License v3.0Compiles with YARA-X
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:
		description = "Lumma config extraction"
		author = "kevoreilly"
		id = "b2166620-3070-5727-b189-e6959cc5b698"
		date = "2024-01-05"
		modified = "2024-05-09"
		reference = "https://github.com/kevoreilly/CAPEv2"
		source_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/analyzer/windows/data/yara/Lumma.yar#L1-L14"
		license_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
		logic_hash = "a8f9212b619796f91f14c4164e4d2f30c66b51118f22f3d6c310841b6707b7b0"
		score = 75
		quality = 70
		tags = "FILE"
		cape_options = "bp0=$decode+5,action0=string:ebp,count=0,bp1=$patch+8,action1=skip,typestring=Lumma Config"
		packed = "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)

IdentifierTypeValueModifiers
$c2hex{8D 44 24 ?? 50 89 4C 24 ?? FF 31 E8 [4] 83 C4 08 B8 FF FF FF FF}
$decodehex{C6 44 05 00 00 83 C4 2C 5E 5F 5B 5D C3}
$patchhex{66 C7 0? 00 00 8B 46 1? C6 00 01 8B}

Condition

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

In 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.

Open in editor

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.

Original rule

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_optionsbp0=$decode+5,action0=string:ebp,count=0,bp1=$patch+8,action1=skip,typestring=Lumma Config
packed0ee580f0127b821f4f1e7c032cf76475df9724a9fade2e153a69849f652045f8

Tags:FILE

More Lumma rules