Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_SUSP_LNX_Base64_Download_Exec_Apr24

Detects suspicious base64 encoded shell commands used for downloading and executing further stages

Suspicious / huntingSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Paul Hager
Date
2024-04-18
Modified
2025-03-21
Score / Quality
75 / 85

What this rule detects

Detects suspicious base64 encoded shell commands used for downloading and executing further stages

It defines 4 patterns (4 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

susp-lnx-base64-download-exec-apr24.yarDetection Rule License 1.1
rule SIGNATURE_BASE_SUSP_LNX_Base64_Download_Exec_Apr24 : SCRIPT
{
	meta:
		description = "Detects suspicious base64 encoded shell commands used for downloading and executing further stages"
		author = "Paul Hager"
		id = "df8dddef-3c49-500c-abc8-7f7de5aa69ae"
		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#L48-L65"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "90b7781812b4078550b0d66ba020b3bb0a8217f2de03492af98db6c619f31929"
		score = 75
		quality = 85
		tags = "SCRIPT"

	strings:
		$sa1 = "curl http" base64
		$sa2 = "wget http" base64
		$sb1 = "chmod 777 " base64
		$sb2 = "/tmp/" base64

	condition:
		1 of ( $sa* ) and all of ( $sb* )
}

Strings (4 patterns)

IdentifierTypeValueModifiers
$sa1text"curl http"base64
$sa2text"wget http"base64
$sb1text"chmod 777 "base64
$sb2text"/tmp/"base64

Condition

1 of ( $sa* ) and all of ( $sb* )

In plain words (Heuristic)

  • All patterns in ( $sb* ) must match.
  • At least 1 patterns in ( $sa* ) must match.

Test this rule in your browser

Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

Licence & attribution

Author: Paul Hager

Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: df8dddef-3c49-500c-abc8-7f7de5aa69ae

Tags:SCRIPT