Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Lockdown

Detects Lockdown / cantopen ransomware

MalwareLockdownditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 73

What this rule detects

Detects Lockdown / cantopen ransomware

Associated malware family: Lockdown.

Targets: Windows PE.

It defines 6 patterns (6 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-lockdown.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Lockdown : FILE
{
	meta:
		description = "Detects Lockdown / cantopen ransomware"
		author = "ditekSHen"
		id = "793df99d-016a-5f96-9ff9-76d3f08e0dd2"
		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#L9463-L9476"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "a9bc2f514730703f3edf78a61f1bc357eee12b3289fc7491197c3b885286ca7e"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$s1 = "BgIAAACkAABSU0E" wide
		$s2 = ".cantopen" fullword wide
		$s3 = "\\HELP_DECRYPT_YOUR_FILES.txt" wide
		$s4 = "SALT" fullword wide
		$s5 = "$4e677664-9a63-458e-a365-deb792509557" fullword ascii
		$s6 = "CreateEncryptor" fullword ascii

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

Strings (6 patterns)

IdentifierTypeValueModifiers
$s1text"BgIAAACkAABSU0E"wide
$s2text".cantopen"fullword wide
$s3text"\\HELP_DECRYPT_YOUR_FILES.txt"wide
$s4text"SALT"fullword wide
$s5text"$4e677664-9a63-458e-a365-deb792509557"fullword ascii
$s6text"CreateEncryptor"fullword ascii

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: 793df99d-016a-5f96-9ff9-76d3f08e0dd2

Tags:FILE