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.
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:
- 1 November, 15:38: the attacker starts probing OpsShield's billing portal.
- 16:34: the attacker registers a customer account under a false identity and orders a free cPGuard trial.
- 22:50: the attacker sends crafted requests to the portal's callback pages.
- 22:58: the attacker can run commands on OpsShield's billing and licensing server, and starts collecting data.
- 2 November, 02:04 to 02:09: the attacker uploads a fake cPGuard update with a stolen access key.
- 02:08 to 03:20: cPGuard agents install it. It runs as root and copies sensitive files out.
- Later on 2 November: the stolen key is revoked and a clean update, 5.88.26, is published.
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:
- Change root's password and every local account's, from a trusted recovery environment, and wherever they were reused.
- Make new root SSH keys, remove the old public keys from every server that trusted them, and look for entries you don't recognize in
authorized_keys. - Change the MySQL root password and any database password in
/root/.my.cnf. - Rotate every password, API key or token in root's shell history, and the keys in
/root/.s3cfg. - Reset the billing portal password and turn on two-factor sign-in.
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
- Security Incident Disclosure: servermanage.opsshield.com
- OPSSHIELD: cPGuard update channel compromise (notice, 3 November 2026)
- BleepingComputer: Hackers hijack cPGuard autoupdate to deploy backdoor, steal data
- The Hacker News: cPGuard update channel hijacked to backdoor Linux servers
- man7.org: auditctl(8), Linux manual page
- ManKier: ausearch(8)
- ManKier: augenrules(8)
- ManKier: audisp-remote(8)
Spotted a mistake? Tell us and we'll correct it.
Comments
No comments yet.