Web Media Optimizer
- Type
- Backdoor
- Capabilities
- PersistenceDefense evasionSession hijacking
- Delivery
- Drive by
Web Media Optimizer is a malicious PHP backdoor masquerading as a WordPress performance plugin, with observed samples identifying themselves as version 2.1. It injects remotely controlled JavaScript into public-facing pages and provides a hardcoded authentication mechanism that creates a valid administrator session without requiring the administrator’s password.
The plugin establishes persistence by copying itself into WordPress’s must-use plugin directory, where it loads automatically and cannot be disabled through standard plugin controls. It conceals itself from ordinary plugin listings, suppresses plugin-management actions, and modifies update-check data to reduce visibility. Its script-delivery configuration can be changed remotely, and it retains a backup of the last valid JavaScript location to continue injection when its controller is unavailable. It also clears caches maintained by popular WordPress caching plugins to accelerate propagation of injected scripts.
Web Media Optimizer is associated with the TRUST#GRAFT attack chain. Malicious JavaScript executing within a WordPress site abuses an existing administrator session with plugin-installation permissions, retrieves an upload nonce, and uploads and attempts to activate the backdoor through normal WordPress functionality. This deployment method requires an already authenticated privileged session rather than independently bypassing WordPress authentication. The plugin was also distributed during the September 2026 Brevo client-side supply-chain compromise, in which altered third-party scripts targeted authenticated WordPress administrators. Its injected JavaScript supports further malware delivery, including ClickFix verification lures directed at website visitors.
Techniques & procedures
16 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
4 techniques
Initial Access
“The attacker held a long-lived Cloudflare API key with full account permissions” and later “tried to use [WordPress admins’] active session to upload and activate the plugin. No password was needed.”
The script sends a request to /wp-admin/ ... [with] credentials: 'same-origin' ... If you ... are already logged into that site’s WordPress dashboard ... the response comes back as if you had made that request.
Each domain serves a JavaScript file ... that runs when injected into a page, presumably via a compromised ad slot, ad network, or third-party script on a legitimate site.
“This turned Brevo’s trusted infrastructure into a malware distribution channel. The malicious code was served to visitors and users of websites relying on Brevo’s services.”
Persistence
4 techniques
Persistence
“The attacker held a long-lived Cloudflare API key with full account permissions” and later “tried to use [WordPress admins’] active session to upload and activate the plugin. No password was needed.”
The script sends a request to /wp-admin/ ... [with] credentials: 'same-origin' ... If you ... are already logged into that site’s WordPress dashboard ... the response comes back as if you had made that request.
“The ‘Web Media Optimizer’ plugin hides in mu-plugins and keeps pulling ClickFix scripts from attacker servers after the window closes.”
On activation, it copies itself into wp-content/mu-plugins/ — WordPress’s “must-use” plugin folder, which loads automatically on every page and cannot be turned off from the admin interface. | Inside: A hardcoded master password. One specific string, checked against a single URL parameter, instantly logs in as the site’s administrator — no username, no password, forever.
Privilege Escalation
2 techniques
Privilege Escalation
“The attacker held a long-lived Cloudflare API key with full account permissions” and later “tried to use [WordPress admins’] active session to upload and activate the plugin. No password was needed.”
The script sends a request to /wp-admin/ ... [with] credentials: 'same-origin' ... If you ... are already logged into that site’s WordPress dashboard ... the response comes back as if you had made that request.
Stealth
6 techniques
Stealth
If the C2 approves, the script throws a full-screen overlay over the entire page — a pixel-perfect clone of Cloudflare’s “Just a moment…” challenge screen.
“The attacker held a long-lived Cloudflare API key with full account permissions” and later “tried to use [WordPress admins’] active session to upload and activate the plugin. No password was needed.”
The script sends a request to /wp-admin/ ... [with] credentials: 'same-origin' ... If you ... are already logged into that site’s WordPress dashboard ... the response comes back as if you had made that request.
“The malware also tried to avoid detection by targeting only logged-in WordPress admins and ignoring crawlers, developers and security scanners.”
The script builds a detailed fingerprint ... and ... checks for automation tooling. It looks for navigator.webdriver, leftover artifacts from Selenium, PhantomJS and NightmareJS ... This fingerprint, plus a small proof-of-work ... gets sent to a command-and-control server, which decides ... whether to show the real payload.
“The plugin is disguised as ‘Web Media Optimizer’” and “Hides itself from the WordPress plugin list.”
Credential Access
3 techniques
Credential Access
The Cloudflare Worker... modified the Brevo forms script, Brevo Conversations widget, and the Brevo SDK loader scripts that customers embed on their websites.
The script scans localStorage, sessionStorage, and cookies for anything with a name matching patterns like token, jwt, auth, api, secret, session, bearer, or csrf, and sends whatever it finds ... to the same reporting endpoint.
The plugin contains a hardcoded authentication key that allows attackers to generate a valid login session for a WordPress administrator account without knowing the account password.
Discovery
1 technique
Discovery
The script builds a detailed fingerprint ... and ... checks for automation tooling. It looks for navigator.webdriver, leftover artifacts from Selenium, PhantomJS and NightmareJS ... This fingerprint, plus a small proof-of-work ... gets sent to a command-and-control server, which decides ... whether to show the real payload.
Collection
2 techniques
Collection
The Cloudflare Worker... modified the Brevo forms script, Brevo Conversations widget, and the Brevo SDK loader scripts that customers embed on their websites.
One of the message types it listens for writes attacker-controlled text directly to your clipboard, the same “copy this and paste it into Run” trick used by the ClickFix social-engineering technique.
Command and Control
2 techniques
Command and Control
This fingerprint ... gets sent to a command-and-control server ... Every step reports success or failure back to the operator ... [and] sends whatever [tokens] it finds ... to the same reporting endpoint.
“Contacts glegchner[.]com for new ClickFix scripts to inject into your pages.”
Observables
48 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
9 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.