Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Explainers · Explainer

What Is Malware? A Plain Explanation

What Is Malware? A Plain Explanation

Short answer

Malware is software designed to harm a device or its users, or to trick them, and on WordPress it usually arrives as hidden code on an otherwise normal site. It redirects visitors, injects spam pages, or steals data in the background. Sucuri found 1,176,701 infected websites in its 2024 scans, with malware and redirects making up 74.7% of infections.

Key takeaways

  • Malware is software designed to harm a device or its users, and on WordPress it usually hides as injected code.
  • Sucuri found 1,176,701 infected websites in 2024, with malware and redirects making up 74.7% of infections.
  • 91% of new WordPress vulnerabilities in 2025 were in plugins and 9% in themes, with only 6 low-priority flaws in core.
  • About half of high-impact flaws get exploited within 24 hours, and the median time to mass exploitation is 5 hours.
  • Google can show a warning on hacked sites in search results and in the browser until the site is clean and reviewed.

What is malware?

Malware is software that is designed to harm a device or its users, or to trick them, and on WordPress it usually arrives as injected code on an otherwise normal site.

Google Search Console Help defines the category this way: malware and unwanted software is software that is designed to harm a device or its users, that engages in deceptive or unexpected practices, or that negatively affects the user. It can be installed by a hacker or by the site owner.

On a WordPress site, malware rarely looks like a virus on a computer.

It is usually a few lines of hidden code added to a file, a database option, or a plugin. Visitors see the normal site, while the hidden code redirects some of them, shows them spam, or steals data in the background.

Malware is not the same as a vulnerability. A vulnerability is a weak point in code, such as a plugin flaw. Malware is the code that attackers place on your site after they use that weak point to get in.

What kinds of malware hit WordPress sites?

WordPress malware falls into a few families: redirects, SEO spam, card stealers, unwanted ads, and defacements.

Sucuri's SiteCheck Malware Trends Report 2024 sorts infections into five families. Malware and redirects made up 74.7% of infections, SEO spam made up 38.4%, credit card stealers made up 1.7%, unwanted ads made up 1.5%, and defacements made up 0.8%.

Redirect malware sends some visitors to scam pages, fake shops, or adult sites, while the site owner sees the normal page. SEO spam fills a site with hidden pages stuffed with keywords, often in Japanese or about gambling, so the attacker's pages rank in search results.

Card stealers, also called skimmers, sit on checkout pages and copy card details as customers type them.

Defacements replace a page with the attacker's message, which is the most visible kind but not the most common. A single site can carry more than one family at once, so the shares add to more than 100%.

How common is website malware?

Website malware is common enough that every site owner should expect to meet it, even though only a small share of sites are infected at any one time.

Sucuri's 2024 report is built on 70.8 million website scans performed by its SiteCheck scanner during 2024. From those scans, it detected 1,176,701 infected websites, which is an overall infection rate of 1.66%.

The counts behind that rate show the scale.

The report lists 822,651 detections of active malware infections and malicious redirects, 422,741 detections of SEO spam, 18,622 detections of credit card stealing malware, and 16,474 detections of unwanted ads. It also found 169,163 websites loading malicious resources from domains tied to known malware campaigns.

WordPress is the most common target because it runs the most sites.

W3Techs reported on November 21, 2026 that WordPress is used by 57.4% of all the websites whose content management system it knows, which is 38.5% of all websites. Attackers write malware for WordPress because that is where the sites are.

How does malware get onto a WordPress site?

Malware usually gets in through a plugin or theme flaw, a stolen password, or a nulled plugin, not through WordPress core itself.

Patchstack's State of WordPress Security in 2026 whitepaper counted 11,334 new vulnerabilities across WordPress plugins, themes, and core in 2025, a 42% increase compared to 2024.

The same report states that 91% of new vulnerabilities were found in plugins and 9% in themes, while only 6 vulnerabilities were reported in WordPress core, and these were low priority issues.

Speed makes those flaws dangerous.

Patchstack states that the weighted median time to first exploit for heavily exploited vulnerabilities is 5 hours, and that about half of high-impact vulnerabilities get exploited within 24 hours. The report also states that 46% of vulnerabilities did not receive a fix from the developer in time for public disclosure.

Stolen passwords are the other main route. Sucuri's 2024 report notes a rise in compromises from stolen admin credentials, harvested by information-stealing malware on the personal computers of site owners and admins. Our guide on the most common WordPress vulnerabilities lists the flaws attackers use most.

What does malware do once it is in?

Once it is in, malware usually tries to stay hidden, keep access, and earn money for its owner.

The first job is persistence. Sucuri's 2024 report notes that attackers increasingly store payloads within database options rather than files, using legitimate plugins such as WPCode to execute malicious PHP. That sidesteps file-based checks, since the code sits in the database, not in a file that looks wrong.

The second job is to hold the door open. Sucuri describes the Balada Injector campaign, with 149,351 detections in 2024, as creating rogue admin users and installing counterfeit WordPress plugins that serve as backdoors. Remove the visible spam but leave the backdoor, and the attacker walks back in.

The third job is to earn money. Sucuri lists the Balada Injector at 149,351 detections, SocGholish at 147,332 infections, and Sign1 at 96,084 detections in 2024.

