The PolySwarm Blog

Analyze suspicious files and URLs, at scale, millions of times per day. Get real-time threat intel from a crowdsourced network of security experts and antivirus companies competing to protect you.

AI-Assisted Cyberespionage Campaign Targets Government Systems

Oct 23, 2026, 2:35:12 PM / by The Hivemind

AIASSISTED2026Verticals Targeted: Government
Related Families: SysGoRAT

Executive Summary

A cyber intrusion campaign tracked as CL-UNK-1211 was observed targeting government entities and state-affiliated infrastructure between October 2025 and April 2026, with attackers using AI-assisted scripts, custom malware, and open-source tools to compromise Linux environments. The activity involved PHP web shell deployment, credential harvesting, privilege escalation, lateral movement, and attempts to exfiltrate government databases and email accounts, supported by a custom cross-platform RAT named SysGoRAT. The campaign demonstrates how AI-assisted payload development can complement established intrusion techniques while complicating detection through persistent backdoors, legitimate administrative utilities, and extensive anti-forensics activity.

Key Takeaways

  • Multiple malicious scripts contained conversational annotations and reasoning comments consistent with large language model generated code, suggesting attackers used AI to streamline payload creation and operational tasks.
  • SysGoRAT, a Go-based RAT, supports command execution, interactive shell access, network proxying, file retrieval, and multiple persistence options across Linux and Windows.
  • Attackers searched government mailboxes for social media account correspondence and attempted to exfiltrate sensitive database records through compressed archives and external file-hosting services.
  • The campaign combined PHP configuration hijacking, SSH backdoors, SUID-enabled binaries, log deletion, timestomping, and unsuccessful attempts to terminate endpoint protection processes.

Background

Palo Alto Networks Unit 42 identified a campaign targeting government entities and state-affiliated infrastructure, tracking the activity as CL-UNK-1211. The investigation documented operations between October 2025 and April 2026, with attackers demonstrating substantial familiarity with Linux server environments, database administration, and post-exploitation techniques. The cluster remains unattributed, with Unit 42 unable to determine whether its operators were affiliated with a nation-state or financially motivated cybercrime activity.

A distinguishing feature of the campaign was the apparent integration of generative AI into payload development. Several PHP and shell scripts contained unusually descriptive comments, conversational instructions, and step-by-step explanations of their functionality. These artifacts were consistent with code produced by LLMs, although Unit 42 could not establish whether attackers manually incorporated AI-generated scripts or employed autonomous agents to execute portions of the intrusion. Despite the apparent use of AI, the campaign relied primarily on established intrusion methods rather than novel AI-specific exploitation techniques. Attackers combined publicly available web shells, credential harvesting utilities, privilege escalation exploits, and network tunneling tools with custom malware designed to maintain persistent access.

This combination supported operations across web servers, databases, internal network segments, and government email infrastructure. The attackers also attempted to conceal their presence through extensive cleanup procedures, including deleting system logs, altering file timestamps, and planting misleading indicators intended to resemble authorized red-team activity.

Initial Access and Persistence

The attackers used multiple PHP web shells to execute commands and maintain access on compromised Linux servers. These included custom scripts and publicly available web shells obtained from GitHub. Although Unit 42 documented extensive post-compromise activity, the investigation did not establish a single initial exploitation method across the campaign.

To establish persistence, the attackers modified the auto_prepend_file directive in PHP configuration files under /etc/php/ and /opt/plesk/php/. This modification caused malicious PHP code to execute automatically before legitimate scripts, providing a persistent execution mechanism across affected applications. In one instance, a malicious web shell was installed as /usr/lib/php/plesk_sys_driver.php, using a filename designed to resemble legitimate Plesk functionality. The attackers modified PHP configurations to load the malicious script, allowing it to execute whenever the affected PHP environment processed requests. The attackers also established SSH-based persistence by adding unauthorized public keys to compromised users' authorized_keys files. Additional backdoors included modified system binaries and SUID-enabled executables capable of maintaining elevated access.

Credential Theft and Privilege Escalation

