YARA · SEKOIA.IO Community
SEKOIA_Apt_Darkpink_Loader_Decryptionroutine
Detects decryption routine of dark pink loader
- Autor
- Sekoia.io
- Datum
- 2023-01-17
- Geändert
- 2024-12-19
- Score / Qualität
- 75 / 80
Was diese Regel erkennt
Detects decryption routine of dark pink loader
Zugehörige Malware-Familie: Darkpink.
Ziele: Windows-PE, Linux-ELF.
Sie definiert 1 Muster (0 Text, 1 Hex, 0 Regex). Verwendete YARA-Module: pe, hash.
YARA-X meldet: warning[deprecated_field]: field `number_of_sections` is deprecated
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
Enthält die Imports, die zum eigenständigen Kompilieren nötig sind.
import "pe"
import "hash"
rule SEKOIA_Apt_Darkpink_Loader_Decryptionroutine : FILE
{
meta:
= "Detects decryption routine of dark pink loader"
= "Sekoia.io"
= "fefc7b2f-eecc-49dc-84bc-24c45e9ea8f0"
= "2023-01-17"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_darkpink_loader_decryptionroutine.yar#L4-L49"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "3f38860d0f6f0ff1b65219379f8793383cba85b11de1c853192fb2d2ba99e481"
= "b3f1d6366ebc184f634a240c838b39d729c28b8718b0b9ca6be988a7e446ec42"
= "fe2726b77c293fc2aa19216025cfa2b4cd0c5194730cbc57a1fcceb6f6198977"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$chunk_1 = {
8A 08
40
84 C9
75 ??
6A 00
2B C2
50
53
56
E8 ?? ?? ?? ??
8A 88 ?? ?? ?? ??
30 0C 3E
83 C6 01
83 D3 00
78 ??
7F ??
81 FE ?? ?? ?? ??
72 ??
55
}
condition:
( uint32be( 0 ) == 0x7f454c46 or uint16be( 0 ) == 0x4d5a ) and filesize < 3MB and ( all of them or hash.md5 ( pe.rich_signature.clear_data ) == "950c0710dc4cbf6e2cd6b857d25da523" or for any i in ( 0 .. pe.number_of_sections -1 ) : ( hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "547e43dd8560fa8b0ca0be9f633bf62d" ) )
}
Strings (1 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $chunk_1 | Hex | { 8A 08 40 84 C9 75 ?? 6A 00 2B C2 50 53 56 E8 ?? ?? ?? ?? 8A 88 ?? ?? ? … |
Bedingung
( uint32be( 0 ) == 0x7f454c46 or uint16be( 0 ) == 0x4d5a ) and filesize < 3MB and ( all of them or hash.md5 ( pe.rich_signature.clear_data ) == "950c0710dc4cbf6e2cd6b857d25da523" or for any i in ( 0 .. pe.number_of_sections -1 ) : ( hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "547e43dd8560fa8b0ca0be9f633bf62d" ) )In 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 3MB sein (eine günstige Grenze, die große Dateien ausschließt).
- Alle Muster aus der Regel müssen treffen.
- Eine for-Schleife prüft eine Eigenschaft über mehrere Treffer oder Elemente.
- Nutzt das Modul hash.
- Nutzt das Modul pe.
- Vergleicht einen Hash der Datei oder eines Teils davon.
- Prüft PE-Sektionen (Namen, Anzahl oder Eigenschaften).
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).
- 3f38860d0f6f0ff1b65219379f8793383cba85b11de1c853192fb2d2ba99e481
- b3f1d6366ebc184f634a240c838b39d729c28b8718b0b9ca6be988a7e446ec42
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: fefc7b2f-eecc-49dc-84bc-24c45e9ea8f0
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-06-05
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2023-01-16
- 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