YARA · SEKOIA.IO Community
SEKOIA_Apt_Darkpink_Sample
Detects two parts of cmd.exe /c
- Autor
- Sekoia.io
- Datum
- 2023-06-05
- Geändert
- 2024-12-19
- Score / Qualität
- 75 / 80
Was diese Regel erkennt
Detects two parts of cmd.exe /c
Zugehörige Malware-Familie: Darkpink.
Ziele: Windows-PE, Linux-ELF.
Sie definiert 2 Muster (0 Text, 2 Hex, 0 Regex).
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
rule SEKOIA_Apt_Darkpink_Sample : FILE
{
meta:
= "Detects two parts of cmd.exe /c "
= "Sekoia.io"
= "91b4c64a-7622-4f03-bd3f-9fe56f01dfbe"
= "2023-06-05"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_darkpink_sample.yar#L1-L19"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "8dc3f6179120f03fd6cb2299dbc94425451d84d6852b801a313a39e9df5d9b1a"
= "c9d3952036bffe2d924ea553fd53f8b6f0b3f16f1060fbde69496c800d4d5ad9"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$cmd_xor_part_1 = {DF 00 A1 00 E4 00 F0 00 4B 00 3A 00 D1 00 C4 00}
$cmd_xor_part_2 = {bc 00 cc 00 80 00 d0 00 64 00 59 00 F1 00 E6 00 FD 00 83 00 C6}
condition:
( uint32be( 0 ) == 0x7f454c46 or uint16be( 0 ) == 0x4d5a ) and filesize < 1MB and all of them
}
Strings (2 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $cmd_xor_part_1 | Hex | {DF 00 A1 00 E4 00 F0 00 4B 00 3A 00 D1 00 C4 00} | |
| $cmd_xor_part_2 | Hex | {bc 00 cc 00 80 00 d0 00 64 00 59 00 F1 00 E6 00 FD 00 83 00 C6} |
Bedingung
( uint32be( 0 ) == 0x7f454c46 or uint16be( 0 ) == 0x4d5a ) and filesize < 1MB and all of themIn Worten (Heuristik)
- Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
- Die Datei muss mit dem ELF-Header beginnen — eine Linux/Unix-Programmdatei.
- Die Datei muss kleiner als 1MB sein (eine günstige Grenze, die große Dateien ausschließt).
- Alle Muster aus der Regel 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
Proben-Hashes
Hashes der Proben, die der Autor in den Metadaten der Regel nennt (in Ihrer Threat-Intelligence-Plattform nachschlagen).
- 8dc3f6179120f03fd6cb2299dbc94425451d84d6852b801a313a39e9df5d9b1a
Lizenz & Namensnennung
Autor: Sekoia.io
Quell-Repository: SEKOIA.IO Community @ a438a5901a
Lizenz: Detection Rule License 1.1 (Repository-Lizenz)
Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.
Regel-ID: 91b4c64a-7622-4f03-bd3f-9fe56f01dfbe
Metadaten
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Verwandte Regeln
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2023-02-22
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2023-01-16
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2023-01-17
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2024-10-31
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-09-27