YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Surtr
Detects Surtr ransomware. Ransom note is similar to LockFile
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects Surtr ransomware. Ransom note is similar to LockFile
Associated malware family: Surtr.
Targets: Windows PE.
It defines 11 patterns (10 text, 0 hex, 1 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule DITEKSHEN_MALWARE_Win_Surtr : FILE
{
meta:
= "Detects Surtr ransomware. Ransom note is similar to LockFile"
= "ditekSHen"
= "7a31415d-5c03-5537-9adb-65e637f9fa0e"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L9356-L9378"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "a8db5588079d471d8904f0444973973a0c01dbec1ccbe3d43a34d41a0dde495d"
= 75
= 75
= "FILE"
strings:
$s1 = "<title>SurtrRansomware</title>" ascii
$s2 = "<HTA:APPLICATION ID=\"SurtrRansomware\"" ascii
$s3 = "APPLICATIONNAME=\"SurtrRansomware\"" ascii
$s4 = "src=\"data:image/jpeg; base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wCEAAgICAgJCAkKCgkNDgwODRMREBARExwUFhQWFBwrGx8bGx8bKyYuJSMlLiZENS8v" ascii
$s5 = "4rbgxisigb4pxnloxzc265rmzaj7fslrhyouegtrph2a7xhh55r6xaid.onion" ascii
$s6 = "schtasks /CREATE /SC ONLOGON /TN svchos" wide
$s7 = "reg add HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\\ /v \"svchos" ascii
$s8 = "reg add HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce\\ /v \"svchos" ascii
$s9 = "SURTR_README.txt" wide
$s10 = "surtr-decrypt.top" ascii
$s11 = /(Public|Private|ID)_DATA\.surt/ wide
condition:
uint16( 0 ) == 0x5a4d and 4 of them
}
Strings (11 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "<title>SurtrRansomware</title>" | ascii |
| $s2 | text | "<HTA:APPLICATION ID=\"SurtrRansomware\"" | ascii |
| $s3 | text | "APPLICATIONNAME=\"SurtrRansomware\"" | ascii |
| $s4 | text | "src=\"data:image/jpeg; base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wCEAAgICAgJCAkKCgkNDgwODRMREBARExwUFhQWFBwrGx8bGx8bKyYuJSMlLiZENS8v" | ascii |
| $s5 | text | "4rbgxisigb4pxnloxzc265rmzaj7fslrhyouegtrph2a7xhh55r6xaid.onion" | ascii |
| $s6 | text | "schtasks /CREATE /SC ONLOGON /TN svchos" | wide |
| $s7 | text | "reg add HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\\ /v \"svchos" | ascii |
| $s8 | text | "reg add HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce\\ /v \"svchos" | ascii |
| $s9 | text | "SURTR_README.txt" | wide |
| $s10 | text | "surtr-decrypt.top" | ascii |
| $s11 | regex | /(Public|Private|ID)_DATA\.surt/ | 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.
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: 7a31415d-5c03-5537-9adb-65e637f9fa0e
Tags:FILE
Related rules
- 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
- MalwareditekSHen detection· ditekSHen· 2020-11-06