Zum Inhalt springen

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_SUSP_LNX_Base64_Exec_Apr24

Detects suspicious base64 encoded shell commands (as seen in Palo Alto CVE-2024-3400 exploitation)

Verdächtig / HuntingSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Kompiliert mit YARA-X
Autor
Christian Burkard
Datum
2024-04-18
Geändert
2025-03-21
Score / Qualität
75 / 85

Was diese Regel erkennt

Detects suspicious base64 encoded shell commands (as seen in Palo Alto CVE-2024-3400 exploitation)

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

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

susp-lnx-base64-exec-apr24.yarDetection Rule License 1.1
rule SIGNATURE_BASE_SUSP_LNX_Base64_Exec_Apr24 : SCRIPT CVE_2024_3400 FILE
{
	meta:
		description = "Detects suspicious base64 encoded shell commands (as seen in Palo Alto CVE-2024-3400 exploitation)"
		author = "Christian Burkard"
		id = "2da3d050-86b0-5903-97eb-c5f39ce4f3a3"
		date = "2024-04-18"
		modified = "2025-03-21"
		reference = "Internal Research"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/vuln_paloalto_cve_2024_3400_apr24.yar#L81-L105"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "e96fb7c8faac12c1f0210689f2b3a7903b42a543b97ddff11298e5ae13cae80b"
		score = 75
		quality = 85
		tags = "SCRIPT, CVE-2024-3400, FILE"

	strings:
		$s1 = "curl http://" base64
		$s2 = "wget http://" base64
		$s3 = ";chmod 777 " base64
		$mirai = "country="
		$fp1 = "<html"
		$fp2 = "<?xml"

	condition:
		filesize < 800KB and 1 of ( $s* ) and not $mirai and not 1 of ( $fp* )
}

Strings (6 Muster)

BezeichnerTypWertModifikatoren
$s1Text"curl http://"base64
$s2Text"wget http://"base64
$s3Text";chmod 777 "base64
$miraiText"country="
$fp1Text"<html"
$fp2Text"<?xml"

Bedingung

filesize < 800KB and 1 of ( $s* ) and not $mirai and not 1 of ( $fp* )

In Worten (Heuristik)

  • Die Datei muss kleiner als 800KB sein (eine günstige Grenze, die große Dateien ausschließt).
  • Mindestens 1 Muster aus ( $s* ) müssen treffen.
  • Mindestens 1 Muster aus ( $fp* ) müssen treffen.
  • Muster $mirai darf NICHT vorhanden sein.

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

Lizenz & Namensnennung

Autor: Christian Burkard

Quell-Repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

Lizenz: Detection Rule License 1.1 (Repository-Lizenz)

Originalregel

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

Regel-ID: 2da3d050-86b0-5903-97eb-c5f39ce4f3a3

Tags:SCRIPTCVE_2024_3400FILE