YARA · SEKOIA.IO Community
SEKOIA_Ransomware_Win_Lorenz
Detect the Lorenz ransomware
- 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:
= "Detect the Lorenz ransomware"
= "Sekoia.io"
= "6936cc61-efe5-4d13-b76f-e808ab331457"
= "2022-02-10"
= "2024-12-19"
= "https://www.cybereason.com/blog/cybereason-vs.-lorenz-ransomware"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/ransomware_win_lorenz.yar#L1-L27"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "355de0f172c9e877bbca7f75c0bfb07d83ae7f43e7674a7f84c4e4d519dfa7c0"
= 75
= 80
= "FILE"
= "1.1"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | ".onion" | ascii |
| $s2 | text | "---===Lorenz. Welcome. Again. ===--" | ascii |
| $s3 | text | ".Lorenz.sz40" | ascii |
| $url1 | text | "egypghtljedbs3x3ui45tfhosakzb376epl7baq2ruzfyewcypswhgqd.onion" | ascii |
| $url2 | text | "lorenzmlwpzgxq736jzseuterytjueszsvznuibanxomlpkyxk6ksoyd.onion" | ascii |
| $url3 | text | "vsoonropylvbfqnq2urk7uhaxn7afiwgldnj3ntc743awigojm4p7lid.onion" | ascii |
| $url4 | text | "kpb3ss3vwvfejd4g3gvpvqo6ad7nnmvcqoik4mxt2376yu2adlg5fwyd.onion" | ascii |
| $url5 | text | "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.
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
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
| version | 1.1 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-05-04
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20