Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Ransomware_Win_Lorenz

Detect the Lorenz ransomware

MalwareLorenzSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2022-02-10
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detect the Lorenz ransomware

Associated malware family: Lorenz.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

ransomware-win-lorenz.yarDetection Rule License 1.1
rule SEKOIA_Ransomware_Win_Lorenz : FILE
{
	meta:
		description = "Detect the Lorenz ransomware"
		author = "Sekoia.io"
		id = "6936cc61-efe5-4d13-b76f-e808ab331457"
		date = "2022-02-10"
		modified = "2024-12-19"
		reference = "https://www.cybereason.com/blog/cybereason-vs.-lorenz-ransomware"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/ransomware_win_lorenz.yar#L1-L27"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "355de0f172c9e877bbca7f75c0bfb07d83ae7f43e7674a7f84c4e4d519dfa7c0"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.1"
		classification = "TLP:CLEAR"

	strings:
		$s1 = ".onion" ascii
		$s2 = "---===Lorenz. Welcome. Again. ===--" ascii
		$s3 = ".Lorenz.sz40" ascii
		$url1 = "egypghtljedbs3x3ui45tfhosakzb376epl7baq2ruzfyewcypswhgqd.onion" ascii
		$url2 = "lorenzmlwpzgxq736jzseuterytjueszsvznuibanxomlpkyxk6ksoyd.onion" ascii
		$url3 = "vsoonropylvbfqnq2urk7uhaxn7afiwgldnj3ntc743awigojm4p7lid.onion" ascii
		$url4 = "kpb3ss3vwvfejd4g3gvpvqo6ad7nnmvcqoik4mxt2376yu2adlg5fwyd.onion" ascii
		$url5 = "vldkrmiqriwlgm2wuxg42nvc6kqsdzsdhsybn27hyn34d66465fxz7id.onion" ascii

	condition:
		uint16( 0 ) == 0x5a4d and filesize > 900KB and filesize < 1200KB and ( all of ( $s* ) or 1 of ( $url* ) )
}

Strings (8 patterns)

IdentifierTypeValueModifiers
$s1text".onion"ascii
$s2text"---===Lorenz. Welcome. Again. ===--"ascii
$s3text".Lorenz.sz40"ascii
$url1text"egypghtljedbs3x3ui45tfhosakzb376epl7baq2ruzfyewcypswhgqd.onion"ascii
$url2text"lorenzmlwpzgxq736jzseuterytjueszsvznuibanxomlpkyxk6ksoyd.onion"ascii
$url3text"vsoonropylvbfqnq2urk7uhaxn7afiwgldnj3ntc743awigojm4p7lid.onion"ascii
$url4text"kpb3ss3vwvfejd4g3gvpvqo6ad7nnmvcqoik4mxt2376yu2adlg5fwyd.onion"ascii
$url5text"vldkrmiqriwlgm2wuxg42nvc6kqsdzsdhsybn27hyn34d66465fxz7id.onion"ascii

Condition

uint16( 0 ) == 0x5a4d and filesize > 900KB and filesize < 1200KB and ( all of ( $s* ) or 1 of ( $url* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must be smaller than 1200KB (a cheap guard that skips large files).
  • The file must be larger than 900KB.
  • All patterns in ( $s* ) must match.
  • At least 1 patterns in ( $url* ) 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: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 6936cc61-efe5-4d13-b76f-e808ab331457

Metadata

version1.1
classificationTLP:CLEAR

Tags:FILE

More Lorenz rules