YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_Mal_Lockbit4_Hashing_Alg_Win_Feb24
This rule detects the custom hashing algorithm of Lockbit4.0 unpacked
- Author
- 0x0d4y
- Date
- 2024-02-16
- Modified
- 2026-05-15
- Score / Quality
- 100 / 85
What this rule detects
This rule detects the custom hashing algorithm of Lockbit4.0 unpacked
Associated malware family: Lockbit.
Targets: Windows PE.
It defines 1 patterns (0 text, 1 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SIGNATURE_BASE_Mal_Lockbit4_Hashing_Alg_Win_Feb24 : FILE
{
meta:
= "This rule detects the custom hashing algorithm of Lockbit4.0 unpacked"
= "0x0d4y"
= "e91aedba-6f70-4ca2-9217-2991cbbc6e8d"
= "2024-02-16"
= "2026-05-15"
= "https://0x0d4y.blog/lockbit4-0-evasion-tales/"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/mal_lockbit4_hashing_alg_win_feb24.yar#L1-L22"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "062311f136d83f64497fd81297360cd4"
= "41497ea30a4cfdd111726a5819ec404a1eeba1693f5d6b89ac38558eb1c6bde9"
= 100
= 85
= "FILE"
= "CC BY 4.0"
= "TLP:WHITE"
= "TLP:WHITE"
= "win.lockbit"
strings:
$hashing_alg = { 41 89 d0 46 0f be 04 00 45 09 c0 74 ?? 45 8d 48 ?? 45 8d 50 ?? 41 80 f9 ?? 45 0f 43 d0 44 31 d1 44 8d 04 3a 45 0f af c2 41 01 c8 89 d1 31 f9 09 d2 0f 44 ca 41 0f af c8 44 01 d1 ff c2 eb ?? 49 ff c6 }
condition:
uint16( 0 ) == 0x5a4d and $hashing_alg
}
Strings (1 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $hashing_alg | hex | { 41 89 d0 46 0f be 04 00 45 09 c0 74 ?? 45 8d 48 ?? 45 8d 50 ?? 41 80 f9 ?? 45 0f 43 d0 44 31 d1 44 8d 04 3a 45 0f af c2 41 01 c8 89 d1 31 f9 09 d2 0f 44 ca 41 … |
Condition
uint16( 0 ) == 0x5a4d and $hashing_algIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- Pattern $hashing_alg must be present.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- 062311f136d83f64497fd81297360cd4
Licence & attribution
Author: 0x0d4y
Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licence: Creative Commons Attribution 4.0 (stated in the rule's own meta)
“CC BY 4.0”
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: e91aedba-6f70-4ca2-9217-2991cbbc6e8d
Metadata
| rule_matching_tlp | TLP:WHITE |
|---|---|
| rule_sharing_tlp | TLP:WHITE |
| malpedia_family | win.lockbit |
Tags:FILE
Related rules
- MalwareSignature Base (Florian Roth / Nextron)· 0x0d4y· 2024-02-16
- MalwareSignature Base (Florian Roth / Nextron)· 0x0d4y· 2024-02-13
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-04-15
- MalwareSignature Base (Florian Roth / Nextron)· X__Junior· 2023-11-23
- MalwareSignature Base (Florian Roth / Nextron)· X__Junior· 2023-11-23
- MalwareSignature Base (Florian Roth / Nextron)· X__Junior· 2023-11-23
- MalwareSignature Base (Florian Roth / Nextron)· X__Junior· 2023-11-23
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth· 2024-02-23