Blog
Attackers read Linux servers' credentials, then deleted the logs
The story: AI-Powered Espionage Campaign Targets Government Linux Infrastructure · Palo Alto Networks Unit 42 ·
Topics: Linux
On 15 October 2026 Palo Alto Networks' Unit 42 described attackers who read password hashes and configuration files on government Linux servers, then deleted the logs. What they read, why the servers' own records can't answer that afterwards, and what to set up now.
On 15 October 2026 Palo Alto Networks' Unit 42 described a campaign against government Linux servers, seen between October 2025 and April 2026. The attackers read password hashes, configuration files and mail folders, dumped databases, and then deleted the servers' logs. For anyone who runs Linux servers, it is a clear case of the question every intrusion leaves behind: which files were read, and what is left to tell you.
What happened
Unit 42 tracks the activity as CL-UNK-1211, a name it gives a cluster it has not yet tied to a state or to criminals. It names no victims beyond "government entities and state-affiliated infrastructure". In the order the report describes it:
- Getting in. Web shells on Linux web servers. The report doesn't say how the first one was planted.
- Staying. A changed PHP setting (
auto_prepend_file) under/etc/php/and/opt/plesk/php/, an attacker's key inauthorized_keys, and asudoalias in.bashrcthat wrote typed passwords to a file. - Reading. The attackers read
/etc/shadow"to steal password hashes", searched configuration and command-history files for email, SMTP and database passwords, and usedfindto locatewp-config.phpfiles holding database credentials. - Taking. They listed users' mail folders under
/var/qmail/mailnames/and counted the messages in them to pick targets, dumped databases into compressed archives and tried to send them out, partly through public file-hosting sites. - Hiding. A copy of Python renamed
.libpython-helper, a copy of bash named.tourchand set to run as root,touch -tto back-date files and, finally, a cleanup that deleted logs of authentication, command history, email, the operating system, the web server and active PHP sessions.
Unit 42 also found "AI-made conversational annotations" in several scripts, which it says suggests they were written with a large language model or run by an AI agent. What isn't known: who the attackers are, how many organizations were hit, and how the first web shell arrived.
What it means
Much of what the report shows comes from the endpoint security product on those servers: many of its figures are captioned "as seen in Cortex XDR". The servers' own records were what the attackers went after. Once the authentication logs, shell history and web server logs are gone, and file times have been changed with touch -t, the server itself can say little about what was opened, and when.
That matters most for the files that were only read. A database dump leaves an archive behind; a read of /etc/shadow or of a wp-config.php leaves nothing on disk. Yet those reads set the size of the clean-up: every password hash that was read has to be treated as cracked, and every password found in a configuration file has to be changed, along with anything that reuses it. Without a record, the only safe answer is that everything on the server was read.
Linux can record reads through its audit system, but it records only what its rules name, and by default it writes to /var/log/audit/audit.log, a file that an attacker with root can delete like any other log.
What you can do
These steps use the Linux audit system (auditd), as its manual pages describe it; package names differ between distributions.
- Watch reads of the files that matter. Put a rule in a file ending in
.rulesin/etc/audit/rules.d/, written in the syscall form that the auditctl manual recommends over the older-wwatches:
-a always,exit -F arch=b64 -F path=/etc/shadow -F perm=r -F key=shadow-read
Then merge and load the rules with augenrules --load. Add one for each wp-config.php or other file that holds a password. -F dir= watches a whole folder and everything under it; on a web root or a mail folder that is a flood of events, so start with single files. Logins and sudo read /etc/shadow too: what stands out is a program that isn't one of those.
- Search what it recorded.
ausearch -k shadow-read -i -ts today
-i turns numbers into names, -ts also takes yesterday, this-week or a date, and -x keeps only the reads made by one executable.
- Keep the log long enough. In
/etc/audit/auditd.conf,max_log_filesets the size of each log in MiB andnum_logshow many are kept whenmax_log_file_actionisrotate;keep_logsnever overwrites them, so watchspace_left. The activity in this report ran from October 2025 to April 2026. - Send a copy off the server. The
audisp-remoteplugin sends audit events to a collecting server: setactive = yesin/etc/audit/plugins.d/au-remote.confand that server's address asremote_serverin/etc/audit/audisp-remote.conf. A copy the attacker can't reach is the one that outlasts a cleanup. - Lock the rules.
auditctl -e 2locks the audit configuration so that it can only be changed by rebooting. - Look for what this campaign left behind. On PHP, Plesk and WordPress servers, check
auto_prepend_filein the PHP settings, unknown keys inauthorized_keys, aliases in.bashrc, and programs set to run as root that you don't recognize.
The audit system has limits of its own: it records only what its rules name, each server keeps its own log, and searching many servers means gathering those logs in one place first.
Where ProofStream fits
ProofStream's collector reads Linux's own file-event feed, fanotify, and records which program opened which folder, when, and on which server; the console keeps that history searchable weeks or months later. In a case like this it would show which programs opened /etc, a web root or the mail folders, and when, including one running under an odd name; file names only in folders you choose, on the Business Plus plan. It wouldn't have stopped the attack, it doesn't see what was in the files or what was sent over the network, and it sits next to endpoint security, not instead of it. How it works.
Sources
Spotted a mistake? Tell us and we'll correct it.
Comments
No comments yet.