UPSTYLE
- Type
- Webshell
- Capabilities
- PersistencePost exploitationDefense evasion
- Platforms
- LinuxNetwork device
UPSTYLE is a custom Python-based web shell targeting Palo Alto Networks PAN-OS firewalls running GlobalProtect. It is associated with UTA0218, also tracked as SLIME61, and the Operation MidnightEclipse campaign involving zero-day exploitation of CVE-2024-3400 in 2024. This unauthenticated command-injection vulnerability enables remote code execution with root privileges on affected firewalls. UPSTYLE-associated attacks have included targeting the manufacturing sector in Saudi Arabia. Installation attempts failed in some investigated intrusions, after which the attackers used alternative persistence mechanisms.
UPSTYLE executes commands embedded in specially crafted requests to nonexistent pages on the compromised firewall. It monitors the resulting VPN web-service error logs, extracts and decodes the commands, and executes them locally. Command output is temporarily appended to a legitimate, web-accessible CSS resource for retrieval. The implant removes command-bearing log entries, restores the CSS resource after approximately 15 seconds, and restores access and modification timestamps to conceal activity. Its installer uses a Python package-initialization mechanism to execute a Base64-encoded backdoor when Python starts. UPSTYLE also uses benign-looking filenames for masquerading. These behaviors provide persistent post-exploitation command execution while minimizing visible changes to legitimate firewall resources.
Associated vulnerabilities
4 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
3 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
SLIME61 (aka UTA0218) has exploited CVE-2024-3400 as zero-day with UPStyle web shell in several attacks, including an attack against manufacturing industry in Saudi Arabia.
SLIME61 (aka UTA0218) has exploited CVE-2024-3400 as zero-day with UPStyle web shell in several attacks, including an attack against manufacturing industry in Saudi Arabia.
After initial exploitation, threat actors have been observed deploying reverse shells and the UPSTYLE backdoor, as well as executing a variety of commands on the firewall, including copying and exfiltrating configuration files.
Techniques & procedures
19 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
4 techniques
Execution
"Threat Hunting: Monitor for anomalous gNMI requests or unexpected cron job creation, indicators of UPSTYLE backdoor activity."
Tracked as CVE-2024-3400 (CVSS: 10), this is a command injection vulnerability in the GlobalProtect feature of Palo Alto Networks PAN-OS software. | After initial exploitation, threat actors have been observed deploying reverse shells and the UPSTYLE backdoor...
[UPSTYLE](https://attack.mitre.org/software/S1164) is a Python-based application.(Citation: Volexity UPSTYLE 2024)(Citation: Palo Alto MidnightEclipse APR 2024)
Exploitation of CVE-2024-3400 would allow an unauthenticated remote attacker to execute arbitrary code with root privileges on the firewall.
Persistence
4 techniques
Persistence
"Threat Hunting: Monitor for anomalous gNMI requests or unexpected cron job creation, indicators of UPSTYLE backdoor activity."
"Successful exploitation allows attackers to... deploy persistent backdoors like the UPSTYLE malware observed in prior PAN-OS campaigns."
After initial exploitation, threat actors have been observed deploying reverse shells and the UPSTYLE backdoor...
[UPSTYLE](https://attack.mitre.org/software/S1164) creates a `.pth` file beginning with the text `import` so that any time another process or script attempts to reference the modified item the malicious code will also run.(Citation: Volexity UPSTYLE 2024)
Privilege Escalation
3 techniques
Privilege Escalation
"Threat Hunting: Monitor for anomalous gNMI requests or unexpected cron job creation, indicators of UPSTYLE backdoor activity."
After initial exploitation, threat actors have been observed deploying reverse shells and the UPSTYLE backdoor...
[UPSTYLE](https://attack.mitre.org/software/S1164) creates a `.pth` file beginning with the text `import` so that any time another process or script attempts to reference the modified item the malicious code will also run.(Citation: Volexity UPSTYLE 2024)
Stealth
6 techniques
Stealth
The content repeatedly describes payloads, strings, configuration files, scripts, URLs, and binaries being obfuscated or encoded using Base64, XOR, RC4, AES, RSA, hex encoding, custom algorithms, and other methods across many malware families and threat actors.
[UPSTYLE](https://attack.mitre.org/software/S1164) stores primary content as base64-encoded objects.(Citation: Volexity UPSTYLE 2024)(Citation: Palo Alto MidnightEclipse APR 2024)
[UPSTYLE](https://attack.mitre.org/software/S1164) has masqueraded filenames using examples such as `update.py`.(Citation: Volexity UPSTYLE 2024)
[UPSTYLE](https://attack.mitre.org/software/S1164) removes `bootstrap.min.css` after parsing command and control instructions, restoring the file to its original state.(Citation: Volexity UPSTYLE 2024)
[UPSTYLE](https://attack.mitre.org/software/S1164) restores timestamps to original values following modification.(Citation: Volexity UPSTYLE 2024)
[UPSTYLE](https://attack.mitre.org/software/S1164) encodes its main content prior to loading via Python as base64-encoded blobs.(Citation: Volexity UPSTYLE 2024)(Citation: Palo Alto MidnightEclipse APR 2024)
Defense Impairment
1 technique
Defense Impairment
[UPSTYLE](https://attack.mitre.org/software/S1164) clears error logs after reading embedded commands for execution.(Citation: Volexity UPSTYLE 2024)
Discovery
2 techniques
Discovery
[UPSTYLE](https://attack.mitre.org/software/S1164) has the ability to read `/proc/self/cmdline` to see if it is running as a monitored process.(Citation: Palo Alto MidnightEclipse APR 2024)
After initial exploitation, threat actors have been observed deploying reverse shells and the UPSTYLE backdoor, as well as executing a variety of commands on the firewall, including copying and exfiltrating configuration files.
Command and Control
3 techniques
Command and Control
[UPSTYLE](https://attack.mitre.org/software/S1164) retrieves a non-existent webpage from the command and control server then parses commands from the resulting error logs to decode commands to the web shell.(Citation: Volexity UPSTYLE 2024)
[UPSTYLE](https://attack.mitre.org/software/S1164) parses encoded commands from error logs after attempting to resolve a non-existing webpage from the command and control server.(Citation: Volexity UPSTYLE 2024)
[UPSTYLE](https://attack.mitre.org/software/S1164) attempts to retrieve a non-existent webpage from the command and control server resulting in hidden commands sent via resulting error messages.(Citation: Volexity UPSTYLE 2024)
Observables
13 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.