Aller au contenu

YARA · SEKOIA.IO Community

SEKOIA_Tool_Chisel_Strings

Detects Chisel

Outil offensifSEKOIA.IO CommunityDetection Rule License 1.1Compile avec YARA-X
Auteur
Sekoia.io
Date
2024-03-14
Modifiée
2024-12-19
Score / Qualité
75 / 80

Ce que détecte cette règle

Detects Chisel

Cibles : PE Windows, ELF Linux.

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

tool-chisel-strings.yarDetection Rule License 1.1
rule SEKOIA_Tool_Chisel_Strings : FILE
{
	meta:
		description = "Detects Chisel"
		author = "Sekoia.io"
		id = "667a8aa3-772b-45f1-8c89-acb7b976888d"
		date = "2024-03-14"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/tool_chisel_strings.yar#L1-L21"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "fe389d9d0ae73c79f1040274e21135d4df645c5ac672fc824923f0a5a085be8a"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "tunnel.(*Tunnel).handleSSHChannel."
		$ = "server.(*Server).handleWebsocket"
		$ = "tunnel.(*udpHandler)"
		$ = "server.(*Server).tlsLetsEncrypt"
		$ = "cnet.(*wsConn).SetPingHandler.(*Conn)"
		$ = "tunnel.(*udpConns).dial."

	condition:
		( uint32be( 0 ) == 0x7f454c46 or uint16be( 0 ) == 0x4d5a ) and filesize < 15MB and 3 of them
}

Chaînes (6 motifs)

IdentifiantTypeValeurModificateurs
$texte"tunnel.(*Tunnel).handleSSHChannel."
$texte"server.(*Server).handleWebsocket"
$texte"tunnel.(*udpHandler)"
$texte"server.(*Server).tlsLetsEncrypt"
$texte"cnet.(*wsConn).SetPingHandler.(*Conn)"
$texte"tunnel.(*udpConns).dial."

Condition

( uint32be( 0 ) == 0x7f454c46 or uint16be( 0 ) == 0x4d5a ) and filesize < 15MB and 3 of them

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Le fichier doit commencer par l’en-tête ELF — un exécutable Linux/Unix.
  • Le fichier doit faire moins de 15MB (garde-fou peu coûteux qui écarte les gros fichiers).
  • Au moins 3 motifs de la règle 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 : 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: 667a8aa3-772b-45f1-8c89-acb7b976888d

Métadonnées

version1.0
classificationTLP:CLEAR

Tags:FILE