YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Lockfile
Detects LockFile ransomware
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 71
Qué detecta esta regla
Detects LockFile ransomware
Familia de malware asociada: Lockfile.
Objetivos: PE de Windows.
Define 9 patrones (9 de texto, 0 hex, 0 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
rule DITEKSHEN_MALWARE_Win_Lockfile : FILE
{
meta:
= "Detects LockFile ransomware"
= "ditekSHen"
= "762ac376-43ff-56d2-b279-2879ce6d8542"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7998-L8014"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "28c8aa8931d599e5a1860fe2ed0b8172e709dad1a48a319858a907fa775af293"
= 75
= 71
= "FILE"
strings:
$x1 = "LOCKFILE" fullword ascii
$x2 = "25a01bb859125507013a2fe9737d3c33" fullword ascii
$s1 = "</key>" fullword ascii
$s2 = "<computername>%s</computername>" fullword ascii
$s3 = "<blocknum>%d</blocknum>" fullword ascii
$s4 = "%s\\%s-%s-%d%s" fullword ascii
$s5 = ">RAC=OQD:S>P@:AO?R:EEOS:ARDD=N?EENSB" ascii wide
$m1 = "<title>LOCKFILE</title>" ascii wide nocase
$m2 = "<hta:application id=LOCKFILE applicationName=LOCKFILE" ascii wide nocase
condition:
uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or all of ( $s* ) or ( 1 of ( $x* ) and ( 2 of ( $s* ) or 1 of ( $m* ) ) ) or ( 1 of ( $m* ) and ( 1 of ( $x* ) or 2 of ( $s* ) ) ) )
}
Cadenas (9 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $x1 | texto | "LOCKFILE" | fullword ascii |
| $x2 | texto | "25a01bb859125507013a2fe9737d3c33" | fullword ascii |
| $s1 | texto | "</key>" | fullword ascii |
| $s2 | texto | "<computername>%s</computername>" | fullword ascii |
| $s3 | texto | "<blocknum>%d</blocknum>" | fullword ascii |
| $s4 | texto | "%s\\%s-%s-%d%s" | fullword ascii |
| $s5 | texto | ">RAC=OQD:S>P@:AO?R:EEOS:ARDD=N?EENSB" | ascii wide |
| $m1 | texto | "<title>LOCKFILE</title>" | ascii wide nocase |
| $m2 | texto | "<hta:application id=LOCKFILE applicationName=LOCKFILE" | ascii wide nocase |
Condición
uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or all of ( $s* ) or ( 1 of ( $x* ) and ( 2 of ( $s* ) or 1 of ( $m* ) ) ) or ( 1 of ( $m* ) and ( 1 of ( $x* ) or 2 of ( $s* ) ) ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir todos los patrones de ( $x* ).
- Deben coincidir todos los patrones de ( $s* ).
- Deben coincidir al menos 1 patrones de ( $x* ).
- Deben coincidir al menos 2 patrones de ( $s* ).
- Deben coincidir al menos 1 patrones de ( $m* ).
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: 762ac376-43ff-56d2-b279-2879ce6d8542
Etiquetas:FILE
Reglas relacionadas
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- ARKBIRD_SOLG_MAL_Loader_Lockfile_Aug_2021_1Solo metadatosMalwareArkbird SOLG (DailyIOC)· Arkbird_SOLG· 2021-08-28
- 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