YARA · SEKOIA.IO Community
SEKOIA_Rootkit_Win_Purplefox_Kernel_Driver
Detect the Purple Fox trojan
- Autor
- Sekoia.io
- Datum
- 2022-03-28
- Geändert
- 2024-12-19
- Score / Qualität
- 75 / 80
Was diese Regel erkennt
Detect the Purple Fox trojan
Zugehörige Malware-Familie: Purplefox.
Ziele: Windows-PE.
Sie definiert 5 Muster (5 Text, 0 Hex, 0 Regex). Verwendete YARA-Module: pe.
YARA-X meldet: warning[deprecated_field]: field `number_of_signatures` 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"
rule SEKOIA_Rootkit_Win_Purplefox_Kernel_Driver : FILE
{
meta:
= "Detect the Purple Fox trojan"
= "Sekoia.io"
= "798dc20b-76cd-4e31-b9ee-f363fb39cd58"
= "2022-03-28"
= "2024-12-19"
= "https://www.trendmicro.com/content/dam/trendmicro/global/en/research/22/c/purple-fox-uses-new-arrival-vector-and-improves-malware-arsenal/IOCs-Purple-Fox.txt"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/rootkit_win_purplefox_kernel_driver.yar#L3-L35"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "91d7caca7c0c41e70813d52b5662bf0238d078fca519bfc2c03f3f87fe3805b8"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = "\\DosDevices\\Global\\MyDriver" wide
$ = "IOCTL_IO_KILL_PROCESS" ascii
$ = "IOCTL_IO_DELET_FILE" ascii
$ = "IOCTL_IO_COPY_FILE" ascii
$ = "IOCTL_IO_KILL_MINIFITER" ascii
condition:
uint16( 0 ) == 0x5A4D and all of them or ( pe.rich_signature.toolid ( 171 , 30319 ) and pe.rich_signature.toolid ( 158 , 30319 ) and pe.rich_signature.toolid ( 170 , 30319 ) and pe.rich_signature.toolid ( 147 , 30729 ) and pe.rich_signature.toolid ( 1 , 0 ) ) and for any i in ( 0 .. pe.number_of_signatures -1 ) : ( pe.signatures [ i ] . thumbprint == "c7939f8303ca22effb28246e970b13bee6cb8043" )
}
Strings (5 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $ | Text | "\\DosDevices\\Global\\MyDriver" | wide |
| $ | Text | "IOCTL_IO_KILL_PROCESS" | ascii |
| $ | Text | "IOCTL_IO_DELET_FILE" | ascii |
| $ | Text | "IOCTL_IO_COPY_FILE" | ascii |
| $ | Text | "IOCTL_IO_KILL_MINIFITER" | ascii |
Bedingung
uint16( 0 ) == 0x5A4D and all of them or ( pe.rich_signature.toolid ( 171 , 30319 ) and pe.rich_signature.toolid ( 158 , 30319 ) and pe.rich_signature.toolid ( 170 , 30319 ) and pe.rich_signature.toolid ( 147 , 30729 ) and pe.rich_signature.toolid ( 1 , 0 ) ) and for any i in ( 0 .. pe.number_of_signatures -1 ) : ( pe.signatures [ i ] . thumbprint == "c7939f8303ca22effb28246e970b13bee6cb8043" )In Worten (Heuristik)
- Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
- Alle Muster aus der Regel müssen treffen.
- Eine for-Schleife prüft eine Eigenschaft über mehrere Treffer oder Elemente.
- Nutzt das Modul pe.
- Prüft die Authenticode-Signatur.
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.
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: 798dc20b-76cd-4e31-b9ee-f363fb39cd58
Metadaten
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Verwandte Regeln
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-03-28
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-03-28
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20