Potential CVE-2024-3400 Exploitation - Palo Alto GlobalProtect OS Command Injection - File Creation
Detects suspicious file creations in the Palo Alto Networks PAN-OS' parent telemetry folder, which are processed by the vulnerable 'dt_curl' script if device telemetry is enabled. As said script overrides the shell-subprocess restriction, arbitrary command execution may occur by carefully crafting filenames that are escaped through this function.
Detection logic
selection
TargetFilename|contains:
- "{IFS}"
- base64
- bash
- curl
- http
TargetFilename|startswith: /opt/panlogs/tmp/device_telemetry/Condition
selectionRaw YAML
title: Potential CVE-2024-3400 Exploitation - Palo Alto GlobalProtect OS Command Injection - File Creation
id: bcd95697-e3e7-4c6f-8584-8e3503e6929f
status: test
description: |
Detects suspicious file creations in the Palo Alto Networks PAN-OS' parent telemetry folder, which are processed by the vulnerable 'dt_curl' script if device telemetry is enabled.
As said script overrides the shell-subprocess restriction, arbitrary command execution may occur by carefully crafting filenames that are escaped through this function.
references:
- https://labs.watchtowr.com/palo-alto-putting-the-protecc-in-globalprotect-cve-2024-3400/
- https://nvd.nist.gov/vuln/detail/CVE-2024-3400
author: Andreas Braathen (mnemonic.io)
date: 2024-04-25
tags:
- attack.execution
- cve.2024-3400
- detection.emerging-threats
logsource:
product: paloalto
service: globalprotect
category: file_event
definition: 'Requirements: file creation events need to be ingested from the Palo Alto GlobalProtect appliance'
detection:
selection:
TargetFilename|contains:
- '{IFS}'
- 'base64'
- 'bash'
- 'curl'
- 'http'
TargetFilename|startswith: '/opt/panlogs/tmp/device_telemetry/'
condition: selection
falsepositives:
- The PAN-OS device telemetry function does not enforce a standard filename convention, but observations are unlikely.
level: mediumFalse positives
- The PAN-OS device telemetry function does not enforce a standard filename convention, but observations are unlikely.
References
Similar rules
CVE-2021-1675 Print Spooler Exploitation Filename Pattern
criticalwindows · Same logsource category (file_event)
CVE-2021-26858 Exchange Exploitation
highwindows · Same logsource category (file_event)
CVE-2021-31979 CVE-2021-33771 Exploits by Sourgum
criticalwindows · Same logsource category (file_event)
CVE-2021-44077 POC Default Dropped File
highwindows · Same logsource category (file_event)