Blog

A fake cPGuard update read root's files on about 2,950 servers

The story: Security Incident Disclosure: servermanage.opsshield.com · OPSSHIELD ·

Topics: Breaches and leaks Linux

On 2 November 2026 an attacker pushed a fake cPGuard update that ran as root on about 2,950 Linux web servers and copied password hashes, SSH keys and database passwords, OpsShield says. What happened, what owners can and can't check, and how to keep a record of what reads those files.

An update package reaching three stacks of servers, with the date 2 November 2026 and the window 02:08 to 03:20 UTC.

On 2 November 2026, for 72 minutes, cPGuard agents on Linux web servers installed an update their maker hadn't written. It ran as root and copied password hashes, root's SSH keys and, where present, the MySQL root password to the attacker, according to OpsShield's disclosure of 3 November. About 2,950 servers ran it.

For their owners the first job is to change every secret those servers held. The harder one is knowing what was read, on those servers and on the ones their keys open.

What happened

cPGuard is OpsShield's security product for web servers: a malware scanner, a web application firewall and a list of abusive IP addresses, for servers run with cPanel/WHM, DirectAdmin or Plesk, or on their own. Its agents update themselves, as root.

OpsShield's disclosure gives this timeline, in UTC:

Diagram: the fake cPGuard update, running as root, collected /etc/shadow and /etc/passwd, root's SSH keys and known hosts, /root/.my.cnf, root's shell history and, on a few servers, /root/.s3cfg, and sent them to a server the attacker controlled.
What the fake update collected, from OpsShield's disclosure and notice of 3 November 2026. Not every file was necessarily collected from every server.

The fake update collected /etc/shadow and /etc/passwd; root's SSH private keys, authorized_keys and known_hosts; /root/.my.cnf, which can hold the MySQL root password; root's shell history; and, on a few servers, the cloud storage keys in /root/.s3cfg. OpsShield's first notice says the script uploaded what it gathered to OpsShield's own licensing server, under a compromised account, and that not every file was necessarily collected from every server. It also left a hidden root shell at /var/tmp/.cpg91511_sh, files in /var/tmp/.i93677/ and a scheduled task at /etc/cron.d/i93677.

The attacker also copied three of OpsShield's cloud servers and about 7,900 billing portal accounts, with names, companies, postal and email addresses and hashed passwords. A separate, older backdoor turned up on one of OpsShield's internal servers. An OpsShield spokesperson told BleepingComputer that 2,946 servers were affected.

The disclosure is blunt: "If your server had cPGuard installed and online between 02:08 and 03:20 UTC on 2 November, assume its root-level secrets are known to the attacker." Customers whom OpsShield has told that the attacker logged in to their server by hand should rebuild it from a clean backup taken before 1 November.

Not known yet: the exact request that let the attacker in, which OpsShield's logs don't record; when the older backdoor arrived; and whether anything beyond the listed files was taken.

What it means

The list of files is short, and each one opens something else. Password hashes can be attacked offline. Root's SSH keys reach every server that trusts them, which is why OpsShield asks owners to treat those servers as exposed too. .my.cnf opens the databases, .s3cfg the storage buckets, and shell history holds whatever was once typed at the prompt, tokens included. The question of what was read doesn't stop at the server that ran the update.

On that server, the answers are thin. The update log shows whether an affected version was installed, which, the first notice says, "does not by itself confirm script execution or data transfer." The clean update removes the script's files, and "the absence of these files after cleanup does not establish whether the script previously ran." OpsShield's lookup tool helps, but by its own account, "No matching record does not establish that a server was unaffected."

The deeper gap is older than this incident. Unless someone set up auditing of reads beforehand, a typical Linux server keeps no record of which program opened /etc/shadow or /root/.ssh: its logs record logins and services, not file reads. And a program running as root can erase the local logs there are, as the attackers did in the case we wrote about in October.

The backdoor widens the question. The notices list a hidden root shell, which the clean update removes, and for servers where the attacker did log in by hand OpsShield advises a rebuild. The disclosure doesn't say what was read in those sessions.

What you can do

OpsShield's notices set out what to do today. First, check whether an affected update was installed (5.88.12 to 5.88.19, the first notice says):

grep 'Successfully updated' /opt/cpguard/logs/install_log

Then enter each server's IP address or hostname in the disclosure's lookup tool, "Search your servers in our incident records", and remember that no record isn't a clean bill. Update and check the version:

cpgcli update --start
cpgcli --version

The first notice asks for 5.88.25 or later; the disclosure names 5.88.26 as the clean release. Check that /etc/cron.d/i93677, /var/tmp/.i93677/ and /var/tmp/.cpg91511_sh are gone. Then, on any server that was online in the window:

For next time, record reads of the files an attacker wants. With the Linux audit system, put a file ending in .rules in /etc/audit/rules.d/, for example secret-reads.rules:

-a always,exit -F arch=b64 -F path=/etc/shadow -F perm=r -k secret-reads
-a always,exit -F arch=b64 -F dir=/root/.ssh/ -F perm=r -k secret-reads

Load it with augenrules --load and search it with ausearch -k secret-reads -i. The auditctl manual explains the fields: dir covers a directory's whole subtree, and every such rule costs some performance, so keep them few. Expect entries from the programs that check passwords at each login; the one to look for is a program with no reason to be there. Because root can delete local logs, send them elsewhere as they are written: the audit system's audisp-remote plugin forwards events to a central server.

Where ProofStream fits

ProofStream's Linux collector reads the kernel's fanotify feed and records which program opened which folder, when and on which server, and keeps that history searchable for months. On a server running it, the record for 2 November would show whether a program other than the usual ones opened /etc, /root and /root/.ssh between 02:08 and 03:20 UTC, and in the days after; with those folders chosen on the Business Plus plan, it would name the files too. It couldn't have stopped the update, and it doesn't see what was in the files or where they were sent. How it works.

Sources

Spotted a mistake? Tell us and we'll correct it.