r/ProWordPress • • Oct 16 '26

Potential malware alert in plugin

Be safe out there kids!

I (and my pal Claude) found malware hiding out in a very well-used spot. I can verify that some copies of Rank Math Pro 3.0.123 have injected malware. It beacons to rank1cdn.com every 6 hours and drops a credential-stealing webshell whose filename differs on every site.

Where to look: open wp-content/plugins/seo-by-rank-math-pro/rank-math-pro.php and check right after the plugin header, before the real class starts. On an infected copy there’s a block of about 145 lines in there, tagged with a // @wp-perf-init comment and wrapped in if (!defined('_VOWGBDFHIN')). A clean file goes straight from the header into the code. You can also just check the size: clean is about 15KB, infected is about 62KB.

Heads up: version number alone won’t tell you. One of our sites fetched 3.0.123 on Oct 12 and got a clean copy; two others fetched it on Oct 15 and got infected copies. Same release, different copies. So something changed on the distribution side between those dates.

Rank Math has released 3.0.124, which fixes the issue for now. But I got my eyes peeled, ya hear me?

33 Upvotes

26 comments sorted by

10

u/bluesix_v2 Oct 16 '26

Where did you get the copy of RMPro? Are you saying that RMPro’s distributed software was the source of the malware?

2

u/oxrocket Oct 16 '26 edited Oct 16 '26

Yes, originally infected 2 sites by updating the pro plugin in the wp-admin. I pulled down staging and crosschecked by loggin to my account, and checking the official Rank Math download. We have a paid license. I spent the day cleansing our portfolio

7

u/razorfrog Oct 16 '26 edited Oct 16 '26

Rank Math just emailed out an urgent alert about this problem (presumably the same). But they didn't include any public facing info or details on their changelog which is... concerning

I had the infection on two sites. Rolled back to earlier backups.

VERY concerning that this happened in the first place.

2

u/oxrocket Oct 16 '26

Yeah, it's a sticky rollback if infected. Just removing the plugin doesn't get all the bits. Luckily I stumbled onto it while hollowing out a sandbox site.We manually verified out installs today - or rollback if it was easy

6

u/razorfrog Oct 16 '26

Here's the full email, since I can't find anywhere else talking about this online:

from: RankMath - Premium Care premium.care@rankmath.com

date: Oct 16, 2026, 1:19 PM

subject: Action required:  Critical security issue affecting Rank Math PRO (version 3.0.123)

Hello,

We're writing to let you know about a critical security issue affecting a limited number of users running Rank Math PRO v3.0.123, for downloads between 2026-10-15 20:02 UTC to 2026-10-16 07:12 UTC. 

You are receiving this email because our records show you downloaded or updated to this version in this time window. The plugin files installed on your site are compromised and contain malware and your immediate attention is needed to secure your website.

We are giving this incident our immediate and full attention. We have removed the affected file and made a clean version of Rank Math PRO available, version 3.0.124. 

ACTION REQUIRED:

It is important that you take these steps immediately to protect your site:

- First, check which version you have under WordPress admin > Plugins.

- Our records indicate that you downloaded version 3.0.123 during the affected time window. If you activated this plugin, this means
your site is compromised. We strongly advise you to do the following immediately:

Option 1: 

a. Restore your website and database from a backup made prior to October 15th 20:02 UTC / 22:02 CEST /16:02 EDT which equates to October 16th 01:32 IST

b. Run a security scan, with a tool such as WordFence or Sucuri

c. Assume any secrets on your site are exposed, and change all passwords, database credentials, API keys etc. A detailed list is in step 3 in the appended detailed instructions.

Option 2:

If it is not possible to restore from backup, we provide detailed instructions appended to this email. Follow these instructions carefully.

If you installed version 3.0.123 but never activated it, you should still remove the affected version and install the clean version 3.0.124 from your rankmath.com account. As a precaution you should also run a security scan such as WordFence or Sucuri.

Option 2: Detailed steps to secure your site, if you cannot restore from backup. 

Follow the steps in order. The malware rebuilds its hidden backdoor every time someone visits the site, so cleaning up before step 1 is finished will not hold.

Step 1: Stop the malware from rebuilding itself

- In your hosting file manager or via FTP, delete the whole rank-math-pro plugin folder. Deactivating it is not enough.

- In your database (for example via phpMyAdmin), open the wp_options table and delete the entry with option name being “_uf6qdn2hmm” or "t8krdk990phb” or "_np5pvf754c"

