Skip to content
← All stories

Vulnerabilities · AI Security · Threat Intelligence

AI-Driven Attackers Target Government Linux Systems with Custom Malware

Researchers have uncovered an espionage campaign using AI-generated tools to breach and persist in government Linux infrastructure, stealing credentials and data.

Ross GrantUpdated 3 min read

The short version

Researchers have found that attackers used artificial intelligence to help create malware and scripts that broke into government Linux servers. They stole passwords, copied databases, and tried to stay hidden by changing system files. The attackers used both custom and open-source tools, making it harder to spot their activity.

What happened?

Unit 42 researchers reported an espionage campaign targeting government Linux infrastructure. Attackers used AI-generated tools, custom malware, and web shells to gain access, steal credentials, and exfiltrate data. The campaign focused on maintaining persistent access and evading detection.

Attackers Used AI to Breach Government Linux Systems

A new report from Unit 42 describes a targeted espionage campaign against government Linux infrastructure. The attackers, tracked as the CL-UNK-1211 group, used a mix of custom malware, web shells, and advanced credential theft techniques. Their main targets were government entities and state-linked systems running Linux and database software. The attackers aimed to steal sensitive data and maintain long-term access to compromised systems. Unit 42 (opens in a new tab)

How the Attackers Got In and Stayed Hidden

The group gained initial access by deploying web shells, malicious scripts that let them control servers remotely, on Linux systems. They used both custom-built and open-source web shells, sometimes disguising them as legitimate files. To make sure their code ran every time the server started, they changed PHP configuration files to automatically load their web shells.

To avoid detection, the attackers tried to disable security software and tampered with system logs. This made it harder for defenders to spot the attack or trace what happened after the fact.

Credential Theft and Data Exfiltration

Once inside, the attackers focused on stealing credentials. They inserted malicious code into login scripts and configuration files to capture admin usernames and passwords. In some cases, they replaced the .bashrc file (a script that runs when a user opens a terminal) with a version that stole passwords when users entered them. They also created fake prompts that looked like normal system requests for passwords, tricking users into handing over their credentials.

The attackers searched for email, database, and other passwords stored in plain text on the system. They then dumped entire databases and tried to exfiltrate (steal) the data.

AI’s Role in the Attack

Unit 42 found strong evidence that the attackers used artificial intelligence (AI) to generate parts of their attack tools. Scripts included step-by-step reasoning notes and section headers typical of AI-generated code. This suggests the attackers either copied code directly from an AI tool or used an automated AI agent to create and deploy their malware.

AI helped the attackers quickly create and adapt their tools, making their operations more efficient. The use of AI also left unique traces, such as conversational comments and structured code sections, which researchers used to identify the campaign.

Custom Malware and Advanced Techniques

The attackers deployed a custom remote access Trojan (RAT) called SysGoRAT, written in Go. This malware works on both Windows and Linux, supports multiple ways to stay persistent, and communicates with attacker-controlled servers over encrypted WebSocket connections. The group also used in-memory reverse shells, which run commands and send data back to the attackers without leaving files on disk, making them harder to detect.

What Happens Next

So far, only Unit 42 has reported on this campaign, and it is not yet clear how many organisations or individuals were affected. There is no evidence that SolarWinds systems were compromised, despite the attackers using the SolarWinds name to hide their activity. Defenders should look for signs of unusual PHP configuration changes, unexpected web shells, and suspicious entries in login scripts or configuration files.

Practical Steps for Defenders

Security teams running Linux infrastructure should review PHP and shell configuration files for unauthorised changes. Monitoring for new or modified web shells, especially those disguised with legitimate names, is critical. Regularly checking for unusual admin activity and reviewing logs for signs of tampering can help spot similar attacks. Updating endpoint protection and using strong credential management practices can reduce the risk of compromise.

What We Don’t Know

At this stage, the campaign has only been reported by one source, and details about the scale of the attack or specific victims remain unclear. The story will likely develop as more organisations investigate and report their findings.

Claimed vs confirmed

  • Confirmed

    Attackers used the name 'Solarwinds.StatusLog.txt' to hide credential theft logs.

    Unit 42 confirmed that attackers used this filename to disguise their activity, but found no evidence SolarWinds systems were compromised.

  • Confirmed

    The attack was powered by AI-generated scripts and tools.

    Unit 42 researchers found evidence of AI-generated code and comments in attack scripts.

The impact

Money
There is no information on direct financial losses. However, government breaches can lead to regulatory investigations and, in some regions, significant fines for data loss or operational disruption.
Reputation
A breach of government systems can damage public trust and raise concerns about national security. The use of AI in attacks may also increase scrutiny of security practices.
Customers
For government agencies, the risk is exposure of sensitive data and loss of control over critical systems. Administrators should review system configurations and monitor for signs of compromise.

Why it matters

Government systems hold sensitive data and are critical to national security. The use of AI to automate and improve attacks could make future breaches more common and harder to detect. Anyone responsible for Linux servers, especially in government or critical infrastructure, should be aware of these new techniques.

How does it work?

Attackers used AI-generated scripts and custom malware to breach Linux systems. They deployed web shells for remote access, modified configuration files for persistence, and used fake prompts and code injections to steal credentials. Data was exfiltrated after dumping entire databases.

Key points

  1. Attackers used AI to generate malware and scripts targeting Linux systems.
  2. The campaign focused on government infrastructure, stealing credentials and data.
  3. Web shells and custom malware were used for persistence and remote access.
  4. Credential theft relied on code injection and fake prompts to trick users.
  5. Only one source has reported the campaign so far; details may change.

Sources

  1. Unit 42

    Research

The day's cyber news in 5 minutes.

Cyberend Daily is one short email with the stories that matter, written so anyone can follow.

No spam · 100% free · Unsubscribe anytime