YARA · CAPE Sandbox (CAPEv2)
CAPE_Lockbit
Lockbit Payload
- Author
- kevoreilly
- Date
- 2020-05-14
- Modified
- 2022-06-09
- Score / Quality
- 75 / 70
What this rule detects
Lockbit Payload
Associated malware family: Lockbit.
Targets: Windows PE.
It defines 5 patterns (2 text, 3 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
lockbit.yarGNU General Public License v3.0
rule CAPE_Lockbit : FILE
{
meta:
= "Lockbit Payload"
= "kevoreilly"
= "ec9b4fec-0233-5277-b922-07057c2b4b34"
= "2020-05-14"
= "2022-06-09"
= "https://github.com/kevoreilly/CAPEv2"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/Lockbit.yar#L1-L15"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
= "80ab705c8246a0bd5b3de65146cf32b102f39bf9444bdf1d366b5a794c1229b9"
= 75
= 70
= "FILE"
= "Lockbit Payload"
strings:
$string1 = "/C ping 127.0.0.7 -n 3 > Nul & fsutil file setZeroData offset=0 length=524288 \"%s\" & Del /f /q \"%s\"" wide
$string2 = "Ransom" ascii wide
$crypto = {8B 4D 08 C1 E9 10 0F B6 D1 8B 4D 0C C1 E9 08 0F B6 C9 8B 14 95 [4] 8B 7D FC 33 14 8D [4] 8B CF C1 E9 18 33 14 8D [4] 0F B6 CB 33 14 8D [4] 8B CF 33 10}
$decode1 = {8A ?4 34 ?C 0? 00 00 8B 8? 24 ?8 0? 00 00 0F BE ?? 0F BE C? 33 ?? 88 ?? 34 ?? 0? 00 00 46 83 FE 0? 72 DD}
$decode2 = {8A 44 24 ?? 30 44 0C ?? 41 83 F9 ?? 72 F2}
condition:
uint16( 0 ) == 0x5A4D and ( 2 of them )
}
Strings (5 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $string1 | text | "/C ping 127.0.0.7 -n 3 > Nul & fsutil file setZeroData offset=0 length=524288 \"%s\" & Del /f /q \"%s\"" | wide |
| $string2 | text | "Ransom" | ascii wide |
| $crypto | hex | {8B 4D 08 C1 E9 10 0F B6 D1 8B 4D 0C C1 E9 08 0F B6 C9 8B 14 95 [4] 8B 7D FC 33 14 8D [4] 8B CF C1 E9 18 33 14 8D [4] 0F B6 CB 33 14 8D [4] 8B CF 33 10} | |
| $decode1 | hex | {8A ?4 34 ?C 0? 00 00 8B 8? 24 ?8 0? 00 00 0F BE ?? 0F BE C? 33 ?? 88 ?? 34 ?? 0? 00 00 46 83 FE 0? 72 DD} | |
| $decode2 | hex | {8A 44 24 ?? 30 44 0C ?? 41 83 F9 ?? 72 F2} |
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.
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: ec9b4fec-0233-5277-b922-07057c2b4b34
Metadata
| cape_type | Lockbit Payload |
|---|
Tags:FILE
Related rules
- MalwareSignature Base (Florian Roth / Nextron)· 0x0d4y· 2024-02-16
- 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