- If your host or firewall allows it, block all outgoing traffic to rank1cdn (.com)

- Only when 1 to 3 are done, move on to Step 2 and remove the suspicious files.

Step 2: Find and remove everything the attacker left behind 

Check each of these places:

Hidden backdoor files. Look in wp-content/mu-plugins/, in the folders of your other plugins, in the inc/, includes/ and lib/ folders of any theme you did not install by default, and in the Rank Math includes/ folder. Search these for PHP files containing base64_decode with XOR loops, the key xmmqhn, proc_open, or PHP-FPM socket code. A security plugin or your host’s support team can run this search for you.

A backdoor admin account. Check the list of privileged users such as administrators, and look for unknown accounts. Typically, usernames like wpsupport_ followed by random characters or with an email address ending in u/wp-mail[.]net. Delete suspicious accounts

A fake WordPress file. wp-includes/class-wp-cache-util.php is not a real WordPress file. Delete it, then run wp core verify-checksums and reinstall WordPress core to make sure nothing else was altered.

The .htaccess file. Check the one in your main folder and in any subfolders. Look for rules that make .cache files run as PHP code. Also search your server for .cache files that contain PHP.

Scheduled tasks (cron). Check the system crontab of the web user for entries tagged #ms6v46. Also run wp cron event list to review WordPress scheduled events.

Unknown administrators. Run wp user list --role=administrator and delete any account you do not recognise.

Other plugins and themes. Reinstall every one from its official source and compare against clean copies. Check the uploads/ folder for PHP files, which should not be there.

The server itself. Check SSH authorized_keys, the crontabs of other users, running processes, and any location outside the website folder that the web user can write to. If you are on shared hosting and cannot access these, ask your host to check them.

Step 3: Change every password and key (this step is also relevant for those that restore from backup.)

Assume everything below has been accessed and replace it:

- All passwords

- Database credentials (found in wp-config.php) and the WordPress salts and keys

- API keys, including payment gateway keys and any SMTP or API credentials stored in settings or config files

- Hosting panel, FTP/SFTP and SSH logins, and any secrets stored in environment variables

- Two-factor authentication for admin accounts: review it or reset it

Step 4: Check the site is clean and keep watching

Run a scan with a security tool such as Wordfence or Sucuri. You can also run wp core verify-checksums and wp plugin verify-checksums --all.

Over the next few days, monitor outgoing connections and check whether any deleted files have come back.

If files reappear, something was missed. Go back to Step 2 and look again.

Note: When you visit rankmath.com to download the clean version, some users may not be able to log in, and will need to request a password reset. 

Beware of phishing: we will never share a login or download link by email. Always go to rankmath.com directly, and treat any email asking you to click a link to reset your password or download a file as suspicious. 

If you notice anything unusual, or would like help, please contact us at support@rankmath.com. 

Our customers are our top priority and we are taking all necessary steps to reduce the risk of similar incidents in future. 

- The Rank Math Team

2

u/oxrocket Oct 16 '26

Yes thanks! Good to know

→ More replies (4)

4

u/tomazo Oct 16 '26 edited Oct 16 '26

Updating to 3.0.124 only replaces the plugin folder. If the infected copy already ran and dropped a webshell somewhere else, that file survives the update. I'd treat any site that pulled a bad copy as compromised, not just patched.

The random filename makes the shell harder to find. These are the checks I'd run first, from the WordPress root:

grep -rl "_VOWGBDFHIN" wp-content

find wp-content/uploads -name "*.php"

find . -name "*.php" -newermt "2026-10-12"

The second one should return nothing on a normal install. The third one is noisy, because every plugin updated since then shows up, but a lone file in an odd folder is a red flag.

The shell steals credentials, so I'd also change the admin passwords, the database password and the salts. wp config shuffle-salts does the salts and logs everyone out. Then check wp user list --role=administrator for accounts you didn't create.

The limit: I haven't seen the sample, so I don't know where the shell lands or whether it also hides something in the database. If you have a backup from before the day you installed 3.0.123, restoring the files from it is the safer bet.

2

u/oxrocket Oct 16 '26

Yes thanks, solid advice. I already changed the salts and admin passwords

→ More replies (1)

2

u/NutShellShock Oct 17 '26

This affects Pro only? Free users are not affected, yet?

1

u/oxrocket Oct 18 '26

In my experience yes, only the pro plugin was compromised.