Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Prolock

ProLock ransomware payload

MalwareProlockditekSHen 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

ProLock ransomware payload

Associated malware family: Prolock.

Targets: Windows PE.

It defines 8 patterns (7 text, 1 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-prolock.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Prolock : FILE
{
	meta:
		description = "ProLock ransomware payload"
		author = "ditekSHen"
		id = "88fa19ba-238c-5d4d-bf0c-d421ee2ecf1d"
		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#L1397-L1413"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "b7d2cc71acc4f643a86781d957afcf5203a2f4034b9ca7da93e8227ddee79f3b"
		score = 75
		quality = 75
		tags = "FILE"
		clamav_sig = "MALWARE.Win.Ransomware.ProLock"

	strings:
		$s1 = ".flat" fullword ascii
		$s2 = ".data" fullword ascii
		$s3 = ".api" fullword ascii
		$s4 = "RtlZeroMemory" fullword ascii
		$s5 = "LoadLibraryA" fullword ascii
		$s6 = "Sleep" fullword ascii
		$s7 = "lstrcatA" fullword ascii
		$s8 = { 55 89 E5 8B 45 08 EB 00 89 45 EC 8D 15 4F 10 40 00 8D 05 08 10 40 00 83 E8 08 29 C2 8B 45 EC 01 C2 31 }

	condition:
		uint16( 0 ) == 0x5a4d and all of them
}

Strings (8 patterns)

IdentifierTypeValueModifiers
$s1text".flat"fullword ascii
$s2text".data"fullword ascii
$s3text".api"fullword ascii
$s4text"RtlZeroMemory"fullword ascii
$s5text"LoadLibraryA"fullword ascii
$s6text"Sleep"fullword ascii
$s7text"lstrcatA"fullword ascii
$s8hex{ 55 89 E5 8B 45 08 EB 00 89 45 EC 8D 15 4F 10 40 00 8D 05 08 10 40 00 83 E8 08 29 C2 8B 45 EC 01 C2 31 }

Condition

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

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All 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: 88fa19ba-238c-5d4d-bf0c-d421ee2ecf1d

Metadata

clamav_sigMALWARE.Win.Ransomware.ProLock

Tags:FILE

More Prolock rules