Skip to content
Skills / Cybersecurity / Security Fundamentals for IT Support / Removing and Preventing Malware
Cybersecurity

Removing and Preventing Malware

20 min read Training Guide

Recognize the signs of malware, contain an infected computer or phone, clean it or rebuild it by the right method, and set up the layers that keep it from coming back.

Table of contents

Malware is any software written to harm a device or its user: to steal passwords, lock files for ransom, spy, show ads or use the computer for someone else's purposes. As a support technician, you will see it as a ticket that says "my computer is acting weird," an alert from the company's security software, or a user who clicked something and knows it. Your job is to confirm it, keep it from spreading, remove it or rebuild the device, and close the gap it came through. Just as important is knowing when a malware ticket is really a security incident that belongs to the security team.

Steps here were checked against Microsoft Support for Windows 11, version 26H2, and Apple Support for macOS 27 (Golden Gate) and iOS 27. Menus move between releases, so if a click path differs, look for the same setting nearby. Everything here assumes you are authorized to work on the device and are following your employer's security policy, which wins wherever it differs.

What You Will Be Able to Do

  • Match common symptoms to the kind of malware that likely causes them.
  • Decide whether a case is a routine cleanup or an incident to escalate.
  • Contain an infected device without destroying evidence.
  • Remove malware from Windows, macOS and phones in a set order, and know when to rebuild instead.
  • Set up the prevention layers that stop many infections.

Kinds of Malware and Their Signs

Type What it does Signs you may see
Ransomware Encrypts files and demands payment Files that will not open, new file extensions, a ransom note
Infostealer or spyware Steals saved passwords, cookies and keystrokes Often none, until accounts are taken over
Trojan Poses as a useful program, then opens a back door A new program the user does not remember installing
Worm Spreads itself across the network Many machines with the same problem at once
Adware and unwanted programs Shows ads, changes the browser Pop-ups, a new toolbar, a changed home page or search engine
Browser hijacker Takes over browser settings or notifications Search results through an odd site, constant "virus found" notices
Cryptominer Uses the processor to mine cryptocurrency Fans running hard, slowness, high CPU use with nothing open
Rootkit Hides itself deep in the system Security tools that will not run or update, files that come back

Fake "your PC is infected, call this number" pop-ups are scareware. Usually they are a web page, not an infection, but they become a real problem if the user calls and lets the caller connect.

Not every slow or crashing computer has malware. Rule out the ordinary causes, such as low disk space, a failing drive or too many startup programs, before you call it an infection. The reverse is also true: infostealers try to show no symptoms at all.

Cleanup or Incident?

Adware and many single-device infections are routine work. Some are not. Before you start removing anything, check this table and your employer's policy.

What you see Treat it as
Adware, a browser hijacker, or a blocked threat that the security tool already removed Routine. Clean it, document it
Ransom note, files suddenly encrypted, or many devices affected Incident. Stop, isolate, escalate
Signs of an infostealer, or the user typed passwords on the device after infection Incident. Accounts may be compromised
A remote-control tool the user let a stranger install Incident
Malware on a server, a payroll or finance machine, or an admin's computer Incident
New admin accounts, disabled security software, or logs cleared Incident

Warning: For anything on the incident side, do not scan, clean, delete or reboot. Disconnect the device from the network, leave it powered on, and report it through your employer's incident process. Cleaning up first can wipe out the evidence the security team needs.

When in doubt, ask. Escalating a case that turns out to be routine costs a few minutes. Quietly cleaning a case that was an intrusion can cost far more.

Removing Malware From a Windows PC

Use this order for a routine case, and log each step in the ticket as you go.

  1. Confirm and record the symptoms. Ask the user what they saw, when it started, and what they clicked, opened or installed just before. Look at the security tool's alerts. In Windows Security, open Protection history to see what Microsoft Defender Antivirus has found and done.
  2. Quarantine the device. Unplug the network cable and turn off Wi-Fi so it cannot spread or reach its controller. Leave it powered on. If your company's endpoint tool can isolate the device from its console, the security team may do that instead.
  3. Do not back up the whole system. A full image of an infected machine saves the infection with it. If the user needs files, copy only their documents, and scan the copies before they go anywhere else.
  4. Turn off System Restore, if your procedure calls for it. Restore points can hold infected files and bring the malware back after you clean it. On Windows this setting is called System Protection.
  5. Update and scan. Update the security tool's definitions, then run a full scan. If the malware blocks updates, download them on a clean computer and bring them over on a scanned USB drive, as your policy allows.
  6. Run an offline scan. Some malware hides while Windows is running. In Windows Security, go to Virus & threat protection, then Scan options, choose Microsoft Defender Antivirus (offline scan), and start the scan. The PC restarts and scans before Windows loads, then restarts on its own. Save the user's open work first. Companies using a different endpoint product will have their own equivalent, and Safe Mode is another way to scan with less running.
  7. Remove what the scan leaves behind. Uninstall programs the user did not ask for. Check the Startup apps list in Task Manager (Ctrl+Shift+Esc), remove browser extensions nobody recognizes, revoke notification permission from sites pushing fake alerts, and reset the browser's search engine and home page.
  8. Scan again until it comes back clean. One clean scan after symptoms are gone is the minimum.
  9. Turn System Restore back on and create a fresh restore point, if you turned it off.
  10. Patch and harden. Install pending Windows and app updates, confirm real-time protection and tamper protection are on, and close the way it got in.
  11. Reset passwords if they could have been seen. If the user typed or saved passwords while the device was infected, follow your process to have them changed from a clean device.
  12. Teach and document. Tell the user in plain words what happened and what to watch for. Record the malware name, how it arrived, every step you took and the result.

If symptoms return after a careful cleanup, stop cleaning. The device needs a rebuild.

