Rank Math PRO Plugin Compromised—Backdoor Attack Hits Premium Users

A serious security breach has hit Rank Math PRO, the paid version of the popular WordPress SEO plugin. Between 20:02 UTC on October 15 and 07:12 UTC on October 16, copies downloaded from rankmath.com or delivered as updates were found to contain malware that installs a self-restoring backdoor. Any site that installed and activated one of those compromised versions during that window should assume it is compromised.

What Went Wrong & Who Is Vulnerable

The issue affects Rank Math PRO only, which is distributed from Rank Math’s own site—not the free plugin from WordPress.org. The free version, which boasts over four million active installations and was last updated on October 6, is not affected. Version 3.0.124 is the clean release, while versions delivered during the vulnerable window of 3.0.123 or updates in that timeframe are compromised. Even if a site has since updated to 3.0.124, it can still be at risk if it installed and activated the bad version during that period. Installations that were downloaded but never activated are less likely to be compromised.

What the Malware Does & How It Hides

The malware isn’t just a simple virus—it installs a backdoor that automatically restores itself whenever someone visits the site. It can modify various parts of the server: creating hidden admin accounts, dropping rogue PHP backdoor files in themes, plugins, must-use plugin directories, altering .htaccess so that cache files run as PHP, and adding scheduled tasks and SSH keys. Credentials of all types—database, API, hosting, or WordPress—might have been exposed. Wordfence has assigned the vulnerability a critical severity score of 9.8 out of 10.

Steps for Recovery

If you have a clean backup from before 20:02 UTC on October 15, restoring it is the safest route. After restoring, every password and credential—including database, API keys, hosting, and WordPress login details—should be changed. Run a full security scan and then install version 3.0.124 from Rank Math’s official site.

Without a clean backup, follow a specific cleanup order:
1. Completely delete the “rank-math-pro” plugin folder (deactivating it alone isn’t enough).
2. Remove certain suspect entries from the wp_options table (specifically entries named _uf6qdn2hmm, t8krdk990phb, _np5pvf754c).
3. Block outbound connections to the domain rank1cdn[.]com if possible through your firewall or host.
Then check for residual infection: scan plugin and theme folders for rogue PHP files, inspect for unusual code patterns (like base64-encoded XOR loops), remove backdoor accounts, fix altered .htaccess files, look for malware in cache files, cron jobs, SSH authorized keys, etc. Finally, verify WordPress core and plugin files using checksum tools when available.

What Remains Unclear

The origin of the breach—how contaminated files made it into the update channel—is still unknown. Rank Math hasn’t disclosed how many users were affected, whether automatic updates distributed the backdoored version, or provided hashes of the clean vs. compromised files. The domain rank1cdn[.]com (the suggested block target) was registered on October 14, shortly before the malicious update window opened.

Broader Context: A Pattern of Supply-Chain Attacks

This isn’t Rank Math’s first time dealing with plugin-based supply-chain malware in WordPress. Earlier this year, premium plugins such as Nextend’s Smart Slider 3 Pro and others saw backdoored updates. Some updates were clean at first, later tampered with without version changes—mirroring what Rank Math customers are facing now. Though none of those past incidents have been clearly linked to this one, it underscores a growing trend where attackers target vendor-run update mechanisms rather than public repositories.

What this means is that even trusted tools and premium plugins are becoming vector targets. And while automatic updates promise convenience, they can also circulate disaster when source validation and integrity checks are missing. Users should (and must) keep backups, monitor plugin integrity, and limit privileges wherever possible. The true scope of what the attackers accessed may never be known—but vigilance now can save sites from long-term damage.