YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Mediapi
Detects MediaPI
- Auteur
- ditekSHen
- Date
- 2020-11-06
- Modifiée
- 2024-11-01
- Score / Qualité
- 75 / 75
Ce que détecte cette règle
Detects MediaPI
Famille de malware associée : Mediapi.
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 DITEKSHEN_MALWARE_Win_Mediapi : FILE
{
meta:
= "Detects MediaPI"
= "ditekSHen"
= "95db8772-1bcd-5eea-956c-c9578b8e1329"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11425-L11439"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "2bce0a96b45e46c0cbd913dacb3dfe7ae1b519102d637e0fd9dabe2008037d94"
= 75
= 75
= "FILE"
strings:
$s1 = "SomeFunction" ascii
$s2 = "\"stealth" ascii
$s3 = "\"ServAddr" ascii
$s4 = "\"ServPort" ascii
$s5 = "\"ServIp" ascii
$s6 = "\"wsaData" ascii
$s7 = "\"-socket" ascii
condition:
uint16( 0 ) == 0x5a4d and pe.is_dll ( ) and ( ( 6 of them ) or ( 3 of them and pe.exports ( "SomeFunction" ) ) )
}
Chaînes (7 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $s1 | texte | "SomeFunction" | ascii |
| $s2 | texte | "\"stealth" | ascii |
| $s3 | texte | "\"ServAddr" | ascii |
| $s4 | texte | "\"ServPort" | ascii |
| $s5 | texte | "\"ServIp" | ascii |
| $s6 | texte | "\"wsaData" | ascii |
| $s7 | texte | "\"-socket" | ascii |
Condition
uint16( 0 ) == 0x5a4d and pe.is_dll ( ) and ( ( 6 of them ) or ( 3 of them and pe.exports ( "SomeFunction" ) ) )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Au moins 6 motifs de la règle doivent être trouvés.
- Au moins 3 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.
- Exige une 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 : ditekSHen
Dépôt source : ditekSHen detection @ e76c93dcde
Licence : BSD 2-Clause License (licence du dépôt)
Mention de copyright : Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
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: 95db8772-1bcd-5eea-956c-c9578b8e1329
Tags:FILE
Règles liées
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- 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
- MalwareditekSHen detection· ditekSHen· 2020-11-06