YARA · SEKOIA.IO Community
SEKOIA_Apt_Badmagic_Commonmagic_Main
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-main.yarDetection Rule License 1.1
rule SEKOIA_Apt_Badmagic_Commonmagic_Main : FILE
{
meta:
= "Detects CommonMagic related implants"
= "Sekoia.io"
= "99983df5-89d6-4fac-81e6-16e5ab20bde3"
= "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_main.yar#L1-L19"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "9bcfd6e9e150399c7f11abc41205119ddf24ea0fef5816ed905cd9b1e9ec5c1e"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = "graph.microsoft.com" ascii wide
$ = "children?select=name,size" ascii wide fullword
$ = "\\\\.\\pipe\\PipeCrDtMd" ascii wide fullword
condition:
uint16be( 0 ) == 0x4d5a and filesize < 1MB and all of them
}
Chaînes (3 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $ | texte | "graph.microsoft.com" | ascii wide |
| $ | texte | "children?select=name,size" | ascii wide fullword |
| $ | texte | "\\\\.\\pipe\\PipeCrDtMd" | ascii wide fullword |
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: 99983df5-89d6-4fac-81e6-16e5ab20bde3
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