CL-UNK-1211 employed multiple credential harvesting techniques to expand access within compromised environments. One method involved modifying users' .bashrc files to hijack the sudo command. The malicious alias displayed a password prompt, captured the supplied credentials, and subsequently passed the password to the legitimate command. This allowed normal administrative activity to continue while exposing credentials to the attackers. The stolen passwords were written to a file named Solarwinds.StatusLog.txt, which was intended to resemble legitimate SolarWinds activity. Unit 42 found no evidence that SolarWinds itself was compromised.

The attackers also inserted credential logging code into PHP authentication pages and searched configuration files, command histories, and WordPress installations for exposed database, SMTP, and administrative credentials. For privilege escalation, the attackers deployed LinPEAS to identify potential vulnerabilities and attempted to exploit CVE-2021-4034 using PwnKit. Unit 42 also observed privileged execution through renamed interpreters and SUID-enabled binaries, although the report does not establish that the PwnKit attempt itself succeeded.

Additional techniques included a renamed Python interpreter, a custom SUID root shell, and a modified Bash binary configured to execute commands with elevated privileges. These methods provided multiple opportunities to maintain privileged access without relying exclusively on a single exploit or malware component.

SysGoRAT Malware

A significant component of the campaign was SysGoRAT, a custom RAT developed in Go and designed to operate across Linux and Windows systems. Unit 42 first observed the malware under the filename sys-control-client. Additional filenames included pip2.7, ea_install, and semanage, allowing the executable to resemble legitimate system components.

SysGoRAT communicated with its C2 infrastructure through WebSocket connections, using 104.194.158[.]65:443 as its hardcoded default endpoint. Operators could override this address through a command-line parameter at execution. The malware supported seven primary command types, providing arbitrary command execution, directory enumeration, interactive shell access, and TCP proxy functionality. Additional control operations enabled screenshot capture, file retrieval, and persistence installation.

SysGoRAT supports six persistence methods across Linux and Windows, including systemd services, cron jobs, registry Run keys, and scheduled tasks. On Linux systems, its systemd method installs a service named sys-update.service, while its cron method creates an execution interval of five minutes. Windows persistence options include registry modifications and scheduled tasks using filenames and identifiers associated with OneDrive updates.

Two additional persistence modes automatically select an installation method based on the operating system, with one also accounting for available user permissions. These capabilities were identified through malware analysis and do not establish that every persistence option was activated during observed intrusions. The malware's cross-platform design and integrated proxy capabilities expanded its potential utility beyond individual compromised hosts, allowing operators to execute commands and relay traffic through affected environments.

Reconnaissance and Lateral Movement

Following compromise, the attackers conducted extensive reconnaissance to identify additional systems, administrative credentials, and sensitive databases. PHP-based scanning scripts enumerated SQL servers, network shares, domain artifacts, and accessible internal systems. The attackers also deployed a custom Go-based scanner targeting CVE-2025-55182, commonly known as React2Shell. The source report documents deployment of the scanner but does not establish that exploitation of this vulnerability provided initial access.

For lateral movement, the attackers used SSH connections with harvested credentials and leveraged Microsoft SQL Server's xp_cmdshell functionality to execute operating system commands remotely. Unit 42 observed a double-hop execution chain in which commands were routed through an initial SQL server to reach another server on a separate network segment. Additional tunneling capabilities were provided by revsocks, pysoxy, and GSocket. These legitimate or publicly available utilities were used to establish proxy connections and outbound communication paths capable of bypassing internal network restrictions. The attackers also deployed reverse shells using Bash, Python, and Netcat, frequently relying on existing system utilities to minimize additional executable artifacts. Unit 42 documented reverse shell activity involving at least seven distinct C2 servers.

Government Mailbox Targeting and Data Exfiltration

The campaign included attempts to access government email accounts and extract sensitive database contents. Attackers enumerated mail directories on government mail servers and developed a PHP script named search_social.php to identify correspondence associated with Facebook, Instagram, Twitter, TikTok, and LinkedIn accounts. The script extracted email header information, allowing operators to identify messages potentially associated with social media account access or recovery.

