Key facts
- To maintain persistence, attackers modified the auto_prepend_file PHP directive across /etc/php/ and /opt/plesk/php/ to load a malicious file before any PHP script runs.
- Attackers deployed a custom Go-based remote access Trojan named SysGoRAT, first seen as sys-control-client, supporting Windows and Linux.
- Attackers attempted to disable endpoint protections by terminating Cortex XDR-related processes using pgrep and pkill, but Cortex XDR detected and blocked these attempts.
- Attackers stole credentials via a malicious .bashrc sudo alias that captures passwords and logs them as Solarwinds.StatusLog.txt.
Unit 42 identified an espionage campaign, designated CL‑UNK‑1211, that targeted government Linux servers from Oct. 2025 to Apr. 2026. The attackers used AI‑generated payloads that contained conversational code comments and reasoning notes, indicating LLM‑assisted code generation. To maintain persistence on compromised systems, the threat actors modified the auto_prepend_file PHP directive in both /etc/php/ and /opt/plesk/php/ directories.
The auto_prepend_file directive causes PHP to load a specified file before any script runs, allowing the malicious file to execute whenever a PHP page is accessed. By pointing the directive to a malicious file, the attackers achieved global execution of their code across all PHP applications on the server. In one observed case, the actors deployed a web shell at /usr/lib/php/plesk_sys_driver.php to masquerade as a legitimate system component and obtain persistent backdoor access.
A web shell is a script that provides remote command‑execution capabilities through a web interface, often hidden within an innocuous‑looking file name. The chosen file name resembled a standard PHP helper, helping the web shell blend with normal server files while granting the attackers control over the host. To harvest credentials, the attackers inserted a malicious alias into the .bashrc file that captures passwords entered with sudo and writes them to a file called Solarwinds.StatusLog.txt.
The .bashrc file is a shell script that runs each time a user starts a Bash session, making it a convenient location for credential‑stealing code. When a user executes sudo, the alias redirects the supplied password to the log file, allowing the collection of privileged account credentials without triggering typical authentication alerts. Separately, the attackers modified PHP login pages to forward submitted admin usernames and passwords to their own log file for further credential harvesting.
By altering the server‑side script that processes login attempts, the attackers could capture authentication data before the legitimate application validated it. The actors deployed a custom Go‑based remote access Trojan named SysGoRAT, first observed under the filename sys‑control‑client and capable of running on both Windows and Linux. SysGoRAT establishes communication with its operators over a WebSocket connection to a hard‑coded IP address, 104.194.158.65:443, although the address can be changed via a command‑line argument.
A WebSocket is a protocol that provides full‑duplex communication channels over a single TCP connection, often used for real‑time data exchange between a client and a server. The Trojan supports seven distinct command types, including spawning a remote shell, capturing screenshots, and exfiltrating files after compressing them with gzip (a file compression program). These capabilities give the attackers flexible control over compromised hosts, allowing them to execute commands, gather visual intelligence, and steal data while reducing network traffic through compression.
In an attempt to disable endpoint defenses, the attackers tried to terminate Cortex XDR‑related processes using the pgrep and pkill utilities. Cortex XDR is an endpoint detection and response platform that monitors and blocks malicious activity on workstations and servers. The security product detected the termination attempts and blocked them, preventing the attackers from successfully disabling the protection.
To hinder forensic analysis, the attackers employed multiple anti‑forensics measures, such as timestomping (the practice of altering file timestamps), deleting logs, and planting fake red‑team indicators like the string RedTeamOps2025. Timestomping alters file timestamps to confuse timeline reconstructions, while log deletion removes records that could reveal malicious activity. The attackers intended the insertion of RedTeamOps2025 to mislead investigators into believing the activity was part of a legitimate red‑team exercise rather than a hostile intrusion.
To avoid leaving files on disk, the attackers used in‑memory reverse shells via Netcat named pipes, Bash TCP redirects, and Python subprocesses. These techniques create a socket connection back to the attacker’s server while keeping the malicious code solely in random‑access memory, thereby reducing detectable artifacts. The attackers routed the reverse shells through at least seven distinct command‑and‑control servers, increasing the difficulty of tracing the infrastructure back to a single source.
The attackers enumerated government mail servers, counted emails in Maildir/cur/ directories, and used a PHP script to search for social‑media‑related messages to facilitate credential access. Maildir/cur/ is a directory structure used by some mail systems to store individual email messages, making it a target for credential‑harvesting operations. They attempted to create a Bash script named zip_mails.sh that would compress and exfiltrate entire mailboxes, but the script contained syntax errors that would cause it to fail when run.
Because of the faulty syntax, the script would not run successfully, limiting the attackers’ ability to bulk‑export e‑mail data through that method. Federal agencies should enforce strict outbound firewall rules and use endpoint detection to watch standard utilities that spawn interactive shells.
Palo Alto Networks products such as Advanced WildFire, Cortex XDR, and Cortex Cloud are cited as providing protection against the threats described in this campaign. Advanced WildFire is a cloud‑based threat analysis service, Cortex XDR delivers endpoint detection and response, and Cortex Cloud extends similar capabilities to cloud workloads.

Join the discussion