Description

The Wordfence Threat Intelligence Team has identified a malicious WordPress plugin that provides attackers with unauthorized access to existing user accounts while turning compromised websites into platforms for delivering malicious JavaScript. The implant bypasses normal login procedures through a concealed authentication mechanism and selectively targets anonymous website visitors with attacker-controlled scripts. Samples were recovered during incident response investigations conducted in January and September 2026. The plugin disguises its functionality through machine-generated identifiers, randomized filenames, decoy routines, and extensive filler comments. Its authentication backdoor is hidden in a helper file containing approximately 64 KB of content, although only 72 lines contain operational code. A function registered on WordPress's init hook checks URL parameters containing a target account ID and a hardcoded secret. When the supplied secret matches, the plugin invokes wp_set_auth_cookie() for the selected account and redirects the requester to /wp-admin. This bypasses password verification and normal multi-factor authentication checks. Consequently, changing account passwords or enforcing 2FA will not prevent access while the malicious plugin remains active. This behavior represents an implanted backdoor rather than a flaw in WordPress's built-in authentication or 2FA mechanisms. The plugin also establishes a staged JavaScript delivery process. It excludes authenticated visitors and initiates an AJAX bootstrap request for anonymous users, generating an encrypted visitor identifier containing information such as the visitor's IP address, delivery stage, malware build ID, and issuance time. A short-lived cookie supports subsequent requests to a plugin-registered REST endpoint. The endpoint retrieves stage-specific JavaScript from attacker-controlled infrastructure and serves it through the compromised website's domain. The browser then executes the returned code through a dynamically inserted script element. This same-origin delivery approach can make external payload retrieval less apparent to domain-based monitoring, although it does not guarantee that all Content Security Policy protections are bypassed.