YARA · SEKOIA.IO Community
SEKOIA_Apt_Muddywater_Moriagent
Detects Muddy's Mori Agent implant
- Autor
- Sekoia.io
- Fecha
- 2022-01-14
- Modificada
- 2024-12-19
- Puntuación / Calidad
- 75 / 80
Qué detecta esta regla
Detects Muddy's Mori Agent implant
Familia de malware asociada: Moriagent.
Objetivos: PE de Windows.
Define 7 patrones (7 de texto, 0 hex, 0 regex). Módulos YARA usados: pe.
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
Incluye los imports necesarios para compilarla por sí sola.
import "pe"
rule SEKOIA_Apt_Muddywater_Moriagent : FILE
{
meta:
= "Detects Muddy's Mori Agent implant"
= "Sekoia.io"
= "e7a83663-6a30-416a-8f29-87a6b9445ea4"
= "2022-01-14"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_muddywater_moriagent.yar#L3-L28"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "21389d4e71e9a19a9d263b8ced740c337ea88ed4ac97199897b0aa3f5914594a"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$mut = "0x50504060" ascii fullword
$cmd1 = "TType" ascii fullword
$cmd2 = "TPath" ascii fullword
$cmd3 = "TFileid" ascii fullword
$cmd4 = "TCommand" ascii fullword
$cmd5 = "TTimeout" ascii fullword
$cmd6 = "TFilter" ascii fullword
condition:
uint16be( 0 ) == 0x4d5a and ( ( pe.number_of_exports == 2 and pe.exports ( "DllRegisterServer" ) and pe.exports ( "DllUnregisterServer" ) ) and ( 5 of them ) )
}
Cadenas (7 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $mut | texto | "0x50504060" | ascii fullword |
| $cmd1 | texto | "TType" | ascii fullword |
| $cmd2 | texto | "TPath" | ascii fullword |
| $cmd3 | texto | "TFileid" | ascii fullword |
| $cmd4 | texto | "TCommand" | ascii fullword |
| $cmd5 | texto | "TTimeout" | ascii fullword |
| $cmd6 | texto | "TFilter" | ascii fullword |
Condición
uint16be( 0 ) == 0x4d5a and ( ( pe.number_of_exports == 2 and pe.exports ( "DllRegisterServer" ) and pe.exports ( "DllUnregisterServer" ) ) and ( 5 of them ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 5 patrones de la regla.
- Usa el módulo pe.
- Comprueba funciones exportadas o el nombre de la DLL.
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: Sekoia.io
Repositorio de origen: SEKOIA.IO Community @ a438a5901a
Licencia: Detection Rule License 1.1 (licencia del repositorio)
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: e7a83663-6a30-416a-8f29-87a6b9445ea4
Metadatos
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Etiquetas:FILE
Reglas relacionadas
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- APT / actorSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / actorSEKOIA.IO Community· Sekoia.io· 2024-09-23
- APT / actorSEKOIA.IO Community· Sekoia.io· 2024-06-11