YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Romcom_Worker
Hunt for RomCom worker
- Auteur
- ditekShen
- Date
- 2020-11-06
- Modifiée
- 2024-11-01
- Score / Qualité
- 75 / 73
Ce que détecte cette règle
Hunt for RomCom worker
Famille de malware associée : Romcom.
Cibles : PE Windows.
Elle définit 6 motifs (5 texte, 0 hex, 1 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_Romcom_Worker : FILE
{
meta:
= "Hunt for RomCom worker"
= "ditekShen"
= "ce545a33-731c-5ecd-b02e-cedf24f75cc7"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L10309-L10322"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "488db046458585882a4709438042b57e02d7dbc06483fdfdfc463a64ee8db203"
= 75
= 73
= "FILE"
strings:
$s1 = "UpdateProcThreadAttribute" fullword ascii
$s2 = "WriteFile" fullword ascii
$s3 = "GetAdaptersAddresses" fullword ascii nocase
$s4 = /inflate\s\d+\.\d+\.\d+\sCopyright/ ascii
$s5 = "SetHandleInformation" fullword ascii
$s6 = "PeekNamedPipe" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and pe.is_dll ( ) and pe.number_of_exports == 1 and pe.exports ( "Main" ) and all of them
}
Chaînes (6 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $s1 | texte | "UpdateProcThreadAttribute" | fullword ascii |
| $s2 | texte | "WriteFile" | fullword ascii |
| $s3 | texte | "GetAdaptersAddresses" | fullword ascii nocase |
| $s4 | regex | /inflate\s\d+\.\d+\.\d+\sCopyright/ | ascii |
| $s5 | texte | "SetHandleInformation" | fullword ascii |
| $s6 | texte | "PeekNamedPipe" | fullword ascii |
Condition
uint16( 0 ) == 0x5a4d and pe.is_dll ( ) and pe.number_of_exports == 1 and pe.exports ( "Main" ) and all of themEn clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Tous les 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: ce545a33-731c-5ecd-b02e-cedf24f75cc7
Tags:FILE
Règles liées
- MalwareditekSHen detection· ditekShen· 2020-11-06
- MalwareditekSHen detection· ditekShen· 2020-11-06
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-11-04
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-11-04
- MalwareditekSHen detection· ditekShen· 2020-11-06
- MalwareditekSHen detection· ditekShen· 2020-11-06
- MalwareditekSHen detection· ditekShen· 2020-11-06
- MalwareditekSHen detection· ditekShen· 2020-11-06