Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Lummastealer

Detects Lumma Stealer

MalwareLummastealerditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
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:
		description = "Detects Lumma Stealer"
		author = "ditekSHen"
		id = "b54521ab-4a31-5c1c-8ef2-b08b0f713693"
		date = "2034-02-17"
		date = "2034-02-17"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L9829-L9854"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "74014c5bcc85977b90faed93b348c34e47ee033b06c2f145348ca9c54c27bda5"
		score = 75
		quality = 73
		tags = "FILE"
		clamav1 = "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)

IdentifierTypeValueModifiers
$x1regex/Lum[0-9]{3}xedmaC2,\sBuild/ascii
$x2regex/LID\(Lu[0-9]{3}xedmma\sID\):/ascii
$s1regex/os_c[0-9]{3}xedrypt\.encry[0-9]{3}xedpted_key/fullword ascii
$s2text"c2sock"wide
$s3text"c2conf"wide
$s4text"TeslaBrowser/"wide
$s5text"Software.txt"fullword wide
$s6text"SysmonDrv"fullword
$s7text"*.eml"fullword wide nocase
$s8text"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall"wide
$s9text"- Screen Resoluton:"ascii
$s10text"lid=%s"ascii
$s11text"&ver="ascii
$s12text"769cb9aa22f4ccc412f9cbc81feedd"fullword wide
$s13text"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.

Open in editor

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

Original rule

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

clamav1MALWARE.Win.Trojan.LummaStealer

Tags:FILE