Aller au contenu

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_MAL_LNX_Camarodragon_Horseshell_Oct23

Detects CamaroDragon's HorseShell implant for routers

MalwareSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compile avec YARA-X
Auteur
Florian Roth
Date
2023-10-06
Modifiée
2023-12-05
Score / Qualité
85 / 85

Ce que détecte cette règle

Detects CamaroDragon's HorseShell implant for routers

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

mal-lnx-camarodragon-horseshell-oct23.yarDetection Rule License 1.1
rule SIGNATURE_BASE_MAL_LNX_Camarodragon_Horseshell_Oct23 : FILE
{
	meta:
		description = "Detects CamaroDragon's HorseShell implant for routers"
		author = "Florian Roth"
		id = "9e54745f-146f-50a6-b30f-53aaaa6907b5"
		date = "2023-10-06"
		modified = "2023-12-05"
		reference = "https://research.checkpoint.com/2023/the-dragon-who-sold-his-camaro-analyzing-custom-router-implant/"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_camaro_dragon_oct23.yar#L27-L56"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "998788472cb1502c03675a15a9f09b12f3877a5aeb687f891458a414b8e0d66c"
		logic_hash = "73adaa286b345cffd35e6ba017b3204d8818dcaeea8a48ca93959566461ac3ca"
		score = 85
		quality = 85
		tags = "FILE"

	strings:
		$x1 = "echo \"start shell '%s' failed!\" > .remote_shell.log" ascii fullword
		$x2 = "*****recv NET_REQ_HORSE_SHELL REQ_CONNECT_PORT*****" ascii fullword
		$s1 = "m.cremessage.com" ascii fullword
		$s2 = "POST http://%s/index.php HTTP/1.1" ascii fullword
		$s3 = "wzsw_encrypt_buf" ascii fullword
		$s4 = "body:%d-%s" ascii fullword
		$s5 = "User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident" ascii fullword
		$s6 = "process_http_read_events" ascii fullword
		$op1 = { c4 34 42 00 02 30 63 00 40 10 60 00 09 ae 62 00 48 8e 62 00 cc }
		$op2 = { 27 f4 8c 46 27 f0 03 20 f8 09 00 60 28 21 }

	condition:
		uint16( 0 ) == 0x457f and filesize < 600KB and ( 1 of ( $x* ) or 3 of them ) or 5 of them
}

Chaînes (10 motifs)

IdentifiantTypeValeurModificateurs
$x1texte"echo \"start shell '%s' failed!\" > .remote_shell.log"ascii fullword
$x2texte"*****recv NET_REQ_HORSE_SHELL REQ_CONNECT_PORT*****"ascii fullword
$s1texte"m.cremessage.com"ascii fullword
$s2texte"POST http://%s/index.php HTTP/1.1"ascii fullword
$s3texte"wzsw_encrypt_buf"ascii fullword
$s4texte"body:%d-%s"ascii fullword
$s5texte"User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident"ascii fullword
$s6texte"process_http_read_events"ascii fullword
$op1hex{ c4 34 42 00 02 30 63 00 40 10 60 00 09 ae 62 00 48 8e 62 00 cc }
$op2hex{ 27 f4 8c 46 27 f0 03 20 f8 09 00 60 28 21 }

Condition

uint16( 0 ) == 0x457f and filesize < 600KB and ( 1 of ( $x* ) or 3 of them ) or 5 of them

En clair (Heuristique)

  • Le fichier doit faire moins de 600KB (garde-fou peu coûteux qui écarte les gros fichiers).
  • Au moins 1 motifs de ( $x* ) doivent être trouvés.
  • Au moins 3 motifs de la règle doivent être trouvés.
  • Au moins 5 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

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

  • 998788472cb1502c03675a15a9f09b12f3877a5aeb687f891458a414b8e0d66c

Licence et attribution

Auteur : Florian Roth

Dépôt source : Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

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: 9e54745f-146f-50a6-b30f-53aaaa6907b5

Tags:FILE