Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Lu0Bot

Detects Lu0Bot

MalwareLu0BotditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 75

What this rule detects

Detects Lu0Bot

Associated malware family: Lu0Bot.

Targets: Windows PE.

It defines 4 patterns (2 text, 2 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-lu0bot.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Lu0Bot : FILE
{
	meta:
		description = "Detects Lu0Bot"
		author = "ditekSHen"
		id = "f8595553-b911-5e30-9ece-cad7d5913f19"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7274-L7285"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "b4822248230a804b1dc75f8d517af28a621dab1746c9ef45eaa4754149ce0cba"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "WinExec" fullword ascii
		$s2 = "AlignRects" fullword ascii
		$o1 = { be 00 20 40 00 89 f7 89 f0 81 c7 a? 01 00 00 81 }
		$o2 = { 53 50 e8 b0 01 00 00 e9 99 01 00 00 e8 ae 01 00 }

	condition:
		uint16( 0 ) == 0x5a4d and filesize < 4KB and 1 of ( $s* ) and all of ( $o* )
}

Strings (4 patterns)

IdentifierTypeValueModifiers
$s1text"WinExec"fullword ascii
$s2text"AlignRects"fullword ascii
$o1hex{ be 00 20 40 00 89 f7 89 f0 81 c7 a? 01 00 00 81 }
$o2hex{ 53 50 e8 b0 01 00 00 e9 99 01 00 00 e8 ae 01 00 }

Condition

uint16( 0 ) == 0x5a4d and filesize < 4KB and 1 of ( $s* ) and all of ( $o* )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must be smaller than 4KB (a cheap guard that skips large files).
  • All patterns in ( $o* ) must match.
  • At least 1 patterns in ( $s* ) 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: f8595553-b911-5e30-9ece-cad7d5913f19

Tags:FILE