Aller au contenu

YARA · Volexity threat-intel

VOLEXITY_Webshell_Jsp_Godzilla

Detects the JSP implementation of the Godzilla Webshell.

Web shellGodzillaVolexity threat-intelBSD 2-Clause LicenseCompile avec YARA-X
Auteur
threatintel@volexity.com
Date
2021-11-08
Modifiée
2024-07-30
Score / Qualité
75 / 80

Ce que détecte cette règle

Detects the JSP implementation of the Godzilla Webshell.

Famille de malware associée : Godzilla.

Elle définit 7 motifs (6 texte, 0 hex, 1 regex).

Résumé généré à partir des métadonnées et de la condition de la règle.

Source de la règle

webshell-jsp-godzilla.yarBSD 2-Clause License
rule VOLEXITY_Webshell_Jsp_Godzilla : FILE MEMORY
{
	meta:
		description = "Detects the JSP implementation of the Godzilla Webshell."
		author = "threatintel@volexity.com"
		id = "47c8eab8-84d7-5566-b757-5a6dcc7579b7"
		date = "2021-11-08"
		modified = "2024-07-30"
		reference = "https://unit42.paloaltonetworks.com/manageengine-godzilla-nglite-kdcsponge/"
		source_url = "https://github.com/volexity/threat-intel/blob/3a9d0b52459877ee866a9a0ba06e60059b778c77/2022/2022-08-10 Mass exploitation of (Un)authenticated Zimbra RCE CVE-2022-27925/yara.yar#L1-L34"
		license_url = "https://github.com/volexity/threat-intel/blob/3a9d0b52459877ee866a9a0ba06e60059b778c77/LICENSE.txt"
		hash = "2786d2dc738529a34ecde10ffeda69b7f40762bf13e7771451f13a24ab7fc5fe"
		logic_hash = "52cba9545f662da18ca6e07340d7a9be637b89e7ed702dd58cac545c702a00e3"
		score = 75
		quality = 80
		tags = "FILE, MEMORY"
		os = "win,linux"
		os_arch = "all"
		scan_context = "file,memory"
		severity = "critical"
		license = "See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt"
		rule_id = 6100
		version = 6

	strings:
		$s1 = ".getWriter().write(base64Encode(" wide ascii
		$s2 = ".getAttribute(" ascii wide
		$s3 = "java.security.MessageDigest" ascii wide
		$auth1 = /String xc=\"[a-f0-9]{16}\"/ ascii wide
		$auth2 = "String pass=\"" ascii wide
		$magic = "class X extends ClassLoader{public X(ClassLoader z){super(z);}public Class Q"
		$magic2 = "<%@page import=\"java.util.*,javax.crypto.*,javax.crypto.spec.*\"%><%!class"

	condition:
		all of ( $s* ) or all of ( $auth* ) or any of ( $magic* )
}

Chaînes (7 motifs)

IdentifiantTypeValeurModificateurs
$s1texte".getWriter().write(base64Encode("wide ascii
$s2texte".getAttribute("ascii wide
$s3texte"java.security.MessageDigest"ascii wide
$auth1regex/String xc=\"[a-f0-9]{16}\"/ascii wide
$auth2texte"String pass=\""ascii wide
$magictexte"class X extends ClassLoader{public X(ClassLoader z){super(z);}public Class Q"
$magic2texte"<%@page import=\"java.util.*,javax.crypto.*,javax.crypto.spec.*\"%><%!class"

Condition

all of ( $s* ) or all of ( $auth* ) or any of ( $magic* )

En clair (Heuristique)

  • Tous les motifs de ( $s* ) doivent être trouvés.
  • Tous les motifs de ( $auth* ) doivent être trouvés.
  • Au moins un motif de ( $magic* ) doit être trouvé.

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

  • 2786d2dc738529a34ecde10ffeda69b7f40762bf13e7771451f13a24ab7fc5fe

Licence et attribution

Auteur : threatintel@volexity.com

Dépôt source : Volexity threat-intel @ 3a9d0b5245

Licence : BSD 2-Clause License (indiquée dans les métadonnées de la règle)

“See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt”

Mention de copyright : Copyright 2022 by Volexity, Inc.

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: 47c8eab8-84d7-5566-b757-5a6dcc7579b7

Métadonnées

oswin,linux
os_archall
scan_contextfile,memory
severitycritical
rule_id6100
version6

Tags:FILEMEMORY