YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Commonmagic
Detects CommonMagic and Modules
- Auteur
- ditekSHen
- Date
- 2020-11-06
- Modifiée
- 2024-11-01
- Score / Qualité
- 75 / 75
Ce que détecte cette règle
Detects CommonMagic and Modules
Famille de malware associée : Common Magic.
Cibles : PE Windows.
Elle définit 8 motifs (8 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
rule DITEKSHEN_MALWARE_Win_Commonmagic : FILE
{
meta:
= "Detects CommonMagic and Modules"
= "ditekSHen"
= "cbebe334-9b66-5931-8f92-25d080f7fd6a"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L9645-L9660"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "e94ba53f31f3effe12b1fbaca19fea59c0e12f742f6fc0af2a0a679bf4299cbe"
= 75
= 75
= "FILE"
strings:
$p1 = "\\\\.\\pipe\\PipeMd" wide
$p2 = "\\\\.\\pipe\\PipeCrDtMd" wide
$p3 = "\\\\.\\pipe\\PipeDtMd" wide
$s1 = "graph.microsoft.com" fullword wide
$s2 = "CreateNamedPipe" ascii
$s3 = "\\CommonCommand\\" wide
$ua1 = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36" wide
$ua2 = "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136" wide
condition:
uint16( 0 ) == 0x5a4d and ( 2 of ( $p* ) and 1 of ( $s* ) ) or ( 1 of ( $ua* ) and 1 of ( $s* ) and 1 of ( $p* ) )
}
Chaînes (8 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $p1 | texte | "\\\\.\\pipe\\PipeMd" | wide |
| $p2 | texte | "\\\\.\\pipe\\PipeCrDtMd" | wide |
| $p3 | texte | "\\\\.\\pipe\\PipeDtMd" | wide |
| $s1 | texte | "graph.microsoft.com" | fullword wide |
| $s2 | texte | "CreateNamedPipe" | ascii |
| $s3 | texte | "\\CommonCommand\\" | wide |
| $ua1 | texte | "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36" | wide |
| $ua2 | texte | "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136" | wide |
Condition
uint16( 0 ) == 0x5a4d and ( 2 of ( $p* ) and 1 of ( $s* ) ) or ( 1 of ( $ua* ) and 1 of ( $s* ) and 1 of ( $p* ) )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Au moins 2 motifs de ( $p* ) doivent être trouvés.
- Au moins 1 motifs de ( $s* ) doivent être trouvés.
- Au moins 1 motifs de ( $ua* ) doivent être trouvés.
- Au moins 1 motifs de ( $p* ) 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é.
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: cbebe334-9b66-5931-8f92-25d080f7fd6a
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· 2023-05-15
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2023-05-15
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2023-05-15
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2023-05-15
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2023-05-15
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06