Zum Inhalt springen

YARA · Volexity threat-intel

VOLEXITY_Webshell_Jsp_Godzilla

Detects the JSP implementation of the Godzilla Webshell.

WebshellGodzillaVolexity threat-intelBSD 2-Clause LicenseKompiliert mit YARA-X
Autor
threatintel@volexity.com
Datum
2021-11-08
Geändert
2024-07-30
Score / Qualität
75 / 80

Was diese Regel erkennt

Detects the JSP implementation of the Godzilla Webshell.

Zugehörige Malware-Familie: Godzilla.

Sie definiert 7 Muster (6 Text, 0 Hex, 1 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

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* )
}

Strings (7 Muster)

BezeichnerTypWertModifikatoren
$s1Text".getWriter().write(base64Encode("wide ascii
$s2Text".getAttribute("ascii wide
$s3Text"java.security.MessageDigest"ascii wide
$auth1Regex/String xc=\"[a-f0-9]{16}\"/ascii wide
$auth2Text"String pass=\""ascii wide
$magicText"class X extends ClassLoader{public X(ClassLoader z){super(z);}public Class Q"
$magic2Text"<%@page import=\"java.util.*,javax.crypto.*,javax.crypto.spec.*\"%><%!class"

Bedingung

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

In Worten (Heuristik)

  • Alle Muster aus ( $s* ) müssen treffen.
  • Alle Muster aus ( $auth* ) müssen treffen.
  • Mindestens ein Muster aus ( $magic* ) muss treffen.

Diese Regel im Browser testen

Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.

Datei hier ablegen oder klicken zum AuswählenLokal mit YARA-X gescannt. Dateien bis 200 MB.

Im Editor öffnen

Referenzen

Proben-Hashes

Hashes der Proben, die der Autor in den Metadaten der Regel nennt (in Ihrer Threat-Intelligence-Plattform nachschlagen).

  • 2786d2dc738529a34ecde10ffeda69b7f40762bf13e7771451f13a24ab7fc5fe

Lizenz & Namensnennung

Autor: threatintel@volexity.com

Quell-Repository: Volexity threat-intel @ 3a9d0b5245

Lizenz: BSD 2-Clause License (in den Metadaten der Regel angegeben)

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

Copyright-Hinweis: Copyright 2022 by Volexity, Inc.

Originalregel

Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.

Regel-ID: 47c8eab8-84d7-5566-b757-5a6dcc7579b7

Metadaten

oswin,linux
os_archall
scan_contextfile,memory
severitycritical
rule_id6100
version6

Tags:FILEMEMORY