Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Linux_Getshell

Detect GetShell Linux backdoor

MalwareGetshellditekSHen detectionBSD 2-Clause LicenseCompile avec YARA-X
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:
		description = "Detect GetShell Linux backdoor"
		author = "ditekSHen"
		id = "cccad93d-cd49-5237-96ac-66c9ac6ef532"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L10705-L10725"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "9d44ad2a3c270eed0e905402e8c32dcca54da90f4229d9d59874ee09b3b47277"
		score = 75
		quality = 75
		tags = "FILE"
		clamav1 = "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)

IdentifiantTypeValeurModificateurs
$x1texte"cat <(echo '@reboot echo socks5_backconnect"ascii
$x2texte"(cd && )') <(sed '/socks5_backconnect"ascii
$s1texte"cat <(echo '@"ascii
$s2texte"(cd && )') <(sed '"ascii
$s3texte"PORT1:"ascii
$s4texte"HOST1:"ascii
$s5texte"queryheader"ascii
$s6texte"qsectionpost"ascii
$s7texte"packedip"ascii
$s8texte"copydata"ascii
$s9texte"synsend"ascii
$s10texte"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.

Ouvrir dans l’éditeur

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

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: cccad93d-cd49-5237-96ac-66c9ac6ef532

Métadonnées

clamav1MALWARE.Linux.Trojan.GetShell

Tags:FILE