WordPress Security ServicesMalware Removal
WordPress Virus & Trojan Removal

WordPress Virus Removal: Trojans, Backdoors and Reinfections

Whether your host calls it malware, your browser calls it a virus, or a scanner says "trojan", the job is the same: find every infected file, remove the hidden backdoors that let it spread and come back, and fix how it got in. That's what I do, by hand, on WordPress sites every week.

$95 for one infected WordPress site

Includes a 1-month hassle-free guarantee. Multiple infected sites are priced separately. Guarantee terms

Sergey, WordPress security specialist
Top Rated 100% Job Success 10 years · 200+ sites cleaned
Signs of a WordPress virusSYMPTOMS
  • Admin users you didn't create
    Often hidden from the normal Users screen.
  • Files that look like WordPress, but aren't
    Names like wp-tmp.php or wp-login1.php in odd folders.
  • Your host or antivirus flags files
    Emails about "trojan", "backdoor" or "webshell" detections.
  • Other sites in the account get infected too
    The infection spreads between sites and themes.

How to check WordPress for a virus

You can do a first check yourself:

  • Scan from the outside with a free online scanner such as Sucuri SiteCheck. It shows what visitors and Google see.
  • Scan the files with a security plugin such as Wordfence, and compare core files with wp core verify-checksums if you have SSH.
  • Test on a phone. Some infections only show on mobile, so a redirect or pop-up that never appears on your desktop can still be there.
  • Look for odd files, especially .ico or image files in strange folders that are actually PHP code, a classic hiding trick.

A clean result doesn’t prove the site is clean, but a positive one tells you it’s time to act. My guide on how to scan a WordPress site for malware goes deeper.

“Virus” vs malware: does it matter?

Not really. Strictly speaking, a virus is a program that copies itself, and most WordPress infections are better described as malware: malicious code added to your site to make money for an attacker. But plenty of WordPress infections do spread like a virus. They copy themselves into every theme, every plugin, or every site in your hosting account. Whatever you call it, the cleanup needs to find every copy.

What a WordPress trojan is

A trojan is malicious code that hides inside something that looks useful or legitimate. On WordPress sites, the usual disguises are:

  • Nulled themes and plugins: pirated premium products with a backdoor added before they were shared.
  • Fake plugins with names like “WP Security Patch” or “Cache Helper”, sometimes hidden from the plugin list.
  • Fake core files with names that look like WordPress, such as wp-tmp.php, wp-login1.php or class-wp-cache.php, placed where real WordPress files never are.
  • Code added to real files. A few lines at the top of a genuine plugin file or your theme’s functions.php.

A well-known example is the “WP-VCD” malware family, which spread through nulled themes. It created a hidden admin account, then infected every other theme on the site and other sites on the same server. Deleting the theme it arrived in did nothing; the copies stayed behind.

Why a WordPress virus keeps coming back

When owners tell me “I removed it and it came back”, it’s almost always one of these:

  1. A backdoor was missed. The visible malware was removed, but a small hidden file that lets the attacker upload it again is still there.
  2. Something reinstalls it. A hosting cron job, a “must-use” plugin, or a function hooked into WordPress that rewrites the infected files every few hours.
  3. Another site in the account is infected. It reinfects yours through the shared file system.
  4. The entry point is still open: the vulnerable plugin, the nulled theme, or the leaked password.

How I remove a WordPress virus or trojan

  1. Map the infection. Which files, which sites in the account, which database records, and which user accounts are involved.
  2. Replace instead of patch. WordPress core, plugins and themes are reinstalled from clean, genuine sources. Nulled software is removed.
  3. Remove the backdoors and persistence: hidden files, fake plugins, unauthorized admins, cron jobs, and .htaccess or php.ini tricks.
  4. Check neighboring sites in the same hosting account, so the cleanup actually holds.
  5. Close the entry point and harden the site: updates, passwords, security keys, and safer file permissions.
  6. Verify and report. You get a plain-language summary of what was found and what changed.

A typical case: a designer’s hosting account holds six client sites, and the host keeps flagging new “trojan” files every few days. The source turns out to be a nulled premium theme installed on one site a year earlier. Its backdoor had added hidden admin accounts and copied itself into the themes of four of the other sites. Cleaning sites one at a time had never worked, because the clean ones were reinfected by the dirty ones. Cleaning all of them together, replacing the nulled theme with a licensed copy, and rotating every password finally ended it.

Do you need antivirus for WordPress?

Not in the desktop sense. What protects a WordPress site is a combination of habits and tools: keep everything updated, use only genuine plugins and themes, use strong unique passwords with two-factor login, keep regular off-site backups, and run a security plugin for monitoring. My guide to WordPress malware scanners explains what those scanners can and can’t catch.

If your site is already infected, have a look at the full malware removal service, or contact me with what you’re seeing.

Common Questions

WordPress Virus FAQ

Can a virus on my WordPress site infect my computer?

Not by itself: malware on the server doesn't jump to your computer when you log in. But an infected site can send visitors to malicious downloads, fake updates or scam pages, so it can put your visitors at risk. That's why browsers and Google show warnings about infected sites.

Are nulled WordPress themes and plugins really dangerous?

Yes. A nulled theme or plugin is a pirated copy of a premium product, and the people who share them often add a backdoor before uploading. It's one of the most common ways I see sites get infected. The fix is to delete the nulled copy completely and install a genuine one.

If I delete the infected plugin, is the virus gone?

Usually not. Many trojans copy themselves into other plugins and themes, add an admin account, or create a hidden file somewhere else as a backup. Deleting the original source is necessary, but it's only the first step.

Do the other sites in my hosting account need cleaning too?

If they share the same hosting account, yes, they need checking. Sites in one account can usually read and write each other's files, so one infected site can reinfect the others. Cleaning just one of them often doesn't last. I'll tell you which ones are affected before quoting for them.

Can I scan my website with my computer's antivirus?

You can scan a downloaded copy, and it may catch some well-known PHP malware. But desktop antivirus isn't designed for website code and misses most WordPress infections, including anything in the database. Use it as an extra check at most.

Get rid of it properly

Tell me what your scanner or host reported

Send me the warning or the list of flagged files and your site URL. I'll tell you what kind of infection it looks like and how I'd remove it.

$95 per infected site · 1-month guarantee · direct contact with the specialist

Request Malware Removal →