YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_EXT_HKTL_MAL_Tinyshell_Backdoor
Detects Tiny Shell - an open-source UNIX backdoor
- Auteur
- Mandiant
- Date
- 2022-03-17
- Modifiée
- 2026-05-15
- Score / Qualité
- 80 / 85
Ce que détecte cette règle
Detects Tiny Shell - an open-source UNIX backdoor
Cibles : ELF Linux.
Elle définit 16 motifs (14 texte, 2 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
rule SIGNATURE_BASE_EXT_HKTL_MAL_Tinyshell_Backdoor : FILE
{
meta:
= "Detects Tiny Shell - an open-source UNIX backdoor"
= "Mandiant"
= "4ad5d334-98e4-577f-89c9-86626e8feb58"
= "2022-03-17"
= "2026-05-15"
= "https://www.mandiant.com/resources/blog/unc2891-overview"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_unc2891_tinyshell_slapstick.yar#L1-L29"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "1f889871263bd6cdad8f3d4d5fc58b4a32669b944d3ed0860730374bb87d730a"
= "1fe9def11dced638ad38236652877427b61d7138fc8c6ce3fe7f1403c367468f"
= 80
= 85
= "FILE"
strings:
$sb1 = { C6 00 48 C6 4? ?? 49 C6 4? ?? 49 C6 4? ?? 4C C6 4? ?? 53 C6 4? ?? 45 C6 4? ?? 54 C6 4? ?? 3D C6 4? ?? 46 C6 4? ?? 00 }
$sb2 = { C6 00 54 C6 4? ?? 4D C6 4? ?? 45 C6 4? ?? 3D C6 4? ?? 52 }
$ss1 = "fork" ascii fullword wide
$ss2 = "socket" ascii fullword wide
$ss3 = "bind" ascii fullword wide
$ss4 = "listen" ascii fullword wide
$ss5 = "accept" ascii fullword wide
$ss6 = "alarm" ascii fullword wide
$ss7 = "shutdown" ascii fullword wide
$ss8 = "creat" ascii fullword wide
$ss9 = "write" ascii fullword wide
$ss10 = "open" ascii fullword wide
$ss11 = "read" ascii fullword wide
$ss12 = "execl" ascii fullword wide
$ss13 = "gethostbyname" ascii fullword wide
$ss14 = "connect" ascii fullword wide
condition:
uint32( 0 ) == 0x464c457f and 1 of ( $sb* ) and 10 of ( $ss* )
}
Chaînes (16 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $sb1 | hex | { C6 00 48 C6 4? ?? 49 C6 4? ?? 49 C6 4? ?? 4C C6 4? ?? 53 C6 4? ?? 45 C6 4? ?? 54 C6 4? ?? 3D C6 4? ?? 46 C6 4? ?? 00 } | |
| $sb2 | hex | { C6 00 54 C6 4? ?? 4D C6 4? ?? 45 C6 4? ?? 3D C6 4? ?? 52 } | |
| $ss1 | texte | "fork" | ascii fullword wide |
| $ss2 | texte | "socket" | ascii fullword wide |
| $ss3 | texte | "bind" | ascii fullword wide |
| $ss4 | texte | "listen" | ascii fullword wide |
| $ss5 | texte | "accept" | ascii fullword wide |
| $ss6 | texte | "alarm" | ascii fullword wide |
| $ss7 | texte | "shutdown" | ascii fullword wide |
| $ss8 | texte | "creat" | ascii fullword wide |
| $ss9 | texte | "write" | ascii fullword wide |
| $ss10 | texte | "open" | ascii fullword wide |
| $ss11 | texte | "read" | ascii fullword wide |
| $ss12 | texte | "execl" | ascii fullword wide |
| $ss13 | texte | "gethostbyname" | ascii fullword wide |
| $ss14 | texte | "connect" | ascii fullword wide |
Condition
uint32( 0 ) == 0x464c457f and 1 of ( $sb* ) and 10 of ( $ss* )En clair (Heuristique)
- Le fichier doit commencer par l’en-tête ELF — un exécutable Linux/Unix.
- Au moins 1 motifs de ( $sb* ) doivent être trouvés.
- Au moins 10 motifs de ( $ss* ) 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é.
Hashes d’échantillons
Hashes des échantillons listés par l’auteur dans les métadonnées de la règle (à rechercher dans votre plateforme de threat intelligence).
- 1f889871263bd6cdad8f3d4d5fc58b4a32669b944d3ed0860730374bb87d730a
Licence et attribution
Auteur : Mandiant
Dépôt source : Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
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: 4ad5d334-98e4-577f-89c9-86626e8feb58
Tags:FILE
Règles liées
- Outil offensifSignature Base (Florian Roth / Nextron)· Mandiant· 2022-03-17
- APT / acteurSignature Base (Florian Roth / Nextron)· Mandiant· 2022-04-28
- APT / acteurSignature Base (Florian Roth / Nextron)· Mandiant· 2023-04-20
- APT / acteurSignature Base (Florian Roth / Nextron)· Mandiant· 2023-04-20
- APT / acteurSignature Base (Florian Roth / Nextron)· Mandiant· 2023-04-20
- APT / acteurSignature Base (Florian Roth / Nextron)· Mandiant· 2023-04-20
- APT / acteurSignature Base (Florian Roth / Nextron)· Mandiant· 2023-04-20
- APT / acteurSignature Base (Florian Roth / Nextron)· Mandiant· 2023-04-20