YARA · SEKOIA.IO Community
SEKOIA_Apt_Badmagic_Commonmagic_Generic_2
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 4 motifs (4 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-generic-2.yarDetection Rule License 1.1
rule SEKOIA_Apt_Badmagic_Commonmagic_Generic_2 : FILE
{
meta:
= "Detects CommonMagic related implants"
= "Sekoia.io"
= "c6a16ecc-e00a-4756-b603-f6c85e4f4220"
= "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_generic_2.yar#L1-L20"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "d3916ab749ae5b6e0a8abdc9641de13e0328809a6e20c6ce04ada5dbfb742689"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = "\\CommonCommand\\" ascii wide
$ = "\\\\.\\pipe\\PipeMd" ascii wide fullword
$ = "\\\\.\\pipe\\PipeDtMd" ascii wide fullword
$ = "\\\\.\\pipe\\PipeCrDtMd" ascii wide fullword
condition:
uint16be( 0 ) == 0x4d5a and filesize < 1MB and 2 of them
}
Chaînes (4 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $ | texte | "\\CommonCommand\\" | ascii wide |
| $ | texte | "\\\\.\\pipe\\PipeMd" | ascii wide fullword |
| $ | texte | "\\\\.\\pipe\\PipeDtMd" | ascii wide fullword |
| $ | texte | "\\\\.\\pipe\\PipeCrDtMd" | ascii wide fullword |
Condition
uint16be( 0 ) == 0x4d5a and filesize < 1MB and 2 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).
- Au moins 2 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: c6a16ecc-e00a-4756-b603-f6c85e4f4220
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