Aller au contenu

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_SUSP_Jdniexploit_Indicators_Dec21

Detects indicators of JDNI usage in log files and other payloads

Suspect / chasseSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compile avec YARA-X
Auteur
Florian Roth (Nextron Systems)
Date
2021-12-10
Modifiée
2021-12-12
Score / Qualité
70 / 85

Ce que détecte cette règle

Detects indicators of JDNI usage in log files and other payloads

Elle définit 1 motifs (0 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

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
}

Chaînes (1 motifs)

IdentifiantTypeValeurModificateurs
$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 …

Condition

filesize < 100MB and $xr1

En clair (Heuristique)

  • Le fichier doit faire moins de 100MB (garde-fou peu coûteux qui écarte les gros fichiers).
  • Le motif $xr1 doit être présent.

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

Licence et attribution

Auteur : Florian Roth (Nextron Systems)

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: 2df8b8f3-8d8d-5982-8c85-692b7d91ebb2

Tags:FILE