Black Friday: 62% off every service Ends in 1 Dec See the offer
Website Security

What Is Malware? A Plain-English Guide (With Interactive Checks)

Malware is software built to hurt you, spy on you or quietly use what's yours. Here are the main types, how they sneak in, and how to spot and remove them, on your devices and on your website.

What Is Malware

Quick summary: Malware is software built to hurt you, spy on you or quietly use what's yours. In this guide we'll unpack the main types, how they sneak in, and how to spot and remove them. We'll also cover the part most guides skip: what happens when the infected "device" is your website. There are a few hands-on checks along the way.

Picture this. It's Monday morning, coffee in hand, and you search for your own business on Google. Under your homepage, instead of your tagline, there's a line about discount pharmaceuticals, in Japanese. Or Chrome throws up a big red warning before anyone can reach your site. Or your laptop fan starts screaming the moment you open a browser.

Different symptoms, same culprit: malware. And let's be honest, most explanations of it are either so vague they're useless ("bad software is bad!") or written for security engineers. This one is for everyone in between: curious people, small business owners, and anyone who just got a scary pop-up and wants to know what's going on.

Key takeaways

  • Malware is short for malicious software: any code designed to harm, spy on or misuse a device or website without your permission.
  • Viruses, worms, trojans, ransomware and spyware are all types of malware. "Virus" is not a synonym.
  • Most infections still start with a human click: a fake update, a dodgy attachment, a pirated plugin.
  • Websites get malware too. WordPress sites with outdated plugins are a favorite target, and the damage often shows up in Google first.
  • Removal is only half the job. If you don't close the hole the malware came through, it comes back.

What Is Malware?

