YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Cryptolocker
Detects Cryptolocker ransomware variants (Betarasite)
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 73
What this rule detects
Detects Cryptolocker ransomware variants (Betarasite)
Associated malware family: Cryptolocker.
Targets: Windows PE.
It defines 15 patterns (15 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule DITEKSHEN_MALWARE_Win_Cryptolocker : FILE
{
meta:
= "Detects Cryptolocker ransomware variants (Betarasite)"
= "ditekSHen"
= "4c6d714d-1fb1-55ce-8022-40f6f634e2cd"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L4730-L4752"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "e1700e8ace338c25119305878e8bc52210506bd42183007985ba9601abdab87b"
= 75
= 73
= "FILE"
strings:
$x1 = "CryptoLocker" fullword wide
$x2 = ".betarasite" fullword wide
$x3 = "CMSTPBypass" fullword ascii
$s1 = "CommandToExecute" fullword ascii
$s2 = "SetInfFile" fullword ascii
$s3 = "SchoolPrject1" ascii
$s4 = "$730d5f64-bd57-47c1-9af4-d20aec714d02" fullword ascii
$s5 = "Encrypt" fullword ascii
$s6 = "Invalide Key! Please Try Again." fullword wide
$s7 = "RegAsm" fullword wide
$s8 = "Your key will be destroyed" wide
$s9 = "encrypted using RC4 and RSA-2048" wide
$c1 = "https://coinbase.com" fullword wide
$c2 = "https://localbictoins.com" fullword wide
$c3 = "https://bitpanda.com" fullword wide
condition:
uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or all of ( $s* ) or ( 2 of ( $x* ) and 5 of ( $s* ) ) or ( all of ( $c* ) and 1 of ( $x* ) and 2 of ( $s* ) ) )
}
Strings (15 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "CryptoLocker" | fullword wide |
| $x2 | text | ".betarasite" | fullword wide |
| $x3 | text | "CMSTPBypass" | fullword ascii |
| $s1 | text | "CommandToExecute" | fullword ascii |
| $s2 | text | "SetInfFile" | fullword ascii |
| $s3 | text | "SchoolPrject1" | ascii |
| $s4 | text | "$730d5f64-bd57-47c1-9af4-d20aec714d02" | fullword ascii |
| $s5 | text | "Encrypt" | fullword ascii |
| $s6 | text | "Invalide Key! Please Try Again." | fullword wide |
| $s7 | text | "RegAsm" | fullword wide |
| $s8 | text | "Your key will be destroyed" | wide |
| $s9 | text | "encrypted using RC4 and RSA-2048" | wide |
| $c1 | text | "https://coinbase.com" | fullword wide |
| $c2 | text | "https://localbictoins.com" | fullword wide |
| $c3 | text | "https://bitpanda.com" | fullword wide |
Condition
uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or all of ( $s* ) or ( 2 of ( $x* ) and 5 of ( $s* ) ) or ( all of ( $c* ) and 1 of ( $x* ) and 2 of ( $s* ) ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $x* ) must match.
- All patterns in ( $s* ) must match.
- All patterns in ( $c* ) must match.
- At least 2 patterns in ( $x* ) must match.
- At least 5 patterns in ( $s* ) must match.
- At least 1 patterns in ( $x* ) must match.
- At least 2 patterns in ( $s* ) 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.
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: 4c6d714d-1fb1-55ce-8022-40f6f634e2cd
Tags:FILE
Related rules
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- 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
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06