YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Commonmagic
Detects CommonMagic and Modules
- Autor
- ditekSHen
- Datum
- 2020-11-06
- Geändert
- 2024-11-01
- Score / Qualität
- 75 / 75
Was diese Regel erkennt
Detects CommonMagic and Modules
Zugehörige Malware-Familie: Common Magic.
Ziele: Windows-PE.
Sie definiert 8 Muster (8 Text, 0 Hex, 0 Regex).
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
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* ) )
}
Strings (8 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $p1 | Text | "\\\\.\\pipe\\PipeMd" | wide |
| $p2 | Text | "\\\\.\\pipe\\PipeCrDtMd" | wide |
| $p3 | Text | "\\\\.\\pipe\\PipeDtMd" | wide |
| $s1 | Text | "graph.microsoft.com" | fullword wide |
| $s2 | Text | "CreateNamedPipe" | ascii |
| $s3 | Text | "\\CommonCommand\\" | wide |
| $ua1 | Text | "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 | Text | "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 |
Bedingung
uint16( 0 ) == 0x5a4d and ( 2 of ( $p* ) and 1 of ( $s* ) ) or ( 1 of ( $ua* ) and 1 of ( $s* ) and 1 of ( $p* ) )In Worten (Heuristik)
- Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
- Mindestens 2 Muster aus ( $p* ) müssen treffen.
- Mindestens 1 Muster aus ( $s* ) müssen treffen.
- Mindestens 1 Muster aus ( $ua* ) müssen treffen.
- Mindestens 1 Muster aus ( $p* ) müssen treffen.
Diese Regel im Browser testen
Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.
Referenzen
Lizenz & Namensnennung
Autor: ditekSHen
Quell-Repository: ditekSHen detection @ e76c93dcde
Lizenz: BSD 2-Clause License (Repository-Lizenz)
Copyright-Hinweis: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.
Regel-ID: cbebe334-9b66-5931-8f92-25d080f7fd6a
Tags:FILE
Verwandte Regeln
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2023-05-15
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2023-05-15
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2023-05-15
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2023-05-15
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2023-05-15
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06