Palo Alto Networks' Unit 42 has identified a sophisticated espionage campaign targeting government and state-affiliated Linux infrastructure. The activity cluster, tracked as CL-UNK-1211, was active from October 2025 through April 2026. The campaign is distinguished by its extensive use of what appears to be AI-generated payloads, including custom backdoors, web shells, and credential theft scripts. The primary objectives were intelligence gathering, database exfiltration, and compromising social media accounts linked to government emails. The attackers demonstrated a methodical approach, combining open-source tools with custom malware and employing advanced defense evasion techniques to maintain long-term, persistent access to high-value networks.
The CL-UNK-1211 campaign represents a significant evolution in attack methodology, leveraging artificial intelligence to streamline payload development and deployment. The threat actor focused on Linux-based environments, which are common in government and enterprise data centers. The core mission was espionage, with attackers attempting to dump entire databases and access government mailboxes to pivot to associated social media accounts.
The most notable characteristic of this campaign is the evidence of AI-assisted code generation. Multiple malicious PHP and shell scripts contained conversational annotations and detailed, step-by-step reasoning for the code's logic. This suggests the operators used Large Language Models (LLMs) to generate the attack tools, or that an automated AI agent was involved in the execution phase. The toolkit was diverse, featuring custom-built backdoors, web shells sourced from GitHub, and various open-source utilities for reconnaissance and lateral movement.
The attackers employed a multi-stage approach to infiltrate and control the target environments. Their Tactics, Techniques, and Procedures (TTPs) span the entire attack lifecycle.
T1505.003 - Server Software Component: Web Shell.auto_prepend_file directive in PHP configuration files located in /etc/php/ and /opt/plesk/php/. This forced the malicious script, such as /usr/lib/php/plesk_sys_driver.php, to load before any legitimate PHP script, guaranteeing persistence. This aligns with techniques for modifying system configurations for persistence.T1059.004 - Command and Scripting Interpreter: Unix Shell..bashrc file to create a malicious alias for the sudo command. When a user ran sudo, the alias would first execute a script to capture the entered password and save it to a log file, then pass the password to the legitimate sudo command. This is a form of T1056.001 - Input Capture: Keylogging and uses T1546.004 - Event Triggered Execution: .bashrc and .bash_profile for execution.Solarwinds.StatusLog.txt and a web shell plesk_sys_driver.php. This abuse of legitimate-sounding names is a form of T1036.005 - Masquerading: Match Legitimate Name or Location. It's important to note there is no evidence that SolarWinds systems were compromised; the name was used purely for evasion.T1070.004 - Indicator Removal: File Deletion.T1114 - Email Collection), and dumped entire database contents (T1005 - Data from Local System).T1041 - Exfiltration Over C2 Channel.The impact of the CL-UNK-1211 campaign on targeted government entities is severe. Successful execution could lead to the large-scale theft of sensitive government data, including personally identifiable information (PII), state secrets, and strategic plans. The exfiltration of entire databases poses a critical risk of data breach, with long-term consequences for national security and public trust. Furthermore, by hijacking mailboxes to gain control of associated social media accounts, the attackers could engage in disinformation campaigns, impersonate government officials, or manipulate public opinion. The use of AI to generate novel, polymorphic payloads makes detection more challenging for traditional signature-based security tools, increasing the likelihood of a successful, prolonged compromise.
No specific Indicators of Compromise (IOCs) such as IP addresses, domains, or file hashes were provided in the source report.
Security teams may want to hunt for the following patterns to detect related activity:
/etc/php//opt/plesk/php/~/.bashrcsudo for password theft.plesk_sys_driver.phpSolarwinds.StatusLog.txtphp-fpmauto_prepend_fileDetecting this activity requires a defense-in-depth approach focused on behavior and configuration integrity rather than just static signatures.
.bashrc, and all PHP configuration files within /etc/php/ and /opt/plesk/php/. Alert on any unauthorized modifications.php-fpm. Interactive shells or network connections originating from these processes are highly suspicious. Use Endpoint Detection and Response (EDR) to baseline normal behavior. A relevant D3FEND technique is Process Analysis..bash_history), and authentication logs (/var/log/auth.log or equivalent). Look for unusual script executions or modifications to shell startup files. Correlate sudo commands with preceding commands to spot potential aliasing.sudo alias in action.Network Traffic Analysis.Application Configuration Hardening..bashrc. User-level configuration files should not be writable by other non-root accounts. This is a key part of the D3FEND technique Local File Permissions.Protects critical configuration files like .bashrc and PHP configs from unauthorized modification.
Mapped D3FEND Techniques:
Enables detection of suspicious file modifications, process executions, and authentication events.
Mitigates the impact of credential theft by requiring a second factor for authentication.
Mapped D3FEND Techniques:
Hardening PHP and web server configurations to disable dangerous functions and prevent unauthorized changes.
Mapped D3FEND Techniques:
Utilizes EDR and behavioral analysis to detect malicious scripts and web shells, especially AI-generated ones that may evade static signatures.
Restrict outbound traffic from web servers to only known-good destinations to block data exfiltration.
Mapped D3FEND Techniques:
Implement a File Integrity Monitoring (FIM) solution to continuously monitor critical configuration files for unauthorized changes. In the context of the CL-UNK-1211 campaign, this is paramount for detecting the primary persistence and credential theft vectors. Specifically, configure FIM to alert on any modification to user .bashrc files across all home directories, as this was used to create the malicious sudo alias. Additionally, place strict monitoring on all files within /etc/php/ and /opt/plesk/php/, with a specific focus on changes to the auto_prepend_file directive. A baseline of known-good configurations should be established, and any deviation should trigger an immediate high-priority security alert. This allows security teams to detect the attacker's setup activities in near real-time, enabling rapid response before widespread data collection can occur. This technique directly counters the TTPs used for persistence and credential access.
Utilize an Endpoint Detection and Response (EDR) tool to perform continuous process analysis on all Linux servers, especially web servers. For this threat, the goal is to detect anomalous process chains originating from web server daemons like php-fpm or httpd. The CL-UNK-1211 actor spawned interactive shells from the php-fpm process, which is highly abnormal behavior. Configure EDR to alert on web server processes that spawn shell interpreters (sh, bash), network utilities (curl, wget), or any process that attempts to establish outbound network connections. Establishing a baseline of normal process activity for your web applications is critical. Any deviation, such as the execution of reconnaissance commands or scripts from the web server's context, should be treated as a potential compromise. This behavioral detection is crucial for identifying AI-generated malware that may not have a known file signature.
Enforce Multi-Factor Authentication (MFA) across all administrative access points as a critical compensating control against credential theft. Given that CL-UNK-1211 actively harvested passwords via sudo hijacking and PHP login page injection, stolen credentials are a primary risk. Even if an attacker successfully captures a password, MFA will prevent them from using it to log in via SSH, VPN, or web-based management consoles like Plesk. This is particularly important for protecting the social media accounts that the attackers were targeting; ensure that any account tied to a government email address has MFA enabled. While MFA will not prevent the initial password theft on the compromised host, it effectively neutralizes the value of those credentials for lateral movement and external account takeover, significantly containing the incident's impact.
Implement rigorous configuration hardening for all PHP environments to reduce the attack surface exploited by CL-UNK-1211. This involves several key actions. First, use file system permissions to make PHP configuration files (e.g., php.ini) and application directories read-only for the web server user. This directly prevents the modification of directives like auto_prepend_file. Second, review and disable any dangerous or unnecessary PHP functions via the disable_functions directive in php.ini. Functions commonly used in web shells for command execution, such as exec, shell_exec, system, and passthru, should be disabled unless absolutely required by the application. Finally, ensure that web applications are not running with elevated privileges. By hardening the application environment, you make it significantly more difficult for an attacker to establish persistence or execute arbitrary commands, even if they manage to upload a malicious file.
Observed activity begins for the CL-UNK-1211 espionage campaign.
The period of observed activity for the CL-UNK-1211 campaign concludes.
Unit 42 publishes its research report on the CL-UNK-1211 campaign.

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.
CyberNetSec.io uses automation to assist source monitoring, deduplication, observable extraction, and structured intelligence generation. Published analysis follows human-defined editorial standards and adds defensive context including MITRE ATT&CK, D3FEND, STIX, and Sigma where applicable. Read our editorial policy.
Help others stay informed about cybersecurity threats
Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.
Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.
Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.
Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.
Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.