YARA · SEKOIA.IO Community
SEKOIA_Apt_Badmagic_Commonmagic_Screenshot_Module
Detects CommonMagic related implants
- Auteur
- Sekoia.io
- Date
- 2023-05-15
- Modifiée
- 2024-12-19
- Score / Qualité
- 75 / 80
Ce que détecte cette règle
Detects CommonMagic related implants
Famille de malware associée : Common Magic.
Cibles : PE Windows.
Elle définit 3 motifs (3 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
apt-badmagic-commonmagic-screenshot-module.yarDetection Rule License 1.1
rule SEKOIA_Apt_Badmagic_Commonmagic_Screenshot_Module : FILE
{
meta:
= "Detects CommonMagic related implants"
= "Sekoia.io"
= "d1ef0bd1-37dc-405f-b82b-288b1798455c"
= "2023-05-15"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_badmagic_commonmagic_screenshot_module.yar#L1-L19"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "caab57534a00620974f7d49c7b38a3f191aca596b69b3e4c499e3099023c2f9c"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = "%s_%02d.%02d.%04d_%02d.%02d.%02d.%03d.%s" wide
$ = "Screenshot" wide
$ = "\\\\.\\pipe\\PipeDtMd" wide
condition:
uint16be( 0 ) == 0x4d5a and filesize < 1MB and all of them
}
Chaînes (3 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $ | texte | "%s_%02d.%02d.%04d_%02d.%02d.%02d.%03d.%s" | wide |
| $ | texte | "Screenshot" | wide |
| $ | texte | "\\\\.\\pipe\\PipeDtMd" | wide |
Condition
uint16be( 0 ) == 0x4d5a and filesize < 1MB and all of themEn clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Le fichier doit faire moins de 1MB (garde-fou peu coûteux qui écarte les gros fichiers).
- Tous les 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 : Sekoia.io
Dépôt source : SEKOIA.IO Community @ a438a5901a
Licence : Detection Rule License 1.1 (licence du dépôt)
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: d1ef0bd1-37dc-405f-b82b-288b1798455c
Métadonnées
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Règles liées
- 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
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-10-21