YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Rapid
Detects Rapid ransomware
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects Rapid ransomware
Associated malware family: Rapid.
Targets: Windows PE.
It defines 15 patterns (14 text, 0 hex, 1 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-rapid.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Rapid : FILE
{
meta:
= "Detects Rapid ransomware"
= "ditekSHen"
= "3a23f344-8345-5ae8-aacb-f2f422d3fc9d"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L8563-L8585"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "c3f1bffeb402951da8bcccc899b2cdeb3c218b342d8338c750b9ff275537b4b5"
= 75
= 75
= "FILE"
strings:
$s1 = "encblklen" fullword ascii
$s2 = ".rapid" fullword ascii
$s3 = "BgIAAACkAABSU0E" ascii
$s4 = "IFdlIHNlbmQ" ascii
$s5 = "Software\\EncryptKeys" fullword ascii
$s6 = "local_enc_private_key" fullword ascii
$s7 = "local_public_key" fullword ascii
$s8 = "How Recovery Files.txt" ascii
$s9 = "recovery.txt" ascii
$s10 = "thr %i run %s" fullword ascii
$s11 = " /TN Encrypter" ascii
$s12 = /Encrypter_\d+/ fullword ascii
$s13 = "BleepingComputer_rapid" ascii wide
$m1 = "tell us your unique ID - ID-" ascii
$m2 = "really want to restore your files?" ascii
condition:
uint16( 0 ) == 0x5a4d and ( 6 of ( $s* ) or ( 1 of ( $m* ) and 4 of ( $s* ) ) )
}
Strings (15 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "encblklen" | fullword ascii |
| $s2 | text | ".rapid" | fullword ascii |
| $s3 | text | "BgIAAACkAABSU0E" | ascii |
| $s4 | text | "IFdlIHNlbmQ" | ascii |
| $s5 | text | "Software\\EncryptKeys" | fullword ascii |
| $s6 | text | "local_enc_private_key" | fullword ascii |
| $s7 | text | "local_public_key" | fullword ascii |
| $s8 | text | "How Recovery Files.txt" | ascii |
| $s9 | text | "recovery.txt" | ascii |
| $s10 | text | "thr %i run %s" | fullword ascii |
| $s11 | text | " /TN Encrypter" | ascii |
| $s12 | regex | /Encrypter_\d+/ | fullword ascii |
| $s13 | text | "BleepingComputer_rapid" | ascii wide |
| $m1 | text | "tell us your unique ID - ID-" | ascii |
| $m2 | text | "really want to restore your files?" | ascii |
Condition
uint16( 0 ) == 0x5a4d and ( 6 of ( $s* ) or ( 1 of ( $m* ) and 4 of ( $s* ) ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 6 patterns in ( $s* ) must match.
- At least 1 patterns in ( $m* ) must match.
- At least 4 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.
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: 3a23f344-8345-5ae8-aacb-f2f422d3fc9d
Tags:FILE
Related rules
- Suspicious / huntingditekSHen detection· ditekShen· 2021-01-21
- 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