Saltar al contenido

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_SUSP_Jdniexploit_Indicators_Dec21

Detects indicators of JDNI usage in log files and other payloads

Sospechoso / huntingSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compila con YARA-X
Autor
Florian Roth (Nextron Systems)
Fecha
2021-12-10
Modificada
2021-12-12
Puntuación / Calidad
70 / 85

Qué detecta esta regla

Detects indicators of JDNI usage in log files and other payloads

Define 1 patrones (0 de texto, 0 hex, 1 regex).

Resumen generado a partir de los metadatos y la condición de la regla.

Código de la regla

susp-jdniexploit-indicators-dec21.yarDetection Rule License 1.1
rule SIGNATURE_BASE_SUSP_Jdniexploit_Indicators_Dec21 : FILE
{
	meta:
		description = "Detects indicators of JDNI usage in log files and other payloads"
		author = "Florian Roth (Nextron Systems)"
		id = "2df8b8f3-8d8d-5982-8c85-692b7d91ebb2"
		date = "2021-12-10"
		modified = "2021-12-12"
		reference = "https://github.com/flypig5211/JNDIExploit"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/expl_log4j_cve_2021_44228.yar#L167-L180"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "7886a67672001f0db72575d96d3a12341bfcdc49a9951e3d5e2a88ab46bf5a5d"
		score = 70
		quality = 85
		tags = "FILE"

	strings:
		$xr1 = /(ldap|ldaps|rmi|dns|iiop|http|nis|nds|corba):\/\/[a-zA-Z0-9\.]{7,80}:[0-9]{2,5}\/(Basic\/Command\/Base64|Basic\/ReverseShell|Basic\/TomcatMemshell|Basic\/JBossMemshell|Basic\/WebsphereMemshell|Basic\/SpringMemshell|Basic\/Command|Deserialization\/CommonsCollectionsK|Deserialization\/CommonsBeanutils|Deserialization\/Jre8u20\/TomcatMemshell|Deserialization\/CVE_2020_2555\/WeblogicMemshell|TomcatBypass|GroovyBypass|WebsphereBypass)\//

	condition:
		filesize < 100MB and $xr1
}

Cadenas (1 patrones)

IdentificadorTipoValorModificadores
$xr1regex/(ldap|ldaps|rmi|dns|iiop|http|nis|nds|corba):\/\/[a-zA-Z0-9\.]{7,80}:[0-9]{2,5}\/(Basic\/Command\/Base64|Basic\/ReverseShell|Basic\/TomcatMemshell|Basic\/JBoss …

Condición

filesize < 100MB and $xr1

En palabras sencillas (Heurística)

  • El archivo debe ocupar menos de 100MB (un límite barato que descarta archivos grandes).
  • El patrón $xr1 debe estar presente.

Prueba esta regla en tu navegador

Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.

Arrastra un archivo aquí o haz clic para elegirSe escanea en local con YARA-X. Archivos de hasta 200 MB.

Abrir en el editor

Referencias

Licencia y atribución

Autor: Florian Roth (Nextron Systems)

Repositorio de origen: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

Licencia: Detection Rule License 1.1 (licencia del repositorio)

Regla original

Obtenida a través de YARA Forge 20260927, que añade a los nombres el prefijo de la fuente y campos meta normalizados.

Id de la regla: 2df8b8f3-8d8d-5982-8c85-692b7d91ebb2

Etiquetas:FILE