YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Mountlocker
Detects MountLocker ransomware
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects MountLocker ransomware
Associated malware family: Mount Locker.
Targets: Windows PE.
It defines 8 patterns (8 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-mountlocker.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Mountlocker : FILE
{
meta:
= "Detects MountLocker ransomware"
= "ditekSHen"
= "0590d08d-1ee8-5dfe-af12-15b149acd2d6"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L5725-L5740"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "30bc601fef60cc1c9d8bff5dd3f8a53214f088b74eb24fe2369f5664613e0eaf"
= 75
= 75
= "FILE"
strings:
$s1 = "] locker.dir.check > " ascii wide
$s2 = "] locekr.kill." ascii wide
$s3 = "] locker.worm" ascii wide
$s4 = "%CLIENT_ID%" fullword ascii
$s5 = "RecoveryManual.html" ascii wide
$s6 = "RECOVERY MANUAL" ascii
$s7 = ".ReadManual.%0.8X" ascii wide
$s8 = "/?cid=%CLIENT_ID%" ascii
condition:
uint16( 0 ) == 0x5a4d and 3 of them
}
Strings (8 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "] locker.dir.check > " | ascii wide |
| $s2 | text | "] locekr.kill." | ascii wide |
| $s3 | text | "] locker.worm" | ascii wide |
| $s4 | text | "%CLIENT_ID%" | fullword ascii |
| $s5 | text | "RecoveryManual.html" | ascii wide |
| $s6 | text | "RECOVERY MANUAL" | ascii |
| $s7 | text | ".ReadManual.%0.8X" | ascii wide |
| $s8 | text | "/?cid=%CLIENT_ID%" | ascii |
Condition
uint16( 0 ) == 0x5a4d and 3 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 3 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: 0590d08d-1ee8-5dfe-af12-15b149acd2d6
Tags:FILE
Related rules
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- ARKBIRD_SOLG_RAN_Mountlocker_May_2021_1Metadata onlyMalwareArkbird SOLG (DailyIOC)· Arkbird_SOLG· 2020-05-12
- ARKBIRD_SOLG_Ran_Mount_Locker_Nov_2020_1Metadata onlyMalwareArkbird SOLG (DailyIOC)· Arkbird_SOLG· 2020-11-20
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06