YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Medusalocker
Detects MedusaLocker ransomware
- Autor
- ditekshen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 73
Qué detecta esta regla
Detects MedusaLocker ransomware
Familia de malware asociada: Medusalocker.
Objetivos: PE de Windows.
Define 20 patrones (18 de texto, 2 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_Medusalocker : FILE
{
meta:
= "Detects MedusaLocker ransomware"
= "ditekshen"
= "06b7645f-228d-5ec1-9b82-88caee447a5c"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L2506-L2537"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "0e2a0a9f12f550a5c6a11731710e0dc2c2e26d17f43d2385bf6e298518631771"
= 75
= 73
= "FILE"
= "MALWARE.Win.Ransomware.MedusaLocker"
strings:
$x1 = "\\MedusaLockerInfo\\MedusaLockerProject\\MedusaLocker\\Release\\MedusaLocker.pdb" ascii
$x2 = "SOFTWARE\\Medusa" wide
$x3 = "=?utf-8?B?0RFQctTF0YDQcNC60IXQvdC+IEludGVybmV0IED4cGxvseVyIDEz?=" ascii
$s1 = "Recovery_Instructions.mht" fullword wide
$s2 = "README_LOCK.TXT" fullword wide
$s3 = "C:\\Users\\Public\\Desktop" wide
$s4 = "[LOCKER] " wide
$s5 = "TmV3LUl0ZW0gJ2" ascii
$s6 = "<HEAD>=20" ascii
$s7 = "LIST OF ENCRYPTED FILES" ascii
$s8 = "KEY.FILE" ascii
$cmd1 = { 2f 00 63 00 20 00 64 00 65 00 6c 00 20 00 00 00 20 00 3e 00 3e 00 20 00 4e 00 55 00 4c 00 }
$cmd2 = "vssadmin.exe delete" wide nocase
$cmd3 = "bcdedit.exe /set {default}" wide
$cmd4 = "wbadmin delete systemstatebackup" wide nocase
$mut1 = "{8761ABBD-7F85-42EE-B272-A76179687C63}" fullword wide
$mut2 = "{3E5FC7F9-9A51-4367-9063-A120244FBEC7}" fullword wide
$mut3 = "{6EDD6D74-C007-4E75-B76A-E5740995E24C}" fullword wide
$ext1 = { 2e 00 52 00 65 00 61 00 64 00 49 00 6e 00 73 00
74 00 72 00 75 00 63 00 74 00 69 00 6f 00 6e 00
73 00 00 00 00 00 00 00 2e 00 6b 00 65 00 76 00
65 00 72 00 73 00 65 00 6e }
$ext2 = ".exe,.dll,.sys,.ini,.lnk,.rdp,.encrypted" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or ( 1 of ( $x* ) and ( 4 of ( $s* ) or 1 of ( $mut* ) ) ) or 6 of ( $s* ) or ( 1 of ( $mut* ) and 2 of ( $cmd* ) ) or ( 1 of ( $ext* ) and 5 of them ) )
}
Cadenas (20 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $x1 | texto | "\\MedusaLockerInfo\\MedusaLockerProject\\MedusaLocker\\Release\\MedusaLocker.pdb" | ascii |
| $x2 | texto | "SOFTWARE\\Medusa" | wide |
| $x3 | texto | "=?utf-8?B?0RFQctTF0YDQcNC60IXQvdC+IEludGVybmV0IED4cGxvseVyIDEz?=" | ascii |
| $s1 | texto | "Recovery_Instructions.mht" | fullword wide |
| $s2 | texto | "README_LOCK.TXT" | fullword wide |
| $s3 | texto | "C:\\Users\\Public\\Desktop" | wide |
| $s4 | texto | "[LOCKER] " | wide |
| $s5 | texto | "TmV3LUl0ZW0gJ2" | ascii |
| $s6 | texto | "<HEAD>=20" | ascii |
| $s7 | texto | "LIST OF ENCRYPTED FILES" | ascii |
| $s8 | texto | "KEY.FILE" | ascii |
| $cmd1 | hex | { 2f 00 63 00 20 00 64 00 65 00 6c 00 20 00 00 00 20 00 3e 00 3e 00 20 00 4e 00 55 00 4c 00 } | |
| $cmd2 | texto | "vssadmin.exe delete" | wide nocase |
| $cmd3 | texto | "bcdedit.exe /set {default}" | wide |
| $cmd4 | texto | "wbadmin delete systemstatebackup" | wide nocase |
| $mut1 | texto | "{8761ABBD-7F85-42EE-B272-A76179687C63}" | fullword wide |
| $mut2 | texto | "{3E5FC7F9-9A51-4367-9063-A120244FBEC7}" | fullword wide |
| $mut3 | texto | "{6EDD6D74-C007-4E75-B76A-E5740995E24C}" | fullword wide |
| $ext1 | hex | { 2e 00 52 00 65 00 61 00 64 00 49 00 6e 00 73 00 74 00 72 00 75 00 63 00 74 00 69 00 6f 00 6e 00 73 00 00 00 00 00 00 00 2 … | |
| $ext2 | texto | ".exe,.dll,.sys,.ini,.lnk,.rdp,.encrypted" | fullword ascii |
Condición
uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or ( 1 of ( $x* ) and ( 4 of ( $s* ) or 1 of ( $mut* ) ) ) or 6 of ( $s* ) or ( 1 of ( $mut* ) and 2 of ( $cmd* ) ) or ( 1 of ( $ext* ) and 5 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 1 patrones de ( $x* ).
- Deben coincidir al menos 4 patrones de ( $s* ).
- Deben coincidir al menos 1 patrones de ( $mut* ).
- Deben coincidir al menos 6 patrones de ( $s* ).
- Deben coincidir al menos 2 patrones de ( $cmd* ).
- Deben coincidir al menos 1 patrones de ( $ext* ).
- Deben coincidir al menos 5 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: 06b7645f-228d-5ec1-9b82-88caee447a5c
Metadatos
| clamav_sig | MALWARE.Win.Ransomware.MedusaLocker |
|---|
Etiquetas:FILE
Reglas relacionadas
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- ARKBIRD_SOLG_RAN_Medusalocker_Aug_2021_1Solo metadatosMalwareArkbird SOLG (DailyIOC)· Arkbird_SOLG· 2021-08-08
- ARKBIRD_SOLG_RAN_Medusalocker_July_2021_1Solo metadatosMalwareArkbird SOLG (DailyIOC)· Arkbird_SOLG· 2021-07-25
- 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