YARA · ditekSHen detection
DITEKSHEN_MALWARE_Linux_Getshell
Detect GetShell Linux backdoor
- Auteur
- ditekSHen
- Date
- 2020-11-06
- Modifiée
- 2024-11-01
- Score / Qualité
- 75 / 75
Ce que détecte cette règle
Detect GetShell Linux backdoor
Famille de malware associée : Getshell.
Elle définit 12 motifs (12 texte, 0 hex, 0 regex).
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
malware-linux-getshell.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Linux_Getshell : FILE
{
meta:
= "Detect GetShell Linux backdoor"
= "ditekSHen"
= "cccad93d-cd49-5237-96ac-66c9ac6ef532"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L10705-L10725"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "9d44ad2a3c270eed0e905402e8c32dcca54da90f4229d9d59874ee09b3b47277"
= 75
= 75
= "FILE"
= "MALWARE.Linux.Trojan.GetShell"
strings:
$x1 = "cat <(echo '@reboot echo socks5_backconnect" ascii
$x2 = "(cd && )') <(sed '/socks5_backconnect" ascii
$s1 = "cat <(echo '@" ascii
$s2 = "(cd && )') <(sed '" ascii
$s3 = "PORT1:" ascii
$s4 = "HOST1:" ascii
$s5 = "queryheader" ascii
$s6 = "qsectionpost" ascii
$s7 = "packedip" ascii
$s8 = "copydata" ascii
$s9 = "synsend" ascii
$s10 = "bc_connect" ascii
condition:
uint16( 0 ) == 0x457f and ( ( all of ( $x* ) and 1 of ( $s* ) ) or 5 of ( $s* ) )
}
Chaînes (12 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $x1 | texte | "cat <(echo '@reboot echo socks5_backconnect" | ascii |
| $x2 | texte | "(cd && )') <(sed '/socks5_backconnect" | ascii |
| $s1 | texte | "cat <(echo '@" | ascii |
| $s2 | texte | "(cd && )') <(sed '" | ascii |
| $s3 | texte | "PORT1:" | ascii |
| $s4 | texte | "HOST1:" | ascii |
| $s5 | texte | "queryheader" | ascii |
| $s6 | texte | "qsectionpost" | ascii |
| $s7 | texte | "packedip" | ascii |
| $s8 | texte | "copydata" | ascii |
| $s9 | texte | "synsend" | ascii |
| $s10 | texte | "bc_connect" | ascii |
Condition
uint16( 0 ) == 0x457f and ( ( all of ( $x* ) and 1 of ( $s* ) ) or 5 of ( $s* ) )En clair (Heuristique)
- Tous les motifs de ( $x* ) doivent être trouvés.
- Au moins 1 motifs de ( $s* ) doivent être trouvés.
- Au moins 5 motifs de ( $s* ) doivent être trouvé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é.
Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.
Références
Licence et attribution
Auteur : ditekSHen
Dépôt source : ditekSHen detection @ e76c93dcde
Licence : BSD 2-Clause License (licence du dépôt)
Mention de copyright : Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
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: cccad93d-cd49-5237-96ac-66c9ac6ef532
Métadonnées
| clamav1 | MALWARE.Linux.Trojan.GetShell |
|---|
Tags:FILE
Règles liées
- RUSSIANPANDA_GetshellpluginMétadonnées seulesMalwareRussianPanda· RussianPanda· 2025-12-31
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06