When to Rebuild Instead of Clean

Rebuilding means wiping the drive and reinstalling the operating system from a known-good company image, then restoring the user's data. It takes longer than a scan, but it is the only result you can fully trust. Many employers require a rebuild for any confirmed infection beyond adware.

Rebuild when:

  • The malware is a rootkit, a remote-access trojan or ransomware.
  • It came back after a cleanup.
  • Security tools were disabled or would not run.
  • The machine handles sensitive work, such as payroll, patient records or admin accounts.
  • Your policy says so.

Before you wipe, confirm a usable backup of the user's data exists, and restore only files backed up before the infection began. Restoring from an infected backup puts the malware right back.

Fake Tech Support Pop-Ups

A full-screen page shows a warning, a phone number and sometimes a loud alarm.

  1. Tell the user not to call the number or click anything on the page.
  2. Close the browser. If it will not close, open Task Manager with Ctrl+Shift+Esc, select the browser and choose End task.
  3. When you reopen the browser, do not restore the last session, or the page comes back.
  4. Remove the site's notification permission and any extension that arrived with it.
  5. Ask whether the user called the number. If they called, let someone connect, installed anything or paid, it is no longer a pop-up. It is an incident.

Malware on a Mac

macOS has built-in protection. Gatekeeper checks apps before they open, and XProtect detects and removes known malware on its own, updating in the background. Malware on Macs still happens, often as adware and fake apps that users approve themselves.

  1. Disconnect from the network and record what the user saw, as on Windows.
  2. Install pending macOS updates, which also update the built-in protections.
  3. Run the company's endpoint security tool if one is installed.
  4. Look in Applications for programs the user did not knowingly install, and remove them.
  5. Open System Settings, then General, then Login Items & Extensions, and remove unknown items that open at login.
  6. In System Settings, then General, then Device Management, look for configuration profiles. Adware sometimes installs one to control the browser. Do not remove a profile your company installed, since that can strip the Mac's security settings. If you are unsure which is which, ask before you remove anything.
  7. Remove unknown browser extensions and reset the home page and search engine.

Phones and Tablets

Phone malware usually arrives as an app, a malicious profile or a link.

  • Remove apps the user does not recognize, especially ones with accessibility or device administrator access on Android.
  • Check profiles on an iPhone in Settings, then General, then VPN & Device Management. Leave the company's management profile alone.
  • Install system updates. On Android, Google Play Protect scans apps, so confirm it is on.
  • A factory reset is the rebuild for a phone. Back up only the user's photos and data, not apps from unknown sources, and follow your company's process for re-enrolling it in management.

Preventing Infection

No single tool stops everything. Prevention works in layers, so one failure does not become an infection.

Layer What it stops
Prompt updates for the OS, browser and apps Malware that uses known security holes
Endpoint protection with tamper protection on Known malware, and malware turning off the protection
Standard user accounts for daily work Malware that needs admin rights to install
Office macros blocked from internet files A classic way to deliver malware in documents
Email and web filtering Many malicious attachments and links before anyone clicks
Application control Programs that are not on the approved list
Backups kept offline or locked from changes Ransomware destroying the only copy of the data
A report button and trained users Phishing caught before it spreads

Microsoft 365 apps on Windows block macros in files that come from the internet by default and show a Security Risk banner. If a user asks you to unblock one, check with whoever sent the file through a known channel, and follow your policy. That banner is there because macro documents have delivered so much malware.

Common Mistakes

Mistake What it costs
Cleaning ransomware or a hacked admin PC yourself Destroys evidence, misses the bigger intrusion
Leaving the device on the network during cleanup It keeps spreading or sending data out
Restoring from a backup made after infection The malware comes right back
Calling one clean scan "fixed" on a rootkit It hides, then returns
Giving the user admin rights so an app will install Malware gets the same rights
Not resetting passwords after an infostealer The attacker keeps the accounts
Skipping the "how did it get in" question The same hole lets in the next one

Check Your Understanding

1. A user's browser opens a strange search page, and a new toolbar appeared after she installed a free PDF converter. Nothing else is wrong. Cleanup or incident?

Usually routine cleanup. Disconnect the PC from the network, uninstall the converter and the toolbar, remove unknown extensions, reset the browser, then run updated and offline scans until clean. Document how it arrived, and help her get approved software next time.

2. The security tool flags a password-stealing trojan on the payroll clerk's computer. You are about to start a scan. What should you do instead?

Stop. Disconnect the computer from the network, leave it on, and report it through the incident process. It is an infostealer on a finance machine, so accounts may already be compromised and the security team needs the evidence. Expect a rebuild and password resets once they direct it.

3. You cleaned a PC, but two days later the same pop-ups are back. What next?

Stop cleaning and rebuild it. Malware that returns after a careful cleanup is hiding where scans cannot reach it. Confirm a clean backup of the user's files from before the infection, wipe the drive, and reinstall from the company image.

4. A user called the number on a "virus warning" page and let the caller connect to his PC. He hung up after they asked for a card number. What do you do?

Treat it as an incident. Disconnect the PC from the network, leave it on, and report it. The caller had remote access and may have installed tools or taken data. Have the user change his passwords from a different, trusted device as the security team directs.

Key Takeaways

  • Match the symptom to the likely malware, but rule out ordinary causes of slowness first.
  • Ransomware, infostealers, remote access by a stranger and infections on sensitive machines are incidents. Isolate, leave it on, and escalate.
  • For routine cases, work in order: confirm, quarantine, update, scan, offline scan, remove leftovers, rescan, patch, teach and document.
  • Rebuild when malware returns, hides from tools or touches sensitive work, and restore only from backups made before the infection.
  • Prevention is layered: updates, endpoint protection, standard accounts, blocked macros, filtering and offline backups.