SocGholish shows visitors fake browser update prompts, aiming to trick them into downloading a remote access trojan. Japanese SEO spam had 117,393 detections, and gambling content had 79,817.

How do you tell if your WordPress site has malware?

Look for changes you did not make: new admin users, strange redirects, spam pages in search results, or warnings from Google.

Check your admin users first. A rogue admin account is a clear sign, since attackers create one to keep access. Then check your plugins: a plugin you do not remember installing, or a familiar plugin with files changed recently, deserves a closer look.

Check Google Search Console next. Google Search Console Help states that if a Google evaluation finds that your site was hacked or shows behavior that could harm a visitor, the Security issues report shows the findings. Its categories are hacked content, malware and unwanted software, and social engineering.

Check how the site looks to visitors, not just to you. Some malware shows its spam only to search engines or to visitors from search results, while the owner sees the clean site.

Search for your site name plus odd words, or load a page with a fresh browser that has never logged in to your admin. Our guide on how to tell if your WordPress site is hacked lists the signs in order.

SignWhat to checkWhat it may mean
New admin userUsers, then All UsersAttacker created an account to keep access
Strange redirectsLoad the site logged outRedirect malware sends visitors elsewhere
Spam in search resultsSearch for your site nameSEO spam pages were added
Google warningSearch Console, then Security issuesGoogle found hacked content or malware
Unknown pluginPlugins, then Installed PluginsA counterfeit plugin may be a backdoor
Slow or odd behaviorRecent file changes, odd database optionsHidden code may be running

How do you remove malware from WordPress?

Remove malware by taking the site offline or into maintenance mode, finding every infected file and database entry, and closing the hole it came through.

Start with a backup of the infected site, so you can compare files later.

Then scan with a security plugin and check the results by hand, since a scanner can miss code hidden in the database. Sucuri's 2024 report notes that attackers store payloads in database options, which file-only checks miss.

Replace core, plugin, and theme files from clean copies, and delete any plugin or user you do not recognize. Change every password: admin accounts, hosting, database, and FTP. Then update everything, since the flaw that let the attacker in is often a known one with a fix already out.

Do not stop at the visible spam.

Patchstack's whitepaper notes that Monarx processed nearly 9 trillion file signals in 2025, and that attackers increasingly favor compromising legitimate files, so injected code is harder to find and remove than plain malicious files. Our guide on how to remove malware from WordPress walks through the cleanup step by step.

How do you stop malware coming back?

Stop malware coming back by updating fast, using strong logins, and limiting what plugins can do.

Update quickly, because attackers move fast. Patchstack's whitepaper states that about half of high-impact vulnerabilities get exploited within 24 hours, and that the weighted median time to first exploit for heavily exploited flaws is 5 hours. A weekly update routine leaves a gap that attackers use.

Use strong, unique passwords and two-factor login for every admin account, since stolen credentials are a major route in. Sucuri's 2024 report notes the rise in compromises from credentials stolen from the personal computers of site owners and admins, so keep the computers you log in from clean as well.

Limit your plugins. Patchstack counted 11,334 new vulnerabilities in 2025, with 91% in plugins, so each plugin you install adds a small chance of a flaw.

Remove plugins you do not use, and do not install nulled plugins, which can carry backdoors. Our guide on how to scan WordPress for malware explains how to check a site on a regular schedule.

What happens with Google after a hack?

Google can show a warning on your site in search results and in the browser until you fix it and ask for a review.

Google Search Console Help states that pages or sites affected by a security issue can appear with a warning label in search results or an interstitial warning page in the browser when a user tries to visit them.

Visitors who see that warning usually leave at once, so traffic drops fast.

Fix the issue everywhere, not just on one page. Google's help page states that fixing the issue on just some pages will not earn a partial return to search results. When all issues are fixed on all pages, select Request Review in the Security issues report.

The review takes time, and Google rechecks the site before it lifts the warning.

Keep the site clean while you wait, and do not ask for a review until every infected file and database entry is gone. Our guide on how to run a WordPress security audit covers the checks to run before you ask.

Frequently asked questions

Is malware the same as a vulnerability?

No. A vulnerability is a weak point in code, such as a plugin flaw. Malware is the code attackers place on your site after they use that weak point to get in.

How do I know if my site has malware?

Check your admin users for accounts you did not create, look for plugins you do not recognize, and check Google Search Console under Security issues. Strange redirects and spam pages in search results are also signs.

Can a hacked site get back into Google search results?

Yes, but only after you remove every infected file and database entry and close the hole it came through. Google says fixing it on just some pages will not earn a partial return to search results.

Is deleting the spam pages enough to clean a site?

No. Removing the visible spam is not enough, since attackers leave backdoors such as rogue admin users or counterfeit plugins. Delete anything you do not recognize and change every password.

How do I stop my WordPress site getting malware again?

Update quickly, use strong unique passwords with two-factor login, and remove plugins you do not use. Patchstack found that about half of high-impact flaws get exploited within 24 hours.

Sources

  1. SiteCheck Malware Trends Report 2024 Sucuri
  2. State of WordPress Security in 2026 Patchstack
  3. Security issues report Google Search Console Help
  4. Usage Statistics and Market Share of WordPress, November 2026 W3Techs

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.