1. Blog/
  2. Cybersecurity and Internet Protection/
  3. What Is Spyware? Types, Signs and How to Remove It

What Is Spyware? Types, Signs and How to Remove It

Quick answer: Spyware is a type of malware that installs on your device without your knowledge, watches what you do and sends that data to someone else. It can record passwords, messages, browsing, location and even your camera or microphone.

Spyware runs quietly in the background, so most people don’t notice it. It can infect computers and phones alike, and the fix is an up-to-date antivirus scan, not a VPN.

What is spyware

How spyware works

Most spyware follows the same 4 stages, whether it’s a cheap keylogger or advanced state spyware:

  1. Infiltration. It gets onto the device through a malicious link, a fake app, a bundled installer, a software flaw or someone with physical access.
  2. Persistence. It makes sure it survives a restart, for example by adding itself to startup programs, changing system settings or hiding as a system process. Some variants install a rootkit to stay invisible.
  3. Collection. It records what it was built for: keystrokes, screenshots, saved passwords, browser cookies, messages, location or microphone audio.
  4. Exfiltration. It sends the data to a command-and-control server run by the attacker, often in small encrypted batches so the traffic looks normal.

Because spyware is designed to stay quiet, it rarely crashes your device or shows warnings. Many infections go unnoticed for months, which gives attackers time to collect more data and use stolen logins.

Why attackers use spyware

  • Money: stolen bank logins, card numbers and crypto wallet keys can be used or sold.
  • Account takeover: saved passwords and session cookies give access to email, social media and work accounts.
  • Advertising and data brokering: some adware and tracking tools collect browsing habits to sell.
  • Control and stalking: stalkerware lets one person watch another’s messages and location.
  • Espionage: companies and governments are targeted for trade secrets and intelligence.

How spyware gets on your device, and what it collects

How you get spyware:

  • Phishing: a link or attachment in an email, text or chat message installs it (how to spot phishing scams).
  • Bundleware: it comes hidden inside free software, cracked apps or fake updates.
  • Drive-by downloads: a compromised or malicious website downloads it without a click.
  • Trojans: an app that looks useful, like a flashlight or PDF reader, carries spyware inside.
  • Fake or sideloaded apps: apps installed from outside the official stores skip their security checks (the risks of installing APKs).
  • Physical access: someone with your unlocked phone installs a monitoring app.
  • Zero-day exploits: advanced spyware uses unknown software flaws, sometimes with no click at all.

What it collects:

  • Keystrokes, passwords and saved logins
  • Browser history and session cookies, which can let attackers skip two-factor authentication
  • Messages, emails, photos and contacts
  • Screenshots, camera and microphone recordings
  • GPS location
  • Banking and card details

The spyware then sends this data to the attacker’s server, often in small, encrypted bursts that look like normal traffic.

Types of spyware

TypeWhat it doesExample
KeyloggerRecords everything you type, including passwordsHardware USB keyloggers, software keyloggers hidden in apps
InfostealerGrabs saved passwords, cookies, crypto wallets and files in one sweepInfostealers sold as malware-as-a-service
Adware with trackingShows ads and tracks your browsing to target themBrowser hijackers that change your homepage
Trojan spywareHides inside a legitimate-looking programEmotet, which started as a banking Trojan
RootkitHides spyware deep in the operating system so scans miss itKernel-level rootkits
System monitorLogs apps, websites, chats and screenshotsCommercial monitoring software
StalkerwarePhone-monitoring app installed by someone you knowApps sold for “parental” or “partner” monitoring
Commercial (state) spywareAdvanced phone spyware sold to governments, often zero-clickPegasus by NSO Group

In 2021, researchers at Citizen Lab found that Pegasus infected iPhones through a zero-click iMessage flaw called FORCEDENTRY. Apple patched it in iOS 14.8 (Citizen Lab).

Spyware vs other malware

Spyware is one type of malware. The difference is in what each type is built to do:

Malware typeMain goalHow it spreadsDo you notice it?
SpywareWatch you and steal dataPhishing, fake apps, bundles, exploitsUsually not
VirusCopy itself into other filesInfected files and programsSometimes, through damage
WormSpread across networks by itselfNetwork flaws, no user actionOften, through slowdowns
TrojanGet in by looking harmless, then deliver a payloadFake apps and downloadsNot at first
RansomwareLock your files and demand paymentPhishing, exposed servicesYes, immediately
AdwareShow you adsBundled free softwareYes, through pop-ups

