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)
Suspicious / huntingSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
- Author
- Christian Burkard
- Date
- 2024-04-18
- Modified
- 2025-03-21
- Score / Quality
- 75 / 85
What this rule detects
Detects suspicious base64 encoded shell commands (as seen in Palo Alto CVE-2024-3400 exploitation)
It defines 6 patterns (6 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
susp-lnx-base64-exec-apr24.yarDetection Rule License 1.1
rule SIGNATURE_BASE_SUSP_LNX_Base64_Exec_Apr24 : SCRIPT CVE_2024_3400 FILE
{
meta:
= "Detects suspicious base64 encoded shell commands (as seen in Palo Alto CVE-2024-3400 exploitation)"
= "Christian Burkard"
= "2da3d050-86b0-5903-97eb-c5f39ce4f3a3"
= "2024-04-18"
= "2025-03-21"
= "Internal Research"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/vuln_paloalto_cve_2024_3400_apr24.yar#L81-L105"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "e96fb7c8faac12c1f0210689f2b3a7903b42a543b97ddff11298e5ae13cae80b"
= 75
= 85
= "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 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "curl http://" | base64 |
| $s2 | text | "wget http://" | base64 |
| $s3 | text | ";chmod 777 " | base64 |
| $mirai | text | "country=" | |
| $fp1 | text | "<html" | |
| $fp2 | text | "<?xml" |
Condition
filesize < 800KB and 1 of ( $s* ) and not $mirai and not 1 of ( $fp* )In plain words (Heuristic)
- The file must be smaller than 800KB (a cheap guard that skips large files).
- At least 1 patterns in ( $s* ) must match.
- At least 1 patterns in ( $fp* ) must match.
- Pattern $mirai must NOT be present.
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.
Licence & attribution
Author: Christian Burkard
Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 2da3d050-86b0-5903-97eb-c5f39ce4f3a3
Related rules
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Christian Burkard· 2022-06-01
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Christian Burkard· 2022-06-01
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Christian Burkard· 2022-06-01
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Christian Burkard· 2022-06-01
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Florian Roth· 2024-02-23
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Paul Hager· 2024-04-18
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Florian Roth· 2024-02-23
- GenericSignature Base (Florian Roth / Nextron)· Christian Burkard· 2022-05-24