Aller au contenu

YARA · SEKOIA.IO Community

SEKOIA_Tool_Bypassgodzilla

Detects payload of BypassGodzilla

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

Ce que détecte cette règle

Detects payload of BypassGodzilla

Elle définit 11 motifs (11 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-bypassgodzilla.yarDetection Rule License 1.1
rule SEKOIA_Tool_Bypassgodzilla : FILE
{
	meta:
		description = "Detects payload of BypassGodzilla"
		author = "Sekoia.io"
		id = "fa492f97-a46c-422d-a617-c503744ee22e"
		date = "2024-09-09"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/tool_bypassgodzilla.yar#L1-L38"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "571c9042c627abba19ba1d591e2083eb"
		hash = "56cfc5a876f8f55bf184be9f368b6d8a"
		hash = "d4f7ca537701aee8849c474bc4df19d1"
		hash = "e4be04331c5f447b3ca03aa637d16c85"
		hash = "905fa3b692577a086ac654ef89e8b83d"
		logic_hash = "47e52267c73209c6191910ac21bca44acac2100be96250fd5dda1f889fb03b07"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$jsp_1a = "response.getWriter().write(\""
		$jsp_1b = "\".substring("
		$jsp_2a = "response.getWriter().write(java.util.Base64/*"
		$jsp_2b = "*/.getEncoder()/*"
		$jsp_2c = ".toByteArray(),true)));"
		$asp_1 = "[\"payload\"]).CreateInstance(\"LY\");"
		$asp_2 = "\\U00000045\\U00000071\\U00000075\\U00000061\\U0000006C\\U00000073(Context);"
		$php_1 = "=(\"!\"^\"@\").'ss'.Chr(\"101\").'rs';"
		$php_2 = "*/md5/*"
		$php_3 = "*/isset($_SESSION/*"
		$php_4 = "@set_time_limit(Chr(\"48\"))"

	condition:
		(( all of ( $jsp_* ) and ( @jsp_1b- @jsp_1a < 70 ) and ( @jsp_2b- @jsp_2a < 70 ) and ( @jsp_2c - @jsp_2a < 160 ) ) or ( all of ( $asp_* ) and ( @asp_2 > @asp_1 ) ) or ( all of ( $php_* ) ) ) and filesize < 30KB and true
}

Chaînes (11 motifs)

IdentifiantTypeValeurModificateurs
$jsp_1atexte"response.getWriter().write(\""
$jsp_1btexte"\".substring("
$jsp_2atexte"response.getWriter().write(java.util.Base64/*"
$jsp_2btexte"*/.getEncoder()/*"
$jsp_2ctexte".toByteArray(),true)));"
$asp_1texte"[\"payload\"]).CreateInstance(\"LY\");"
$asp_2texte"\\U00000045\\U00000071\\U00000075\\U00000061\\U0000006C\\U00000073(Context);"
$php_1texte"=(\"!\"^\"@\").'ss'.Chr(\"101\").'rs';"
$php_2texte"*/md5/*"
$php_3texte"*/isset($_SESSION/*"
$php_4texte"@set_time_limit(Chr(\"48\"))"

Condition

(( all of ( $jsp_* ) and ( @jsp_1b- @jsp_1a < 70 ) and ( @jsp_2b- @jsp_2a < 70 ) and ( @jsp_2c - @jsp_2a < 160 ) ) or ( all of ( $asp_* ) and ( @asp_2 > @asp_1 ) ) or ( all of ( $php_* ) ) ) and filesize < 30KB and true

En clair (Heuristique)

  • Le fichier doit faire moins de 30KB (garde-fou peu coûteux qui écarte les gros fichiers).
  • Tous les motifs de ( $jsp_* ) doivent être trouvés.
  • Tous les motifs de ( $asp_* ) doivent être trouvés.
  • Tous les motifs de ( $php_* ) 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).

  • 571c9042c627abba19ba1d591e2083eb
  • 56cfc5a876f8f55bf184be9f368b6d8a
  • d4f7ca537701aee8849c474bc4df19d1
  • e4be04331c5f447b3ca03aa637d16c85
  • 905fa3b692577a086ac654ef89e8b83d

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: fa492f97-a46c-422d-a617-c503744ee22e

Métadonnées

version1.0
classificationTLP:CLEAR

Tags:FILE