The attackers subsequently attempted to create a script named zip_mails.sh for compressing entire mailboxes into ZIP archives. Unit 42 identified syntax errors in one documented version of the script that would have prevented successful execution. Database targeting followed a similar progression. The attackers initially extracted limited record samples before proceeding to full database dumps into CSV files. These exports were compressed into archives and prepared for transfer through network utilities or legitimate file-hosting platforms, including transfer.sh, bashupload.com, and filebin.net. The attackers also searched for WordPress configuration files containing database credentials and attempted to upload the extracted information through the catbox.moe API.

Unit 42 observed attackers extracting database records into local files and preparing compressed archives for exfiltration. However, the report does not establish successful external transfer for every attempted operation. The activity indicates an interest in both sensitive government information and access to associated online accounts, although the full extent of any successfully exfiltrated data remains unconfirmed.

Defense Evasion and Anti-Forensics

CL-UNK-1211 employed an extensive anti-forensics strategy intended to reduce visibility into compromised systems and complicate incident reconstruction. Attackers attempted to terminate Cortex XDR processes using Linux process management commands, including pgrep and pkill. Unit 42 confirmed that Cortex XDR detected and prevented these attempts, with endpoint protections remaining operational.

Other techniques included deleting scripts immediately after execution, modifying file timestamps with touch -t, clearing command histories, and removing authentication, email, web server, and operating system logs. The attackers also planted misleading references to red-team operations, including the marker RedTeamOps2025 and the password pentest123 for an account they created. These artifacts were intended to suggest authorized security testing and potentially misdirect incident investigations.

Following exfiltration attempts, automated cleanup scripts targeted temporary files and residual evidence. Additional commands checked whether attacker-associated IP addresses remained visible in system logs.

Although Unit 42 confirmed that attempts to disable Cortex XDR were prevented, this finding does not establish that every other defense evasion technique was unsuccessful. The observed cleanup activity demonstrates a deliberate effort to conceal both the intrusion and its operational objectives, increasing the importance of centralized telemetry and detection mechanisms that do not depend solely on artifacts retained on compromised hosts.

PolySwarm Analyst Commentary

CL-UNK-1211 illustrates how AI-assisted development can increase the operational flexibility of attackers without fundamentally changing the techniques used to compromise enterprise environments. The campaign combined custom malware, publicly available utilities, and scripts adapted to specific operational requirements, creating multiple opportunities for malicious activity to blend with legitimate administration. The presence of AI-generated comments is particularly notable because it suggests attackers may be reducing the development effort required to produce customized payloads. However, the observed artifacts do not establish autonomous execution or demonstrate that AI was necessary for the campaign's success.

The diversity of tools also presents a challenge for detection strategies dependent on individual malware signatures. Custom Go executables, modified PHP scripts, credential harvesting components, and legitimate utilities used maliciously may produce inconsistent results across security engines, particularly when files are newly generated or have limited detection history. PolySwarm's multi-engine approach allows security teams to compare independent detection results, identify differences in malware classifications, and investigate suspicious artifacts that may receive inconsistent verdicts across security engines. This approach provides additional context when assessing unfamiliar or potentially malicious files. The campaign reinforces the importance of combining file-based intelligence with behavioral monitoring, particularly when attackers employ rapidly modified scripts, legitimate system tools, and multiple persistence mechanisms.

IOCs

PolySwarm has multiple samples associated with this activity.

 

d94f75a70b5cabaf786ac57177ed841732e62bdcc9a29e06e5b41d9be567bcfa - GsNetcat: Malicious, detected by our engines

44e83f84a5d5219e2f7c3cf1e4f02489cae81361227f46946abe4b8d8245b879 - CVE-2021-4034 Exploit: Malicious, detected by our engines

1505a3a727f8899b2ad343519f7bf9c438b8b802f8d6b854f5db3b52f857c76a - Trojan.PHP.Agent: Malicious, detected by our engines

 

Don’t have a PolySwarm account? Go here to sign up for a free Community plan or subscribe.

Contact us at hivemind@polyswarm.io | Check out our blog | Subscribe to our reports.

 

Topics: Threat Bulletin, SysGoRAT, AI-assisted cyberattacks, PHP web shells, CL-UNK-1211, government cyberespionage

The Hivemind

Written by The Hivemind

Subscribe to Email Updates

Lists by Topic

see all

Posts by Topic

See all

Recent Posts