YARA · SEKOIA.IO Community
SEKOIA_Backdoor_Win_Andardoor
Detect the Andardoor backdoor used by Andariel
- Auteur
- Sekoia.io
- Date
- 2023-09-04
- Modifiée
- 2024-12-19
- Score / Qualité
- 75 / 80
Ce que détecte cette règle
Detect the Andardoor backdoor used by Andariel
Famille de malware associée : Andardoor.
Cibles : PE Windows.
Elle définit 6 motifs (6 texte, 0 hex, 0 regex). Modules YARA utilisés : pe, hash.
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"
import "hash"
rule SEKOIA_Backdoor_Win_Andardoor : FILE
{
meta:
= "Detect the Andardoor backdoor used by Andariel"
= "Sekoia.io"
= "27f28f6e-b8fd-41dc-88a8-92f5a125a807"
= "2023-09-04"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/backdoor_win_andardoor.yar#L4-L34"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "631836634222f4e081d3070c92150a4e14f06bcdd462fbfdf0756aa1f2661b59"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = " : Deleted Dir" wide
$ = " : Not Exists" wide
$ = " : Deleted File" wide
$ = " : Closed." wide
$ = " : Opened." wide
$ = "GoodLuck!" wide
condition:
uint16( 0 ) == 0x5A4D and all of them 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 ) == "9fea4972270c492ca304f3663913ae63" ) or for any i in ( 0 .. pe.number_of_resources -1 ) : ( hash.sha256 ( pe.resources [ i ] . offset , pe.resources [ i ] . length ) == "34fde27c3c864efa6225e72016992d341f29cbbea638432a1c63ce05ca568300" )
}
Chaînes (6 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $ | texte | " : Deleted Dir" | wide |
| $ | texte | " : Not Exists" | wide |
| $ | texte | " : Deleted File" | wide |
| $ | texte | " : Closed." | wide |
| $ | texte | " : Opened." | wide |
| $ | texte | "GoodLuck!" | wide |
Condition
uint16( 0 ) == 0x5A4D and all of them 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 ) == "9fea4972270c492ca304f3663913ae63" ) or for any i in ( 0 .. pe.number_of_resources -1 ) : ( hash.sha256 ( pe.resources [ i ] . offset , pe.resources [ i ] . length ) == "34fde27c3c864efa6225e72016992d341f29cbbea638432a1c63ce05ca568300" )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Tous les motifs de la règle doivent être trouvés.
- Une boucle for vérifie une propriété sur plusieurs occurrences ou éléments.
- Utilise le module pe.
- Utilise le module hash.
- Compare un hash du fichier ou d’une partie du fichier.
- 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: 27f28f6e-b8fd-41dc-88a8-92f5a125a807
Métadonnées
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Règles liées
- 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
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20