YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Lorenz
Detects Lorenz ransomware
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 73
Qué detecta esta regla
Detects Lorenz ransomware
Familia de malware asociada: Lorenz.
Objetivos: PE de Windows.
Define 23 patrones (22 de texto, 0 hex, 1 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
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 ) )
}
Cadenas (23 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $x1 | texto | "143.198.117.43" | fullword ascii |
| $x2 | texto | "157.90.147.28" | fullword ascii |
| $x3 | texto | "//kpb3ss3vwvfejd4g3gvpvqo6ad7nnmvcqoik4mxt2376yu2adlg5fwyd.onion" | ascii |
| $x4 | texto | "http://lorenz" | ascii |
| $x5 | texto | "\\lora\\Release\\lora.pdb" | ascii |
| $x6 | texto | "--MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQ" | ascii |
| $x7 | texto | "/USER:'HOMEOFFICE.COM\\" | ascii |
| $x8 | texto | "/USER:'Sentinel.com\\" | ascii |
| $s1 | texto | "to->_What == nullptr && to->_DoFree == false" | fullword wide |
| $s2 | texto | "*it == '\\0'" | fullword wide |
| $s3 | texto | "process call create 'cmd.exe /c" | ascii |
| $s4 | texto | "\\Control Panel\\Desktop\" /V Wallpaper /T REG_SZ /F /D" | ascii |
| $s5 | texto | "HELP_SECURITY_EVENT.html" | ascii |
| $s6 | texto | "<br>[+] Whats Happen?" | ascii |
| $s7 | regex | /\.Lorenz\.sz\d+$/ | fullword ascii |
| $s8 | texto | "TW9Vc29Db3JlV29ya2VyLmV4ZQ==" | fullword ascii |
| $s9 | texto | ".Speak(\"You've been hack" | ascii nocase |
| $s10 | texto | "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAo" | ascii |
| $n1 | texto | "ame_serv=" | ascii |
| $n2 | texto | "&ip=" | ascii |
| $n3 | texto | "&winver=Windows" | ascii |
| $n4 | texto | "&list_drive=" | ascii |
| $n5 | texto | "&file=" | ascii |
Condición
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 ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 2 patrones de ( $x* ).
- Deben coincidir al menos 8 patrones de ( $s* ).
- Deben coincidir al menos 4 patrones de ( $n* ).
- Deben coincidir al menos 2 patrones de la regla.
- Deben coincidir al menos 1 patrones de ( $x* ).
- Deben coincidir al menos 6 patrones de la regla.
Prueba esta regla en tu navegador
Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.
Referencias
Licencia y atribución
Autor: ditekSHen
Repositorio de origen: ditekSHen detection @ e76c93dcde
Licencia: BSD 2-Clause License (licencia del repositorio)
Aviso de copyright: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Obtenida a través de YARA Forge 20260927, que añade a los nombres el prefijo de la fuente y campos meta normalizados.
Id de la regla: 9c11cfbc-aa77-5138-81e4-3a5f4f21a470
Etiquetas:FILE
Reglas relacionadas
- 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