YARA · SEKOIA.IO Community
SEKOIA_Apt_Muddywater_Moriagent
Detects Muddy's Mori Agent implant
- Auteur
- Sekoia.io
- Date
- 2022-01-14
- Modifiée
- 2024-12-19
- Score / Qualité
- 75 / 80
Ce que détecte cette règle
Detects Muddy's Mori Agent implant
Famille de malware associée : Moriagent.
Cibles : PE Windows.
Elle définit 7 motifs (7 texte, 0 hex, 0 regex). Modules YARA utilisés : pe.
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
Inclut les imports nécessaires pour la compiler seule.
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 ) )
}
Chaînes (7 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $mut | texte | "0x50504060" | ascii fullword |
| $cmd1 | texte | "TType" | ascii fullword |
| $cmd2 | texte | "TPath" | ascii fullword |
| $cmd3 | texte | "TFileid" | ascii fullword |
| $cmd4 | texte | "TCommand" | ascii fullword |
| $cmd5 | texte | "TTimeout" | ascii fullword |
| $cmd6 | texte | "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 ) )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Au moins 5 motifs de la règle doivent être trouvés.
- Utilise le module pe.
- Vérifie des fonctions exportées ou le nom de la DLL.
Tester cette règle dans votre navigateur
Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.
Références
Licence et attribution
Auteur : Sekoia.io
Dépôt source : SEKOIA.IO Community @ a438a5901a
Licence : Detection Rule License 1.1 (licence du dépôt)
Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.
Identifiant de règle: e7a83663-6a30-416a-8f29-87a6b9445ea4
Métadonnées
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Règles liées
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-09-23
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-06-11