Aller au contenu

YARA · SEKOIA.IO Community

SEKOIA_Unknown_7777_Xlogin

Detects the xlogin bind shell and its variants

GénériqueSEKOIA.IO CommunityDetection Rule License 1.1Compile avec YARA-X
Auteur
Sekoia.io
Date
2024-07-18
Modifiée
2024-12-19
Score / Qualité
75 / 80

Ce que détecte cette règle

Detects the xlogin bind shell and its variants

Cibles : ELF Linux.

Elle définit 2 motifs (0 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

unknown-7777-xlogin.yarDetection Rule License 1.1
rule SEKOIA_Unknown_7777_Xlogin : FILE
{
	meta:
		description = "Detects the xlogin bind shell and its variants"
		author = "Sekoia.io"
		id = "ce0beffc-f957-43ef-a739-f4a1099a7a67"
		date = "2024-07-18"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/unknown_7777_xlogin.yar#L1-L24"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "4d9067e7cf517158337123a30a9bd0e3"
		hash = "43ea387b8294cc4d0baaef6d26ff7c72"
		hash = "777d6f907da38365924a0c2a12e973c5"
		hash = "8542a3cbe232fe78baa0882736c61926"
		logic_hash = "1c38d8019734affdebac32050097bbcf89e9069fb2145a976588eca04ecc78df"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$string1 = { 2f 62 69 6e 2f 73 68 00 2f 74 6d 70 2f 6c 6f 67 69 6e }
		$string2 = { 2F 64 65 76 2F 6E 75 6C 6C [1-3] 2F 62 69 6E 2F 73 68 00 2D 63 }

	condition:
		uint32be( 0 ) == 0x7f454c46 and filesize < 180KB and ( ( @string2 - @string1 < 3400 ) )
}

Chaînes (2 motifs)

IdentifiantTypeValeurModificateurs
$string1hex{ 2f 62 69 6e 2f 73 68 00 2f 74 6d 70 2f 6c 6f 67 69 6e }
$string2hex{ 2F 64 65 76 2F 6E 75 6C 6C [1-3] 2F 62 69 6E 2F 73 68 00 2D 63 }

Condition

uint32be( 0 ) == 0x7f454c46 and filesize < 180KB and ( ( @string2 - @string1 < 3400 ) )

En clair (Heuristique)

  • Le fichier doit commencer par l’en-tête ELF — un exécutable Linux/Unix.
  • Le fichier doit faire moins de 180KB (garde-fou peu coûteux qui écarte les gros fichiers).

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.

Ouvrir dans l’éditeur

Références

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).

  • 4d9067e7cf517158337123a30a9bd0e3
  • 43ea387b8294cc4d0baaef6d26ff7c72
  • 777d6f907da38365924a0c2a12e973c5
  • 8542a3cbe232fe78baa0882736c61926

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)

Règle d’origine

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: ce0beffc-f957-43ef-a739-f4a1099a7a67

Métadonnées

version1.0
classificationTLP:CLEAR

Tags:FILE