A site is cleaned, the scan comes back green. Days later the same site is running the same malware. Nothing was missed on the server, the files, the cron entries and the database rows were all cleaned. The malware came back from the one machine your tooling does not administer, the browser someone used to sign in to the site during the first incident.
Imunify360 can now remove malicious service workers from the browser of anyone signed in to a WordPress site. The new feature is rolling out in the next weeks to every site on servers with Imunify360 where the Imunify Security for WordPress plugin is enabled. It closes a reinfection route that’s actively used at scale by an ongoing malware campaign and server-side cleanup alone cannot reach.
For a hosting provider the reinfection loop costs money even before a ticket is reopened. Every malware return is another scan-and-clean cycle the server pays for, on every affected account, every time someone signs in. Ending the loop removes that resource load at its source.
The SC malware campaign
The WordPress malware campaign we track internally as SC is the case that shaped the new feature. In the two weeks to 17 September alone, the Imunify threat-intelligence network detected it on more than 120,000 WordPress sites across more than 9,000 servers. Where Imunify360 was running both Proactive Defense, its real-time PHP script analysis layer, in Kill Mode and the malware scanner with automatic cleanup, the malware was stopped as it ran and cleaned from the site.
What the server-side tools could not clean was something that the SC campaign left behind in the browsers of the people who had signed in to those sites while the malware was active: a registered service worker, waiting for their next visit.
Why service workers are out of reach for server-side cleanup
A service worker is a script a browser registers for a site and then runs on its own, independently of any page, even after the tab is closed. Service workers power offline reading, background sync and push notifications on a large part of the web. The same properties make one useful to an attacker. Once registered, it sits between the browser and the site, it can rewrite requests to the site, and it stays registered across sessions.
The registration lives in the browser’s own storage. Cleaning the server does nothing to it. As it happened in the SC campaign, the next time the browser with a WordPress login cookie opens the site, the worker runs first and puts the malware back.

How Imunify360 removes malicious service workers
Through the Imunify Security for WordPress plugin, Imunify360 now acts where the server cannot. On the pages of a signed-in session, the plugin lists the service workers registered for the site, checks each one against a ruleset fed by Imunify’s threat intelligence, unregisters the malicious ones and purges the caches they created. Legitimate workers that match no rule are left alone.
Signed-in page load
▼
The plugin lists the service workers registered for the site
▼
Each one is checked against the threat-intelligence ruleset legitimate workers (PWA, push, storefront) leave the flow untouched
▼
Malicious workers are unregistered and their caches purged
▼
The reinfection loop ends
If a worker is already registered, it intercepts the page’s own request before any script on the page runs. On that load, it acts first. The removal ends the loop from there because the worker is gone before the next visit, and on a server running Proactive Defense in Kill Mode with automatic malware cleanup enabled, that last attempt is handled the way the first one was.
Most service workers, however, are doing real work: progressive web app plugins, WooCommerce storefronts, Firebase messaging, push-notification vendors. A push worker holds the site’s subscriber list, so unregistering the wrong one has a cost. Every rule is therefore checked against the service workers observed across the whole Imunify network before it is enabled, and removal is switched on per threat after validation against live progressive web apps and push-enabled sites.
How multiple protection layers work together against a campaign like SC
Browser-side cleanup is the newest feature in Imunify360, and it complements the other security layers already there. Each supplies something the rest cannot:
- Malware scanner and cleanup. Removes SC’s files, scheduled tasks and database rows, so the loop has nothing on the server to restart from.
- Proactive Defense. Terminates the malware as it executes and marks the site as infected, so the site stops serving the malware campaign while the cleanup runs.
- Web application firewall. Logs every service-worker fetch across every protected server, which is how a worker in a browser becomes visible from the server side at all.
- Threat intelligence. Correlates the Proactive Defense and WAF data streams across the network to differentiate an attack’s worker from a legitimate push vendor’s. It’s also used to test the potential impact of every rule against real registrations before it goes live.
- The ruleset. Carries what the plugin looks for and governs both detection and removal, so a rule can be widened, tightened or withdrawn everywhere, and a new campaign is covered by a rule update rather than a plugin release.
- The Imunify Security for WordPress plugin. Runs in the signed-in session, the one place a worker is visible and removable, and acts on what the other layers identified.
Any one of these on its own leaves SC a way back. Together they cover each other and provide full protection. This is why a multi-layered approach is crucial in security.
If you run hosting
The Imunify Security for WordPress plugin is delivered and updated by the Imunify360 agent, and the new capability arrives with plugin version 4.1.2. It needs no manual action per site.
When a malicious worker is removed, it appears as an event under the Incidents tab on the Imunify360 dashboard in your hosting panel, and the site owner sees the same event under CMS Protection, then Incidents, in the plugin’s pages in wp-admin.
Enabling the plugin on a server is one server-wide setting:
imunify360-agent config update '{"WORDPRESS":{"security_plugin_enabled": true}}'
The agent then installs the plugin on every WordPress site on that server and keeps it updated, with nothing for your customers to install or configure. It is included with Imunify360 at no extra cost, and it already runs on more than 1.3 million WordPress sites. The full setup and rollout steps are in the Hosting Provider Guide.
Additionally, on servers where accounts keep reopening malware tickets, check two settings to ensure:
- Proactive Defense is in Kill Mode, so the malware is terminated as it runs,
- Automatic cleanup is on, so the scanner cleans what it finds on its own.
If you run a WordPress site
Look for Imunify Security in your plugin list:
- If it is there, your host already runs it and the new capability reaches your site through your host’s security stack, with nothing to install or configure.
- If it is not there, ask your host to enable the plugin on your server. It is a server-side setting, so it has to come from them. The Site Owner Guide covers what the plugin does and what you can change yourself.
You can also check your own browser. Do it without opening the site because on a site that still carries the malware, the page load is what registers the worker, and if one is already registered that load is when it acts. Reading the list is safe.
- Chrome or Edge: chrome://serviceworker-internals (or edge://serviceworker-internals) lists every registration with its script URL and lets you unregister it there.
- Firefox: about:debugging#/runtime/this-firefox, under Service Workers.
- Safari: Develop, then Service Workers.
Check the browser you use to sign in to your site. A worker you cannot trace to a WordPress plugin you installed yourself is worth unregistering there and mentioning to your host. If your site has been cleaned and attacked again since, a surviving registration is a strong candidate for why.
More improvements in the latest plugin version
The new browser-side cleanup is the headline, while the latest plugin release carries many more updates that both hosting providers and site owners will notice:
- WAF engine improvements. Better method evaluation process, and scan-all support for file conditions.
- AI Bot Management verifies crawlers more accurately. Applebot and each DuckDuckGo crawler are now checked against the address lists their operators publish, and requests the site’s own server makes back to the site are no longer classified or rate limited as bot traffic.
- The plugin honours the Imunify360 IP whitelist. An address a hosting admin has whitelisted in Imunify360 is never classified as a bot, rate limited or blocked by the plugin’s bot management controls. The related agent side update is scheduled to ship in Imunify360 8.14.1, so it takes effect once a server has that version.
- Now available in four new languages. The plugin interface is now fully translated into Spanish, German, Russian and Slovak.


Comments