The types often combine. A Trojan can carry spyware, and some ransomware gangs use infostealers first to steal data before they encrypt it.

A short history of spyware

The word “spyware” first appeared in the mid-1990s and became common around 2000, when free programs started shipping with hidden tracking tools. Early spyware mostly lived in browser toolbars and pop-up adware on Windows PCs.

Since then, spyware has moved from PCs to phones, from browser toolbars to infostealers sold as a service, and from mass infections to targeted tools like Pegasus.

Who can be attacked by spyware?

Anyone with a computer or phone. Who gets targeted depends on the type:

  • Everyday users are hit by mass spyware: infostealers, adware and keyloggers spread through phishing and fake downloads. The goal is money: passwords, bank details, crypto.
  • Partners and family members are the targets of stalkerware, installed by someone with access to the phone.
  • Businesses and employees face spyware aimed at company logins, trade secrets and customer data.
  • Journalists, activists, lawyers and politicians are the usual targets of commercial spyware like Pegasus.

Most people won’t face Pegasus-level attacks. The spyware you’re likely to meet arrives through a link you click or an app you install.

Signs of spyware

None of these proves an infection alone, but several together are worth a scan.

On a computer:

  • It’s slower than usual, or the fan runs when you’re not doing anything.
  • Your browser homepage or search engine changed by itself.
  • New toolbars, extensions or programs you didn’t install.
  • More pop-up ads than normal, even on sites without them.
  • Your antivirus was turned off and won’t turn back on.
  • Logins to your accounts from places you’ve never been.

On a phone:

  • The battery drains faster and the phone runs warm when idle.
  • Mobile data use jumps without a reason.
  • Apps you don’t recognize, or apps with names like “System Service” or “Device Health”.
  • On iPhone: an unknown profile in Settings > General > VPN & Device Management.
  • On Android: unknown apps under Device admin apps or Accessibility, which spyware uses to read your screen.
  • Someone knows things about your messages or location that they shouldn’t.

How to check your phone for spyware

iPhone

  1. Check for unknown profiles. Open Settings > General > VPN & Device Management. A profile you didn’t add, especially one that isn’t from your school or employer, can give someone control over your iPhone. Tap it and remove it.
  2. Review your apps. Swipe to the App Library and look for apps you don’t remember installing.
  3. Check your Apple Account. In Settings, tap your name and look at the device list. Remove any device you don’t recognize, then change your Apple Account password.
  4. Look for a jailbreak. Apps like Cydia or Sileo mean the phone was jailbroken, which makes spyware much easier to install.
  5. Update iOS. Settings > General > Software Update. Updates patch the flaws commercial spyware relies on.

Apple sends threat notifications to users it believes were targeted by state-sponsored spyware. If you get one, follow its instructions and consider turning on Lockdown Mode.

Android

  1. Run Google Play Protect. Open the Play Store, tap your profile picture > Play Protect > Scan.
  2. Check device admin apps. In Settings, search for “device admin” and turn off any app you don’t recognize.
  3. Check accessibility services. Search Settings for “accessibility” and look for unknown apps with access. Spyware uses this to read the screen.
  4. Allow installs only from the Play Store. Search Settings for “install unknown apps” and turn it off for every app.
  5. Review app permissions. Check which apps can use the camera, microphone, location and SMS.

Menu names vary by phone maker. If you’re not sure, use your phone’s built-in Settings search.

How to remove spyware

  1. Disconnect from the internet so the spyware can’t send more data.
  2. Run a full antivirus scan. On Windows, Microsoft Defender is built in; use Offline scan for stubborn threats (is Microsoft Defender good enough?). On Android, run Google Play Protect, then a reputable antivirus app.
  3. Remove what you find, plus any unknown apps, browser extensions and iPhone profiles.
  4. Update everything: the operating system, browser and apps. Updates close the holes spyware used.
  5. Change your passwords from a clean device, starting with email and banking, and turn on two-factor authentication.
  6. Sign out of all sessions in your email and social accounts to cut off stolen session cookies.
  7. Factory reset if the problem stays. Back up your photos and files first, but not apps or settings that might carry the spyware back.
  8. Watch your bank statements and tell your bank if card details may be stolen.

