YARA · SEKOIA.IO Community
SEKOIA_Plugx_Final_Payload
Detects encrypted plugx config with a specific size
- Auteur
- Sekoia.io
- Date
- 2023-07-04
- Modifiée
- 2024-12-19
- Score / Qualité
- 75 / 80
Ce que détecte cette règle
Detects encrypted plugx config with a specific size
Famille de malware associée : Plugx.
Cibles : PE Windows, ELF Linux.
Elle définit 1 motifs (0 texte, 1 hex, 0 regex). Modules YARA utilisés : pe.
YARA-X indique : warning[deprecated_field]: field `number_of_sections` is deprecated
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
Inclut les imports nécessaires pour la compiler seule.
import "pe"
rule SEKOIA_Plugx_Final_Payload : FILE
{
meta:
= "Detects encrypted plugx config with a specific size"
= "Sekoia.io"
= "a4047324-81a7-4c17-be84-c0fa479d2f89"
= "2023-07-04"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/plugx_final_payload.yar#L3-L23"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "bf5035eb7ed620edcf7a0e8e8be220451ce268fc49310f28059b60576d8c5182"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$s1 = {30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 88 13 00 00 60 ea 00 00 ?? ?? ?? ?? 00 00 00 00}
condition:
( uint32be( 0 ) == 0x7f454c46 or uint16be( 0 ) == 0x4d5a ) and filesize < 8MB and for any i in ( 0 .. pe.number_of_sections -1 ) : ( pe.sections [ i ] . name == ".data" and $s1 in ( pe.sections [ i ] . raw_data_offset..pe.sections [ i ] . raw_data_offset + pe.sections [ i ] . raw_data_size ) )
}
Chaînes (1 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $s1 | hex | {30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 88 13 00 00 60 ea 00 00 ?? ?? ?? ?? 00 00 00 00} |
Condition
( uint32be( 0 ) == 0x7f454c46 or uint16be( 0 ) == 0x4d5a ) and filesize < 8MB and for any i in ( 0 .. pe.number_of_sections -1 ) : ( pe.sections [ i ] . name == ".data" and $s1 in ( pe.sections [ i ] . raw_data_offset..pe.sections [ i ] . raw_data_offset + pe.sections [ i ] . raw_data_size ) )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Le fichier doit commencer par l’en-tête ELF — un exécutable Linux/Unix.
- Le fichier doit faire moins de 8MB (garde-fou peu coûteux qui écarte les gros fichiers).
- Le motif $s1 doit se trouver dans la plage pe.sections [ i ] . raw_data_offset..pe.sections [ i ] . raw_data_offset + pe.sections [ i ] . raw_data_size.
- Une boucle for vérifie une propriété sur plusieurs occurrences ou éléments.
- Utilise le module pe.
- Vérifie les sections PE (noms, nombre ou propriété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é.
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: a4047324-81a7-4c17-be84-c0fa479d2f89
Métadonnées
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Règles liées
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2023-12-18
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- ARKBIRD_SOLG_Mal_Plugx_Thor_July_2021_1Métadonnées seulesMalwareArkbird SOLG (DailyIOC)· Arkbird_SOLG· 2021-07-27
- SECUINFRA_MALWARE_Plugx_USB_Delivery_Ini_Icon_Jun23Métadonnées seulesMalwareSecuInfra Falcon Team· SECUINFRA Falcon Team (@SI_FalconTeam)· 2023-06-21
- SECUINFRA_MALWARE_Plugx_USB_Delivery_Ini_Recbin_Jun23Métadonnées seulesMalwareSecuInfra Falcon Team· SECUINFRA Falcon Team (@SI_FalconTeam)· 2023-06-21
- SECUINFRA_MALWARE_Plugx_USB_Delivery_LNK_Jun23Métadonnées seulesMalwareSecuInfra Falcon Team· SECUINFRA Falcon Team (@SI_FalconTeam)· 2023-06-21
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23