Last week a client’s WordPress site picked up a plugin nobody had installed. It didn’t appear on the Plugins screen, it didn’t slow anything down, and the site’s owner never saw it do anything — because it was built so that they wouldn’t. This is what it did, how we found it, and the new protection we’ve added to our free EDZNET Security Guard plugin so the same trick fails on every site that runs it.
What Happened
Going back through the server’s logs, the story was short:
- Someone logged in as an administrator on the first attempt. There were no failed logins at all in five weeks of logs, so the password wasn’t guessed. It had leaked, most likely reused from another site or stolen by malware on a computer that had saved it.
- Within 45 seconds they uploaded a plugin as a ZIP file and activated it. Its folder was named like
xglobal-data-flow-followed by five random letters — a naming pattern used by a family of fake plugins. - The plugin hid itself. It removed its own entry from the WordPress Plugins screen, so even an administrator looking at the list couldn’t see it.
- It only targeted visitors. For anyone who wasn’t logged in, it added an obfuscated script to every page. That script asked a public blockchain where to load its next stage from — a technique known as “EtherHiding”, which makes the attacker’s code hard to take down. Campaigns like this usually show a fake “verify you’re human” or “update your browser” page that tricks visitors into installing password-stealing malware.
Logged-in administrators were deliberately skipped, so the owner browsing their own site saw nothing wrong. We found it from the server side, removed it, and confirmed from its code that it hadn’t planted anything else on the server. The real fix, though, is making sure the next one can’t get started.
Why Normal Defences Missed It
- The login was legitimate as far as WordPress could tell. Right username, right password. Brute-force protection never triggers when there’s nothing to brute-force.
- Uploading a plugin is a normal admin action. WordPress lets any administrator install a ZIP from anywhere, and it doesn’t check where the ZIP came from.
- Hidden plugins don’t get reviewed. If it isn’t on the Plugins screen, nobody thinks to remove it.
New in EDZNET Security Guard 1.5.0: Plugin Audit
Security Guard now checks every plugin on the site and controls which ones are allowed to switch on.
Every plugin is verified against WordPress.org
WordPress.org publishes a checksum (a fingerprint) for every file in every version of every plugin in its directory. Security Guard compares your installed plugins against those fingerprints, so it knows whether each one is:
- A verified WordPress.org copy — every file matches the official release;
- Modified — it’s a WordPress.org plugin, but files have been changed or added (a classic way to hide a backdoor inside a trusted plugin);
- Not verified — it didn’t come from WordPress.org at all, like a premium plugin or a fake one.
Unverified plugins can’t be activated until you approve them
A newly installed plugin that isn’t a verified WordPress.org copy is blocked from activation until the site’s first administrator approves it on the new EDZNET Guard > Plugin audit screen. A premium plugin you bought from its developer takes one click to approve. A fake plugin uploaded by an intruder simply won’t switch on.
The check runs before the plugin’s code is loaded, so a malicious plugin doesn’t get to run even once. It applies on the Plugins screen, through the REST API and through WP-CLI, and it also stops code that tries to sneak a plugin into the active list directly.
High-risk code is flagged straight away
Security Guard also scans plugin code for the techniques fake plugins rely on, including the ones from this attack:
- hiding plugins from the Plugins screen;
- loading code from a blockchain (EtherHiding);
- running hidden, decoded or encrypted code;
- running commands sent in a web request;
- adding scripts only for visitors who aren’t logged in;
- heavy obfuscation, and random-looking folder names.
Anything critical is blocked until approved, shown in red on the Plugins screen and the dashboard, and emailed to you as soon as it’s found, with the exact file and line. A plugin that’s already active and hiding itself is caught too: Security Guard compares what’s really installed with what the Plugins screen shows.
It won’t break a working site
Plugins that were already installed when you update to 1.5.0 are never blocked, only flagged, unless they contain high-risk code. EDZNET’s own plugins are exempt as well. The audit runs daily, whenever a plugin is activated, and whenever you click Run audit now. If you’d rather only be warned, blocking can be switched off in the settings, and plugins are then just flagged.
Also New: Where Did That Login Come From?
Security Guard already emails you every time an administrator signs in. If you also run our EDZNET Geolocation plugin, those emails now show where the login came from — city, region, country and internet provider — for example “from 41.13.0.1 (East London, Eastern Cape, South Africa, via Vodacom)”. In this attack, the intruder signed in from a US proxy network. With this line in the email, a login from a country you’ve never been to stands out at a glance.
What You Should Do
- Install or update EDZNET Security Guard (free, from WordPress.org), then open EDZNET Guard > Plugin audit and check the results.
- Turn on two-factor authentication. It’s built into Security Guard. This attack started with a stolen password, and a stolen password alone can’t get past a two-factor code.
- Don’t reuse your WordPress password anywhere else. Our guide to creating strong passwords covers how to manage them.
- Check your Users screen for administrator accounts you don’t recognise.
Frequently Asked Questions
I use premium plugins. Will they stop working?
No. Plugins that are already installed are never blocked. When you install a new premium plugin, approve it once in the Plugin audit and it activates as normal. Updates to an approved plugin are flagged so you can confirm the new code, but they aren’t blocked.
Does it slow my site down?
No. The audit runs in the background once a day and when plugins are activated; it does nothing on the pages your visitors load.
Does it send my site’s data anywhere?
Only each plugin’s folder name and version number are sent to WordPress.org, to fetch that plugin’s official checksums. Nothing about your site, users or visitors is sent.
What if an attacker logs in as the first administrator?
Then they could approve their own plugin, which is why two-factor authentication matters so much: with it on, a stolen password isn’t enough to log in at all. Security Guard’s login alerts, now with the login’s location, tell you straight away if someone does get in.
Can it replace a malware scanner?
It’s a strong extra layer, not a full malware scanner. It focuses on plugins, which is where this kind of attack starts. On our hosting, server-level scanning by BitNinja runs alongside it.
For EDZNET Hosting Customers
If you host with us and think your site may have been affected, or you’d like help setting up Security Guard and two-factor login, open a support ticket and we’ll check it for you.