Skip to content
Security & Trust

Fake WordPress plugin stays quiet for logged-in users and targets visitors

Wordfence suspects the malware skips administrators to avoid detection, so checks made while logged in may miss it

W
WebPulse Newsroom
AI-assisted · 4 min read
Share on X LinkedIn
Fake WordPress plugin stays quiet for logged-in users and targets visitors

Graphic: WebPulse, drawn from the sourced facts in this story.

In brief
  • Wordfence analysed a fake WordPress plugin that serves attacker-chosen JavaScript to anonymous visitors and stays dormant for logged-in users. Wordfence suspects this is to avoid detection.
  • Visitor traffic is relayed through the infected site's own domain, so browser-side controls see ordinary requests. The plugin also hides from the plugins screen.
  • Compare plugin folders on the server with the dashboard, and test the site as an anonymous visitor. Strong admin security helps prevent install but does not remove the backdoor.

The owner is the one person who may not see it

Most site checks begin with one question: does the owner see anything wrong? Wordfence has described malware that appears to exploit that habit. It does nothing for logged-in users. It does its work on the people who visit.

What Wordfence found

Wordfence's Threat Intelligence Team studied a fake WordPress plugin. It recovered the plugin during two incident-response cleanups, in January 2026 and September 2026. The plugin runs attacker-chosen JavaScript in the browser of every anonymous visitor. For logged-in users it stays dormant.

The plugin looks machine-made. A name generator appears to have produced its title, folders, functions and variables. Each name joins a prefix, a technology word and a suffix, as in "ultravueal". Wordfence says about two-thirds of each file is filler, such as comments and code that never runs. One file is 64KB but holds only 72 lines of working code. The report says this padding helps the plugin slip past automated detection.

How it reaches visitors

When someone lands on an infected site, the plugin records the visitor's IP address. It then starts a multi-step process. It issues an encrypted visitor ID and a cookie that lasts five minutes. The visitor's browser then calls a route on the infected site itself.

Next, the site's server asks the attacker's server for the JavaScript for that stage. It passes the script back to the browser. The browser never contacts a host the attacker controls.

This matters for defence. Wordfence says content security policies, browser extensions and client-side blocklists treat the traffic as coming from the site itself. A content security policy is a list of places a page may load code from. Here, the code appears to come from the site's own address, so the list has nothing to block.

The design also keeps the server clean. Wordfence says the plugin keeps no files, options or state that would reveal what is being served. The report adds that most hosts do not log outbound calls to the attacker. Incoming requests can show a pattern. Each visitor produces three requests from one IP address in quick succession.

What the visitors are used for

Wordfence lists several uses for such a loader. They include ad fraud, redirects, fake update prompts, cryptocurrency drainers, phishing overlays and keystroke capture. The researchers found no code that steals server-side data: no database queries, no file reads, and no outbound calls other than the relay to the attacker's server.

A reporting endpoint called /api/click fires once per visitor after the final stage. Wordfence says this points to ad fraud or traffic resale rather than credential phishing. The report does not say how many sites are infected.

How it hides from the people in charge

The plugin skips logged-in users at every entry point. Wordfence suspects this is to avoid detection. It says losing a few visitors who could be monetised is worth the lower chance of being noticed.

It uses three more tricks. First, it removes itself from the WordPress plugins screen. Second, it copies the modification time of the oldest installed plugin onto its own files. This is called timestomping. Every file ends up with the same timestamp, down to the second. Wordfence notes that real installs spread files across seconds or minutes.

Third, it carries a backdoor. Two URL parameters let an attacker name any user ID and supply a password the attacker holds. The attacker then logs in as that user. Wordfence says this route keeps working after password changes or the addition of a second factor, as long as the plugin stays installed.

How it gets in

The timestamp trick is tied to activation. The code checks that an administrator is activating the plugin through WordPress. Where Wordfence saw identical timestamps, it concluded that a compromised admin account was the most likely way in. Installs by file write, by wp-cli or by editing the list of active plugins would not leave identical timestamps. Wordfence says none of the files it obtained pointed to any other route.

Detection rules arrived late. Wordfence says it wrote rules covering part of the infected files in November and December 2025. Rules built for this infection reached paying customers on October 16, 2026. Free users received them on November 15, 2026, after the usual 30-day wait. The researchers say changes between the January and September builds look like a response to detection pressure.

What to ask your team

The lesson here is that checks made as the owner can miss malware that ignores the owner. Ask your team these questions.

First, does the list of plugin folders on the server match the plugins screen? This is the more reliable check. The plugin hides from the screen but not from the file system.

Second, is the site loaded on a schedule as an anonymous visitor, with its requests recorded? A logged-in check will not trigger the plugin. The owner's browser controls also cannot see the relayed code.

Third, do access logs show three requests in a row from one visitor?

Identical file timestamps are a clue, but a weak test. They show only the admin-activation route, so finding none does not clear a site. Last, who can install and activate plugins? Strong administrator logins with a second factor make the likely entry route harder. They do not remove the backdoor once the plugin is installed.

The plugin shows the owner a clean site and shows visitors something else. Monitoring from the visitor's side, and comparing server files with the dashboard, tells the two views apart.

Produced by the WebPulse Newsroom with AI assistance from the original reporting credited below, and checked against that source by our editorial review. How we use AI.
Original reporting: Wordfence.

WordPress vs Vue.js