Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Surtr

Detects Surtr ransomware. Ransom note is similar to LockFile

MalwareSurtrditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
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

malware-win-surtr.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Surtr : FILE
{
	meta:
		description = "Detects Surtr ransomware. Ransom note is similar to LockFile"
		author = "ditekSHen"
		id = "7a31415d-5c03-5537-9adb-65e637f9fa0e"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L9356-L9378"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "a8db5588079d471d8904f0444973973a0c01dbec1ccbe3d43a34d41a0dde495d"
		score = 75
		quality = 75
		tags = "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)

IdentifierTypeValueModifiers
$s1text"<title>SurtrRansomware</title>"ascii
$s2text"<HTA:APPLICATION ID=\"SurtrRansomware\""ascii
$s3text"APPLICATIONNAME=\"SurtrRansomware\""ascii
$s4text"src=\"data:image/jpeg; base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wCEAAgICAgJCAkKCgkNDgwODRMREBARExwUFhQWFBwrGx8bGx8bKyYuJSMlLiZENS8v"ascii
$s5text"4rbgxisigb4pxnloxzc265rmzaj7fslrhyouegtrph2a7xhh55r6xaid.onion"ascii
$s6text"schtasks /CREATE /SC ONLOGON /TN svchos"wide
$s7text"reg add HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\\ /v \"svchos"ascii
$s8text"reg add HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce\\ /v \"svchos"ascii
$s9text"SURTR_README.txt"wide
$s10text"surtr-decrypt.top"ascii
$s11regex/(Public|Private|ID)_DATA\.surt/wide

Condition

uint16( 0 ) == 0x5a4d and 4 of them

In 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.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

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).

Original rule

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