Unit 42 has identified an espionage campaign, tracked as CL-UNK-1211, targeting government entities and state-affiliated infrastructure. This sophisticated operation leverages AI-generated payloads to achieve extensive reconnaissance, maintain persistent network access, and facilitate intelligence-gathering. While Unit 42 identified this campaign, the observed activity was noted as spanning from October 2025–April 2026, indicating a potentially ongoing or foreseen long-term threat. Attackers have demonstrated a methodical approach, focusing on Linux environments to dump sensitive databases and exfiltrate government mailboxes, aiming to gain access to associated social media accounts, according to Unit 42.
Campaign Details and TTPs
The CL-UNK-1211 campaign employs a diverse toolkit combining open-source tools, custom cross-platform backdoors, and widespread web shell deployments. A defining characteristic is the use of AI-generated payloads, evidenced by conversational annotations and developer reasoning comments within deployed artifacts.
AI-Generated Payloads in CL-UNK-1211 Operations
Throughout their operations, the attackers utilized malicious PHP and shell scripts for persistence, reconnaissance, and data exfiltration. Analysis of these payloads revealed structural patterns and artifacts consistent with AI-assisted code generation. Notably, scripts contained conversational, step-by-step reasoning notes explaining the code’s logic, rather than standard developer documentation. This suggests the code was either copied directly from an AI prompt output or deployed by an automated AI agent. Security teams focused on detecting CL-UNK-1211 AI-generated payloads should look for these unusual inline comments and code structures that deviate from typical human-written developer documentation.
Linux Infrastructure Compromise and Persistence
To establish and maintain persistent backdoors on targeted Linux servers, the attackers deployed various web shells, including both custom and open-source variants found on GitHub. A key persistence mechanism involved modifying the auto_prepend_file value across PHP configurations within /etc/php/ and /opt/plesk/php/ directories. This ensures that a malicious PHP web shell, often disguised as a legitimate file like /usr/lib/php/plesk_sys_driver.php, executes automatically before any other PHP script. Organizations seeking mitigation for Linux PHP auto_prepend_file persistence should regularly audit PHP configuration files for unauthorized modifications and restrict write access to these directories.
Credential Theft and Evasion Techniques
The attackers employed multiple methods for credential harvesting. One technique involved replacing the .bashrc file with a malicious copy containing a command alias for sudo. This alias was designed to intercept user passwords, log them to a file named Solarwinds.StatusLog.txt (mimicking legitimate activity), and then pass the credentials to the actual sudo command, leaving the user unaware. Another method included injecting code into PHP login pages, likely targeting database authentication routines, to harvest admin credentials. Furthermore, CL-UNK-1211 actors displayed a methodical approach to defense evasion, attempting to disable endpoint protections, erase system logs, and plant deceptive red-team markers to camouflage their activity as a security assessment.
Target Profile: Government Linux Infrastructure Intelligence Gathering
This campaign specifically targets government entities and state-affiliated infrastructure, with the primary objective of intelligence gathering. Attackers systematically enumerate mailboxes to identify and gain access to social media accounts linked to government email addresses. They also focus on dumping entire database contents for exfiltration. Organizations managing government Linux infrastructure intelligence gathering defense should prioritize securing sensitive data repositories and email systems, understanding the high value these assets hold for espionage campaigns.
Recommendations for Defenders
To counter the threats posed by campaigns like CL-UNK-1211, security professionals should implement a multi-layered defense strategy:
- Enhanced Monitoring: Implement comprehensive logging and monitoring for all Linux systems, paying close attention to
/etc/php/and/opt/plesk/php/directories for unauthorizedauto_prepend_filemodifications. Monitor.bashrcand other user configuration files for unexpected changes. - Web Shell Detection: Deploy advanced EDR and network monitoring solutions capable of detecting known and unknown web shell activity, including interactive web shell processes and unusual file creations in web-accessible directories.
- Credential Management: Enforce strong password policies, multi-factor authentication (MFA), and regularly audit privileged accounts. Implement endpoint privilege management solutions to minimize the impact of credential theft.
- System Hardening: Apply the principle of least privilege across all Linux servers. Regularly patch operating systems, applications, and web servers to address known vulnerabilities.
- Log Integrity: Protect system logs from tampering by implementing remote logging to a secure, immutable log management solution. Configure endpoint protection platforms to detect attempts to disable security agents.
- AI-Assisted Code Review: Develop strategies to identify code generated by LLMs, especially in internally developed or third-party scripts, by looking for characteristic conversational comments or unusual structural patterns.
Related: Critical Citrix NetScaler Zero-Days: CVE-2026-88772 & CVE-2026-88771, Webmail CSS Injection: Hidden Data Exfiltration Threats