YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Lorenz
Detects Lorenz ransomware
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 73
What this rule detects
Detects Lorenz ransomware
Associated malware family: Lorenz.
Targets: Windows PE.
It defines 23 patterns (22 text, 0 hex, 1 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-lorenz.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Lorenz : FILE
{
meta:
= "Detects Lorenz ransomware"
= "ditekSHen"
= "9c11cfbc-aa77-5138-81e4-3a5f4f21a470"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L9235-L9265"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "e9fc9d405b955c379ae40b1804d43b19999f6ea264fc645c897080fb020e8ae8"
= 75
= 73
= "FILE"
strings:
$x1 = "143.198.117.43" fullword ascii
$x2 = "157.90.147.28" fullword ascii
$x3 = "//kpb3ss3vwvfejd4g3gvpvqo6ad7nnmvcqoik4mxt2376yu2adlg5fwyd.onion" ascii
$x4 = "http://lorenz" ascii
$x5 = "\\lora\\Release\\lora.pdb" ascii
$x6 = "--MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQ" ascii
$x7 = "/USER:'HOMEOFFICE.COM\\" ascii
$x8 = "/USER:'Sentinel.com\\" ascii
$s1 = "to->_What == nullptr && to->_DoFree == false" fullword wide
$s2 = "*it == '\\0'" fullword wide
$s3 = "process call create 'cmd.exe /c" ascii
$s4 = "\\Control Panel\\Desktop\" /V Wallpaper /T REG_SZ /F /D" ascii
$s5 = "HELP_SECURITY_EVENT.html" ascii
$s6 = "<br>[+] Whats Happen?" ascii
$s7 = /\.Lorenz\.sz\d+$/ fullword ascii
$s8 = "TW9Vc29Db3JlV29ya2VyLmV4ZQ==" fullword ascii
$s9 = ".Speak(\"You've been hack" ascii nocase
$s10 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAo" ascii
$n1 = "ame_serv=" ascii
$n2 = "&ip=" ascii
$n3 = "&winver=Windows" ascii
$n4 = "&list_drive=" ascii
$n5 = "&file=" ascii
condition:
uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or 8 of ( $s* ) or ( 4 of ( $n* ) and 2 of them ) or ( 1 of ( $x* ) and 6 of them ) )
}
Strings (23 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "143.198.117.43" | fullword ascii |
| $x2 | text | "157.90.147.28" | fullword ascii |
| $x3 | text | "//kpb3ss3vwvfejd4g3gvpvqo6ad7nnmvcqoik4mxt2376yu2adlg5fwyd.onion" | ascii |
| $x4 | text | "http://lorenz" | ascii |
| $x5 | text | "\\lora\\Release\\lora.pdb" | ascii |
| $x6 | text | "--MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQ" | ascii |
| $x7 | text | "/USER:'HOMEOFFICE.COM\\" | ascii |
| $x8 | text | "/USER:'Sentinel.com\\" | ascii |
| $s1 | text | "to->_What == nullptr && to->_DoFree == false" | fullword wide |
| $s2 | text | "*it == '\\0'" | fullword wide |
| $s3 | text | "process call create 'cmd.exe /c" | ascii |
| $s4 | text | "\\Control Panel\\Desktop\" /V Wallpaper /T REG_SZ /F /D" | ascii |
| $s5 | text | "HELP_SECURITY_EVENT.html" | ascii |
| $s6 | text | "<br>[+] Whats Happen?" | ascii |
| $s7 | regex | /\.Lorenz\.sz\d+$/ | fullword ascii |
| $s8 | text | "TW9Vc29Db3JlV29ya2VyLmV4ZQ==" | fullword ascii |
| $s9 | text | ".Speak(\"You've been hack" | ascii nocase |
| $s10 | text | "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAo" | ascii |
| $n1 | text | "ame_serv=" | ascii |
| $n2 | text | "&ip=" | ascii |
| $n3 | text | "&winver=Windows" | ascii |
| $n4 | text | "&list_drive=" | ascii |
| $n5 | text | "&file=" | ascii |
Condition
uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or 8 of ( $s* ) or ( 4 of ( $n* ) and 2 of them ) or ( 1 of ( $x* ) and 6 of them ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 2 patterns in ( $x* ) must match.
- At least 8 patterns in ( $s* ) must match.
- At least 4 patterns in ( $n* ) must match.
- At least 2 patterns in the rule must match.
- At least 1 patterns in ( $x* ) must match.
- At least 6 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.
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).
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 9c11cfbc-aa77-5138-81e4-3a5f4f21a470
Tags:FILE
Related rules
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-05-04
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-02-10
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06