Aller au contenu

YARA · SEKOIA.IO Community

SEKOIA_Apt_Muddywater_Moriagent

Detects Muddy's Mori Agent implant

APT / acteurMoriagentSEKOIA.IO CommunityDetection Rule License 1.1Compile avec YARA-X
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.

apt-muddywater-moriagent.yarDetection Rule License 1.1
import "pe"

rule SEKOIA_Apt_Muddywater_Moriagent : FILE
{
	meta:
		description = "Detects Muddy's Mori Agent implant"
		author = "Sekoia.io"
		id = "e7a83663-6a30-416a-8f29-87a6b9445ea4"
		date = "2022-01-14"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_muddywater_moriagent.yar#L3-L28"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "21389d4e71e9a19a9d263b8ced740c337ea88ed4ac97199897b0aa3f5914594a"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "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)

IdentifiantTypeValeurModificateurs
$muttexte"0x50504060"ascii fullword
$cmd1texte"TType"ascii fullword
$cmd2texte"TPath"ascii fullword
$cmd3texte"TFileid"ascii fullword
$cmd4texte"TCommand"ascii fullword
$cmd5texte"TTimeout"ascii fullword
$cmd6texte"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é.

Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.

Ouvrir dans l’éditeur

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)

Règle d’origine

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

version1.0
classificationTLP:CLEAR

Tags:FILE