Malware is any software deliberately written to do something you didn't agree to: steal data, lock files, show ads, spy on you, or borrow your computer's power (or your website's reputation) for someone else's benefit.

The word itself is just malicious software squashed together. The key word is deliberately. A buggy app that crashes is annoying, but it isn't malware. Malware has an author, and that author has a goal.

Those goals are surprisingly boring, which is useful to know. Almost every piece of malware wants one of four things:

  • Money: ransom payments, stolen card details, hijacked bank sessions.
  • Data: passwords, customer lists and personal details that can be sold or reused.
  • Resources: your CPU for crypto mining, your connection for attacks on others, your website's Google rankings for their spam.
  • Access: a quiet foothold they can come back to, or sell to someone else.

Keep those four motives in mind. Once you know what an attacker wants, the "why would anyone hack my little site?" question answers itself. They don't care about you personally. They care about what you have: an audience, a domain Google trusts, a server that's online all day.

Types Of Malware

Security people love categories, and the categories overlap a lot. A trojan can deliver ransomware, which can then spread like a worm. So treat the types below as behaviors rather than strict boxes. Click through them: each one also shows what the same idea looks like on a website, because the tricks travel well.

Interactive

Malware type explorer

Pick a type to see what it does, how it spreads and how you’d notice it, plus what the same trick looks like on a website.

Virus

Code that attaches itself to a legitimate file or program and spreads when that file is opened.

What it does
Corrupts or changes files, and is often used to drop other malware.
How it spreads
Infected attachments, USB drives and downloaded programs.
How you’d notice
Files changing size, programs crashing, a security alert on a file you just opened.

On a website: Website “viruses” are usually injected PHP or JavaScript copied into many files at once, so one infected file infects the next.

Worm

Malware that copies itself across networks on its own, without anyone clicking anything.

What it does
Spreads fast, eats bandwidth and often carries a nastier payload.
How it spreads
Unpatched network services and weak passwords.
How you’d notice
The network slows to a crawl, and many machines misbehave at once.

On a website: On shared hosting, one compromised site can spread to the other sites in the same account.

Trojan

Malware disguised as something you actually want, like a free tool, a game crack or an “update”.

What it does
Opens a door for the attacker once you run it yourself.
How it spreads
Fake downloads, pirated software and malicious ads.
How you’d notice
Something you installed doesn’t quite work, and unknown programs appear.

On a website: Nulled (pirated) premium themes and plugins are classic trojans: the free download often includes a hidden admin backdoor.

Ransomware

Encrypts your files and demands payment, usually in crypto, to unlock them.

What it does
Locks your data. Many gangs also steal it and threaten to leak it.
How it spreads
Phishing, stolen remote-access logins and unpatched servers.
How you’d notice
Files with odd extensions you can’t open, and a ransom note on screen.

On a website: Some website attacks encrypt or wipe the site files and leave a ransom note in place of your homepage.

Spyware

Quietly watches what you do and reports back: browsing, messages, location, passwords.

What it does
Steals personal and login data over time.
How it spreads
Bundled with free apps, or hidden in malicious browser extensions.
How you’d notice
Battery drain, data use spikes, logins from places you’ve never been.

On a website: “Skimmer” scripts are spyware for websites: they copy what customers type into checkout and contact forms.

Adware

Floods you with ads or hijacks your browser to earn money for its author.

What it does
Changes your homepage or search engine and injects pop-ups.
How it spreads
“Free” software installers with pre-ticked boxes.
How you’d notice
New toolbars, a search engine you didn’t pick, pop-ups everywhere.

On a website: Injected ad scripts and pop-unders, often shown only to mobile visitors arriving from Google.

Rootkit

Malware that buries itself deep in the system so it can hide other malware, and itself.

What it does
Gives the attacker long-term, hard-to-detect control.
How it spreads
Usually installed by another piece of malware after it gets in.
How you’d notice
Often you won’t. Security tools that are disabled or won’t update are a clue.

On a website: Server-level compromises that hide files from the hosting file manager. Rare on small sites, but brutal.

Keylogger

Records every key you press, passwords included.

What it does
Harvests logins, card numbers and private messages.
How it spreads
Trojans, malicious extensions and infected downloads.
How you’d notice
Logins you never made, and password-reset emails you didn’t request.

On a website: Code injected into the WordPress login page that captures admin usernames and passwords as they’re typed.

Botnet

A network of infected devices controlled remotely, like a zombie army for hire.

What it does
Sends spam, attacks other sites, or mines crypto with your resources.
How it spreads
Worms, trojans, and weak router or smart-device passwords.
How you’d notice
A slow device, high CPU when idle, your IP address on blocklists.

On a website: Hacked sites get used to send spam email or attack other websites, and your host may suspend the account for it.

SEO spam

Website malware that borrows your domain’s reputation to rank the attacker’s junk in Google.

What it does
Creates thousands of spam pages or hidden links, and redirects search visitors.
How it spreads
Outdated plugins and themes, weak admin passwords, nulled software.
How you’d notice
Strange pages in Google results for your site, often in Japanese or about pharma or casinos.

On a website: This is the website version, and one of the most common infections on small business WordPress sites.

How Does Malware Get In?

Here's the slightly uncomfortable truth: most malware doesn't break in. It's invited. Attackers are much better at psychology than you'd expect, and the most common entry points are:

  • Phishing emails and messages with attachments or links that look routine: invoices, parcel notices, "shared documents".
  • Fake updates and downloads: "Your browser is out of date" pop-ups, cracked software, free "premium" tools.
  • Unpatched software: old operating systems and browsers, and on websites, outdated WordPress plugins, themes and PHP versions with publicly known holes.
  • Weak or reused passwords: one leaked password, tried automatically against thousands of logins.
  • Nulled (pirated) themes and plugins: the "free" version of a premium plugin often ships with a backdoor already built in.

Reading a list is one thing. Spotting the trap in the moment is another. Let's practice.

Quiz · 6 scenarios

Spot the trap

For each situation, decide: is it safe to go ahead, or is it a trap?

Scenario 1 of 6

An email from “DHL Express” says your parcel is on hold. It has an attachment:

📎 Shipping_Label_Invoice.pdf.exe

Answer: a trap. Look at the end of the file name: .exe means it’s a program, not a PDF. Double extensions are a classic trick, and real couriers don’t email you programs.

Scenario 2 of 6

While you’re reading a news site, a pop-up appears:

⚠️ “Your Chrome is out of date! Click here to install the critical update.”

Answer: a trap. Browsers update themselves, and real update prompts never come from a web page. This is a fake-update trojan, one of the most common ways malware spreads today.

Scenario 3 of 6

Your Windows PC shows a notification from the system itself, not from a web page:

🔄 “Updates are ready. Restart now or schedule a time.”

Answer: safe. This is the real thing. Updates from your operating system are exactly what keep malware out, so install them promptly.

Scenario 4 of 6

You want a premium WordPress page builder. A forum offers it for free:

💾 “PRO version, nulled, all features unlocked, no license needed!”

Answer: a trap. “Nulled” means pirated, and it very often ships with a backdoor that gives someone else admin access to your site. It’s a leading cause of website infections.

Scenario 5 of 6

Your bank texts you:

💬 “Unusual login detected. Verify your account within 24h: bit.ly/secure-bank-verify”

Answer: a trap. Urgency plus a shortened link is a phishing combo. Banks don’t ask you to verify through link shorteners. Open your banking app directly instead.

Scenario 6 of 6

In your own WordPress dashboard, under Plugins:

🔌 “There is a new version of WooCommerce available. Update now.”

Answer: safe. Updating plugins from inside your own dashboard (ideally after a backup) is one of the best things you can do. Outdated plugins are one of the most common ways websites get hacked.

Your result

0 / 6

These traps work on smart people every day. That’s exactly why attackers use them.

Nicely done. You’d catch most real-world traps.

Perfect score. Attackers will find you a tough target.

Two of the traps (nulled plugins and outdated software) target websites. If your site was ever exposed to either, it’s worth running the 60-second Google check below.

Signs Of Malware

Modern malware tries hard to stay invisible, because a noticed infection is a removed infection. Still, it almost always leaves fingerprints. Some are obvious (a ransom note is hard to miss). Most are subtle: things that are a bit off.

Be honest with the checker below; nobody's watching. It works for both computers and websites.

Self-check

Could it be infected?

Tick anything you’ve noticed recently. It’s a rough guide, not a diagnosis, but it will tell you whether to worry.

Nothing ticked yet

Tick the symptoms that apply and we’ll tell you how concerned to be.

Probably fine, but keep an eye on it

One mild symptom often has an innocent cause. Run your built-in security scan to be sure.

Worth a proper scan today

Several signs point the same way. Disconnect, then run a full scan with a reputable tool. The steps are in the removal section below.

Likely infected: act now

These are strong signs of malware. Follow the removal steps below and change your passwords from a different, clean device.

Nothing ticked yet

Tick anything you’ve noticed about your website.

Low risk for now

No strong infection signs, but outdated software is how most sites get hacked. Run the 60-second Google check below to be sure.

Possible infection: check it soon

These signs often mean SEO spam or a redirect hack. Confirm it with a free scan, and don’t wait: rankings can drop fast once Google notices.

Scan my site free ↓ See the cleanup service

High likelihood your site is hacked

This combination almost always means a compromised site. Confirm it in about 30 seconds with a free scan; every day it stays infected costs traffic.

Scan my site free ↓ See the cleanup service

When The Infected "Device" Is Your Website

Most malware guides stop at laptops and phones. Fair enough, that's where most people meet it. But if you run a business, there's a device you probably forget about: the server that runs your website. It's online around the clock, it's connected to your customers, and Google has spent years learning to trust it. To an attacker, that's prime real estate.

Website malware rarely announces itself. The owner is often the last to know, because many infections only show themselves to Google's crawler or to visitors arriving from search, never to a logged-in admin. Here's what it typically looks like:

  • SEO spam (pharma, casino, the "Japanese keyword hack"): thousands of junk pages appear under your domain. Your real pages slide in Google while the spam ranks on your reputation.
  • Malicious redirects: visitors from Google or on mobile get bounced to scam sites, but when you type the address, everything looks normal.
  • Skimmers: injected JavaScript quietly copies what customers type into checkout or contact forms and sends it elsewhere.
  • Backdoors and rogue admins: hidden files or extra admin users that let the attacker walk back in after you "fix" things. This is why sites get reinfected.

Here's what an injected backdoor often looks like, tucked at the top of an innocent-looking file such as wp-config.php or a theme's functions.php. The payload is left out; the point is the shape:

<?php
// Looks like noise. That's the point.
@eval·(base64_decode·($_POST['x'] ?? '…'));
/* ...the rest of the real file continues as normal... */

The dots (·) are ours: we "defang" the example so this page is not mistaken for an infected file by security scanners. In a real backdoor there are no dots, and the call runs whatever the attacker sends.

If you ever see eval, base64_decode, gzinflate or long walls of gibberish in a PHP file you didn't write, treat it as a red flag. But don't just delete that one line and call it a day. Where there's one backdoor, there are usually several.

The Consequences Arrive Fast

  • Google may show "This site may be hacked" under your listing, and Chrome can show a full-screen red warning that turns most visitors away.
  • Your rankings slide as spam pages compete with your real ones.
  • Your host may suspend the account to protect its other customers.
  • Email from your domain starts landing in spam folders.

Want to know whether your site is affected right now? Run a free scan below: it reads your public pages the way a visitor would and checks for malware code, SEO spam, suspicious redirects and blocklist warnings. Prefer to look for yourself first? The second tab builds the Google searches that reveal spam pages.

Free website check

Check your website for malware and SEO spam

  • ChecksKnown malware code
  • ChecksSEO spam and hidden links
  • ChecksSuspicious redirects
  • ChecksBlocklist warnings

The scan only reads public pages, like a visitor would. Nothing on your site is changed. Your report opens in a new tab, so you can keep reading. By scanning you agree to our Privacy Policy.

Enter your domain and we’ll build the exact Google searches site owners use to catch SEO spam. Nothing is sent to us; the links open Google directly.

How To Remove Malware

The process is different for a device and for a website, so let's take them one at a time.

On A Computer Or Phone

  1. Disconnect from the internet. This stops data leaving and stops the malware fetching more of itself.
  2. Run a reputable security scanner. Use the one built into your system (such as Microsoft Defender) or a well-known security product, and run a full scan, not a quick one. On Windows, a scan in Safe Mode catches things that hide during normal start-up.
  3. Update everything, then change your passwords from a clean device. Start with email and banking, and turn on two-factor authentication while you're there.
  4. Ransomware? Don't pay first. Disconnect, restore from a backup if you have one, and report it to your national cyber security agency (CISA in the US, the NCSC in the UK, the ACSC in Australia). Paying doesn't guarantee you get your files back.

On A Website

Website cleanup is where DIY attempts most often go wrong. The usual story: someone deletes the obvious bad file, the site looks fine, and a week later the spam is back. That's because a proper cleanup has more moving parts:

  1. Take a full backup of the infected site. Yes, infected. You want evidence and a fallback before you touch anything.
  2. Scan the files and the database. Spam links and redirect scripts love hiding in posts, widgets and the wp_options table, not just in PHP files.
  3. Replace core files, remove injected code and hunt down every backdoor, including rogue admin users, scheduled tasks and files disguised as images.
  4. Close the door. Update or replace the vulnerable plugin, theme or PHP version that let the attacker in. Skip this and you're just cleaning up for the next visit.
  5. Reset every credential: WordPress admins, hosting, SFTP, database and API keys.
  6. Clean up Google. Remove spam URLs from the index and, if Google flagged the site, request a review under Security issues in Google Search Console. Our guide to what to check in Search Console after a hack walks through it.

Real talk: when DIY is a bad idea. If you're comfortable with SFTP, databases and reading PHP, you can absolutely do this yourself. But if the site makes you money, has been reinfected before, or Google has already flagged it, every extra day costs traffic and trust. That's the moment to hand it to someone who does this every week.

How To Prevent Malware

Good news: prevention is mostly habits, not expensive software. Tick off what you already do and see where you stand.

Scorecard

Your malware-resistance score

Tick each habit you already have. Your answers are saved in this browser only.

Let’s see where you are

Wide open: a few habits would change a lot

Decent, with some gaps

Strong. Nearly there

Excellent. You’re a hard target

Several website habits are missing, and that’s how most sites get hacked. A website audit can find the weak points.

Everyone

If you run a website

A Very Short History Of Malware

Malware is older than the web. It started as a thought experiment, became a prank, and turned into an industry.

Timeline

From theory to big business

Tap through the milestones.

1949 · The idea

Mathematician John von Neumann lectures on self-reproducing automata: programs that could copy themselves. Pure theory, decades before anyone wrote one.

1971 · Creeper

An experimental program hops between ARPANET computers, printing “I’m the creeper, catch me if you can!” A follow-up called Reaper was written to delete it, arguably the first antivirus.

1986 · Brain

Often called the first PC virus in the wild, Brain spread on floppy disks and infected the boot sector of IBM PCs.

1988 · The Morris worm

One of the first worms to spread across the internet. It slowed down a large share of the machines connected at the time and led to the first conviction under the US computer fraud law.

2000 · ILOVEYOU

An email “love letter” attachment that overwrote files and mailed itself to everyone in the victim’s address book. Social engineering went global.

2010 · Stuxnet

Highly sophisticated malware that targeted industrial control systems, showing that malware could cause physical damage.

2017 · WannaCry

Ransomware with worm-like spread hit hospitals, factories and businesses worldwide by exploiting unpatched Windows systems.

2020s · Malware as a business

Ransomware gangs run like companies, info-stealers are sold by subscription, and automated bots scan huge numbers of websites every day looking for one outdated plugin.

Wrapping Up

Malware sounds technical, but the pattern is simple: someone wants your money, your data, your resources or your reputation, and they usually get in through a click, an old piece of software or a reused password. Keep things updated, think twice before you run anything, and keep a backup you can actually restore.

If the infected device is your website, act quickly. Spam pages and browser warnings cost more traffic every day they stay up.

Sources

Frequently Asked Questions

What is malware in simple terms?

Malware is any software written to harm you, spy on you or use your computer, phone or website without your permission. Viruses, ransomware, spyware and trojans are all types of malware.

Is a virus the same as malware?

No. A virus is one type of malware. Malware is the umbrella term; a virus is specifically code that attaches itself to other files and spreads when those files are run.

Can Macs, iPhones and Android phones get malware?

Yes, though less often than Windows PCs. Macs mostly get adware and info-stealers from fake downloads. Android malware usually arrives through apps installed from outside the Play Store. iPhones are the hardest to infect, so the bigger risk there is phishing that steals your Apple Account details.

Can a website get malware?

Yes. Websites, especially WordPress sites with outdated plugins, themes or PHP, are common targets. Website malware often injects spam pages, redirects visitors to scam sites or steals form data, and Google may label the site as hacked.

Will deleting the infected file remove malware from my website?

Usually not. Website infections tend to leave backdoors, rogue admin users and database injections behind, so the site gets reinfected within days. A proper cleanup removes every piece, closes the hole that let the attacker in, and resets credentials.

How do I remove the "This site may be hacked" warning from Google?

Clean the site completely first, then open Google Search Console, go to Security issues and request a review. Google removes the label once it confirms the site is clean.