If you think a partner or family member installed stalkerware, removing it can alert them. Plan your safety first and consider contacting a support organization before you delete it. The US Federal Trade Commission has practical advice on stalkerware.

How to prevent spyware

  • Install apps only from official stores, and check reviews and permissions.
  • Keep your operating system, browser and apps updated automatically.
  • Use antivirus software with real-time protection.
  • Don’t open links or attachments from unknown senders.
  • Skip cracked software and “free” versions of paid apps.
  • Use a password manager and two-factor authentication.
  • Lock your phone with a PIN or biometrics, and don’t leave it unlocked with others.
  • If you’re at high risk, turn on Lockdown Mode on iPhone (iOS 16 and later).

Can a VPN protect you from spyware? Not directly. A VPN like Planet VPN encrypts your traffic and hides your IP address, so no one on public Wi-Fi can snoop on what you send. But spyware already on your device sees your data before the VPN encrypts it, and a VPN doesn’t detect or remove spyware. Use a VPN for network privacy and antivirus for spyware (VPN vs antivirus).

How businesses can protect against spyware

Spyware on one employee’s laptop can expose company email, cloud accounts and customer data. The basics for a small team:

  • Use endpoint protection with real-time scanning on every company device.
  • Turn on multi-factor authentication everywhere, preferably with security keys or app-based codes, and set short session lifetimes for sensitive tools.
  • Patch operating systems, browsers and VPN gateways quickly.
  • Give employees only the access they need (least privilege).
  • Train staff to spot phishing, fake invoices and fake software updates.
  • Watch for unusual logins and data leaving the network.

Is spyware legal?

It depends on who installs it and with whose consent. Installing spyware on someone else’s device to read their messages or track them without permission is illegal in many countries, under computer misuse, wiretapping and stalking laws.

Some monitoring is legal: parents managing a young child’s phone, or employers monitoring company-owned devices with a clear policy. The rules differ by country, so check local law. If you think someone is monitoring you, the advice on stalkerware above applies.

FAQ

Is spyware a virus?

Not exactly. A virus copies itself into other files to spread, while spyware hides and watches what you do. Both are types of malware, people often call both “viruses”, and antivirus tools detect and remove both.

What does spyware do to your computer?

It records your activity, such as keystrokes, passwords, browsing and screenshots, and sends it to someone else. It can also slow the computer down, change browser settings and turn off security software.

Can spyware infect my phone?

Yes. Android phones and iPhones can both get spyware. It usually arrives through malicious apps, phishing links or someone installing it while holding your unlocked phone. Advanced commercial spyware can also use zero-click flaws.

What’s the difference between spyware and adware?

Adware’s main goal is to show you ads. Spyware’s main goal is to collect your data. Some adware also tracks your browsing to target ads, which is where the two overlap.

Can spyware get past two-factor authentication?

Yes. Infostealers can copy the session cookies that keep you logged in (how cookies work). An attacker who loads those cookies can use your account without entering a password or a second factor. Signing out of all sessions cancels them.

Does spyware work without the internet?

It can keep recording while you’re offline and store the data on the device. It needs an internet connection to send that data to the attacker, so it uploads everything once you reconnect.

Can a VPN remove spyware?

No. A VPN encrypts your connection and hides your IP address, but it doesn’t scan your device. To remove spyware, use antivirus software, and factory reset the device if the infection stays.

Can someone install spyware on my phone remotely?

Usually they need you to click a link or install an app, or they need physical access to the phone. Zero-click remote infections exist, but they cost a lot and are used against a small number of high-value targets.

Does a factory reset remove spyware?

In almost all cases, yes. A factory reset erases apps and settings, including spyware. Don’t restore a full backup from the infected period, or you may bring the spyware back.

Can spyware turn on my camera or microphone?

Some spyware can. On recent iPhones and Android phones, a green or orange dot shows when the camera or microphone is in use, so watch for it when you aren’t using an app that needs them.