YARA · SEKOIA.IO Community
SEKOIA_Ransomware_Win_Shrinklocker
Detects files related to the ShrinkLocker ransomware
- Author
- Sekoia.io
- Date
- 2024-06-07
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detects files related to the ShrinkLocker ransomware
Associated malware family: Shrinklocker.
It defines 11 patterns (11 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
ransomware-win-shrinklocker.yarDetection Rule License 1.1
rule SEKOIA_Ransomware_Win_Shrinklocker
{
meta:
= "Detects files related to the ShrinkLocker ransomware"
= "Sekoia.io"
= "93a6fbdd-ad62-456a-a1a5-b5ae3b242004"
= "2024-06-07"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/ransomware_win_shrinklocker.yar#L1-L25"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "7770b0946b9bb482f23c4ce0d753393e0d42a6fd8b31029847d74356296f0cf1"
= 75
= 80
= ""
= "1.0"
= "TLP:CLEAR"
strings:
$a = "shrinkdisk" ascii fullword
$b = "BitLocker" ascii fullword
$c = "diskpart" ascii fullword
$d = "disk.vbs" ascii fullword
$e = "strDriveLetter" ascii fullword
$f = "shrinkcomplate" ascii fullword
$g = "ADODB.Stream" ascii fullword
$h = "Win32_OperatingSystem" ascii fullword
$i = "HKLM\\System\\CurrentControlSet\\Control\\Terminal Server" ascii fullword
$j = "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System" ascii fullword
$k = "HKLM\\SOFTWARE\\Policies\\Microsoft\\FVE" ascii fullword
condition:
9 of them
}
Strings (11 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $a | text | "shrinkdisk" | ascii fullword |
| $b | text | "BitLocker" | ascii fullword |
| $c | text | "diskpart" | ascii fullword |
| $d | text | "disk.vbs" | ascii fullword |
| $e | text | "strDriveLetter" | ascii fullword |
| $f | text | "shrinkcomplate" | ascii fullword |
| $g | text | "ADODB.Stream" | ascii fullword |
| $h | text | "Win32_OperatingSystem" | ascii fullword |
| $i | text | "HKLM\\System\\CurrentControlSet\\Control\\Terminal Server" | ascii fullword |
| $j | text | "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System" | ascii fullword |
| $k | text | "HKLM\\SOFTWARE\\Policies\\Microsoft\\FVE" | ascii fullword |
Condition
9 of themIn plain words (Heuristic)
- At least 9 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: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 93a6fbdd-ad62-456a-a1a5-b5ae3b242004
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Related rules
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20