YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Macoute
Detects Macoute
- Auteur
- ditekSHen
- Date
- 2020-11-06
- Modifiée
- 2024-11-01
- Score / Qualité
- 75 / 75
Ce que détecte cette règle
Detects Macoute
Famille de malware associée : Macoute.
Cibles : PE Windows.
Elle définit 15 motifs (15 texte, 0 hex, 0 regex).
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
malware-win-macoute.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Macoute : FILE
{
meta:
= "Detects Macoute"
= "ditekSHen"
= "0ecfb923-2e51-544e-984d-efdeeb175727"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7814-L7836"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "1dffa48fe6c0ac053509b5f5994d323fd72d090da0f077b52c9bc33df6997964"
= 75
= 75
= "FILE"
strings:
$s1 = "scp%s%s%s%s" ascii
$s2 = "putfile %s %s" ascii
$s3 = "pscp|%s|%s:%s" ascii
$s4 = "connect %host %port\\n" ascii
$s5 = "/ecoute/spool/%s-%lu" ascii
$s6 = "<f n=\"%s\" s=\"%lu\" d=\"%d-%d-%d\"/>" ascii
$s7 = "CMPT;%s;%s;%s;%s;%s" ascii
$s8 = "%s\\apoScreen%lu.dll" ascii
$s9 = "/cap/%s%lu.jpg" ascii
$s10 = "INFO;%u;%u;%u;%d;%d;%d;%d;%d;%d;%d;%s" ascii
$s11 = "SUBJECT: %s is comming!" ascii
$s12 = "Content-type: multipart/mixed; boundary=\"#BOUNDARY#\"" ascii
$s13 = "FROM: %s@yahoo.com" ascii
$s14 = "<html><script language=\"JavaScript\">window.open(\"readme.eml\", null,\"resizable=no,top=6000,left=6000\")</script></html>" ascii
$s15 = "<html><HEAD></HEAD><body bgColor=3D#ffffff><iframe src=3Dcid:THE-CID height=3D0 width=3D0></iframe></body></html>" ascii
condition:
uint16( 0 ) == 0x5a4d and 10 of them
}
Chaînes (15 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $s1 | texte | "scp%s%s%s%s" | ascii |
| $s2 | texte | "putfile %s %s" | ascii |
| $s3 | texte | "pscp|%s|%s:%s" | ascii |
| $s4 | texte | "connect %host %port\\n" | ascii |
| $s5 | texte | "/ecoute/spool/%s-%lu" | ascii |
| $s6 | texte | "<f n=\"%s\" s=\"%lu\" d=\"%d-%d-%d\"/>" | ascii |
| $s7 | texte | "CMPT;%s;%s;%s;%s;%s" | ascii |
| $s8 | texte | "%s\\apoScreen%lu.dll" | ascii |
| $s9 | texte | "/cap/%s%lu.jpg" | ascii |
| $s10 | texte | "INFO;%u;%u;%u;%d;%d;%d;%d;%d;%d;%d;%s" | ascii |
| $s11 | texte | "SUBJECT: %s is comming!" | ascii |
| $s12 | texte | "Content-type: multipart/mixed; boundary=\"#BOUNDARY#\"" | ascii |
| $s13 | texte | "FROM: %s@yahoo.com" | ascii |
| $s14 | texte | "<html><script language=\"JavaScript\">window.open(\"readme.eml\", null,\"resizable=no,top=6000,left=6000\")</script></html>" | ascii |
| $s15 | texte | "<html><HEAD></HEAD><body bgColor=3D#ffffff><iframe src=3Dcid:THE-CID height=3D0 width=3D0></iframe></body></html>" | ascii |
Condition
uint16( 0 ) == 0x5a4d and 10 of themEn clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Au moins 10 motifs de la règle doivent être trouvés.
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.
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: 0ecfb923-2e51-544e-984d-efdeeb175727
Tags:FILE
Règles liées
- 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
- MalwareditekSHen detection· ditekSHen· 2020-11-06