YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Babylockerkz
Detects BabyLockerKZ
- Author
- ditekshen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects BabyLockerKZ
Associated malware family: Babylockerkz.
Targets: Windows PE.
It defines 11 patterns (11 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-babylockerkz.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Babylockerkz : FILE
{
meta:
= "Detects BabyLockerKZ"
= "ditekshen"
= "faa35818-2bed-528f-a6f0-5356a723ef5b"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11939-L11957"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "423bbd3b23591608a32e4e724c156fbaa5d1d087515137a82a0aeb8c4865d1ca"
= 75
= 75
= "FILE"
strings:
$s1 = ":\\locker\\bin\\stub_win_x64_encrypter.pdb" ascii
$s2 = "taskkill /f /im explorer.exe" fullword wide
$s3 = "\\SysWOW64\\cmd.exe /c %windir%\\" wide
$s4 = "[!] Failed to RunNonElevated: %s, error 0x%X" fullword wide
$s5 = "[!] Failed to run sync command: %s, error 0x%X" fullword wide
$s6 = "[-] RunNonElevated: %s" fullword wide
$s7 = "[!][Encrypt] Not" fullword
$s8 = "[-] sALLUSERSPROFILE: %s" fullword wide
$s9 = "[!] WNetGetConnection failed 0x%X" fullword wide
$s10 = "[!][Scan] " wide
$s11 = "[-] Start encrypt" wide
condition:
uint16( 0 ) == 0x5a4d and 4 of them
}
Strings (11 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | ":\\locker\\bin\\stub_win_x64_encrypter.pdb" | ascii |
| $s2 | text | "taskkill /f /im explorer.exe" | fullword wide |
| $s3 | text | "\\SysWOW64\\cmd.exe /c %windir%\\" | wide |
| $s4 | text | "[!] Failed to RunNonElevated: %s, error 0x%X" | fullword wide |
| $s5 | text | "[!] Failed to run sync command: %s, error 0x%X" | fullword wide |
| $s6 | text | "[-] RunNonElevated: %s" | fullword wide |
| $s7 | text | "[!][Encrypt] Not" | fullword |
| $s8 | text | "[-] sALLUSERSPROFILE: %s" | fullword wide |
| $s9 | text | "[!] WNetGetConnection failed 0x%X" | fullword wide |
| $s10 | text | "[!][Scan] " | wide |
| $s11 | text | "[-] Start encrypt" | wide |
Condition
uint16( 0 ) == 0x5a4d and 4 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 4 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: ditekshen
Source repository: ditekSHen detection @ e76c93dcde
Licence: BSD 2-Clause License (repository licence)
Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: faa35818-2bed-528f-a6f0-5356a723ef5b
Tags:FILE
Related rules
- MalwareditekSHen detection· ditekshen· 2020-11-06
- MalwareditekSHen detection· ditekshen· 2020-11-06
- MalwareditekSHen detection· ditekshen· 2020-11-06
- MalwareditekSHen detection· ditekshen· 2020-11-06
- MalwareditekSHen detection· ditekshen· 2020-11-06
- MalwareditekSHen detection· ditekshen· 2020-11-06
- MalwareditekSHen detection· ditekshen· 2020-11-06
- MalwareditekSHen detection· ditekshen· 2020-11-06