Sub topic 11
The malware removal process, step by step
This chapter assumes you know the common malware types (viruses, worms, trojans, ransomware, spyware), the basics of Windows Defender Antivirus, and how to use Windows tools such as Task Manager and the command prompt. CompTIA A+ Core 2 tests a seven-step malware removal procedure. The exam asks you to put the steps in order and to pick the correct next step in a scenario.
The seven steps
The steps always run in this order:
- Investigate and verify malware symptoms.
- Quarantine the infected systems.
- Disable System Restore in Windows.
- Remediate the infected systems: update the anti-malware software, scan, and remove.
- Schedule scans and run updates.
- Enable System Restore and create a restore point in Windows.
- Educate the end user.
The order matters because each step protects the next. You must contain the infection before you clean it. You must also clear old restore points before you create a clean one.
Step 1: Investigate and verify symptoms
Confirm that the problem is malware before you act. Common symptoms include:
- Pop-ups that appear even when no browser is open.
- A browser home page or search engine that changed on its own.
- Slow performance or high CPU use from an unknown process.
- Antivirus software that is disabled and will not turn back on.
- Files that are renamed, encrypted, or missing.
- Contacts who receive messages you did not send.
- Certificate warnings on sites that were fine before.
Check Task Manager, the installed programs list, and the browser extensions list. Ask the user what changed. A recent download, email attachment, or USB drive often points to the source. Do not remove anything yet. Some symptoms, such as slowness, also have non-malware causes like a failing drive or low memory.
Step 2: Quarantine the infected system
Quarantine means isolating the machine so the malware cannot spread or send data out. Disconnect the network cable and turn off Wi-Fi. Disconnect removable media too. A worm can move across a network in minutes, and ransomware can encrypt mapped network shares.
Quarantining the system is a different action from the antivirus feature that also uses the word "quarantine". There, a detected file is moved to a safe holding area. In this step you isolate the whole computer.
Step 3: Disable System Restore
Windows System Restore keeps snapshots of system files and settings. Malware can hide inside those snapshots. If you clean the system but leave the old restore points, a later restore could bring the infection back. Anti-malware tools usually cannot clean files inside restore points, so you turn the feature off, which deletes the existing points.
In Windows, open System Properties, go to the System Protection tab, select the drive, choose Configure, and select Disable system protection. Note that this removes the user's older restore points. That cost is accepted because those points may be infected.
Step 4: Remediate the infected system
Remediation has three parts: update, scan, and remove.
- Update the anti-malware software. Signature files (definitions) are the data the scanner uses to recognize known malware. Old signatures miss new threats. Because the system is quarantined, download updates on a clean computer and transfer them by a scanned USB drive, or briefly connect under controlled conditions.
- Scan and remove. Run a full scan, not only a quick scan. A quick scan checks the most common locations. A full scan checks every file.
- Use stronger methods when needed. Some malware defends itself while Windows is running. A rootkit is malware that hides deep in the operating system, so normal scans may not see it. In that case, boot into Safe Mode, which loads only essential drivers and services and often stops the malware from loading. Better still, use a bootable rescue disk or a pre-installation environment (WinPE-based) scanner. This scans the system while the infected operating system is not running.
You can start a Defender scan from an elevated PowerShell session:
Start-MpScan -ScanType FullScanFor an offline scan that runs before Windows loads, use:
Start-MpWDOScanThat command restarts the computer and runs Microsoft Defender Offline. Save the user's work first.
If the scan cannot remove the infection, or the system is badly damaged, you may need to back up the user's data (scanning it first) and reinstall the operating system from known-good media. For ransomware, restoring from a clean backup is often the reliable recovery path. Do not assume that paying the ransom restores the files.
Step 5: Schedule scans and run updates
Once the system is clean, set it up to stay that way:
- Schedule regular scans, for example a nightly quick scan and a weekly full scan.
- Turn on automatic updates for signatures.
- Install pending operating system and application patches. Many infections use known flaws that a patch would have closed.
This links back to the earlier chapter on patching. A system that is clean but unpatched can be reinfected through the same hole.
Step 6: Enable System Restore and create a restore point
Now that the system is clean, turn System Protection back on. Then create a new restore point. This gives you a known-good snapshot to return to later. The exam often tests the pairing: disable System Restore in step 3, and enable it in step 6.
Step 7: Educate the end user
Most infections begin with a user action. Teach the user how the infection likely happened and how to avoid it. Cover:
- Recognizing phishing emails and suspicious attachments.
- Downloading software only from trusted sources.
- Not plugging in unknown USB drives.
- Reporting odd behavior early instead of ignoring it.
Education is the last step because it works best after the problem is fixed and the user can see the cause.
Worked scenario
A user reports that their laptop shows pop-ups, the browser home page changed, and antivirus will not open.
- You confirm the symptoms in Task Manager and the browser extensions list (investigate).
- You disconnect the Ethernet cable and turn off Wi-Fi (quarantine).
- You disable System Protection on C: (disable System Restore).
- On a clean computer you download the latest definitions. You boot the laptop into Safe Mode and run a full scan. The scanner removes a trojan and a malicious browser extension (remediate).
- You schedule a weekly full scan and install pending Windows updates (schedule scans and updates).
- You re-enable System Protection and create a restore point.
- You show the user how to spot the fake download page that started the problem.
Common mistakes and edge cases
| Mistake | Why it is a problem |
|---|---|
| Running a scan before quarantining | The malware can spread or send data during the scan. |
| Leaving System Restore on during cleaning | Infected restore points can bring the malware back. |
| Using only a quick scan | It can miss malware outside common locations. |
| Forgetting to re-enable System Restore | The user loses their rollback protection. |
| Skipping user education | The same behavior will cause reinfection. |
| Scanning with outdated signatures | New threats go undetected. |
A few edge cases deserve attention:
- Antivirus disabled by malware. Use Safe Mode or an offline rescue scanner, because the installed product may not start.
- Boot sector infections. These load before Windows, so only an offline or bootable scan reliably finds them.
- Corporate environments. Follow the incident response policy. You may need to report the incident, preserve evidence, and escalate before you clean anything.
- Encrypted files from ransomware. Cleaning the malware does not decrypt the files. Restore them from a backup made before the infection.
Exercise
A technician has confirmed that a workstation is infected with a worm. The workstation is still connected to the office network. Which step comes next, and what should the technician do?
Show answer
Quarantine the system. The technician should disconnect the network cable and disable Wi-Fi so the worm cannot spread. Disabling System Restore and scanning come after that.
Exercise
Put these actions in the correct order: (a) create a restore point, (b) update anti-malware signatures and scan, (c) disable System Restore, (d) educate the user, (e) investigate symptoms, (f) quarantine the system, (g) schedule scans and updates.
Show answer
e, f, c, b, g, a, d. That is investigate, quarantine, disable System Restore, remediate (update and scan), schedule scans and updates, enable System Restore and create a restore point, then educate the user.
Exercise
A full scan in normal Windows finds nothing, but the user's antivirus keeps turning itself off and the symptoms continue. What should the technician try, and why?
Show answer
Boot into Safe Mode or use an offline or bootable rescue scanner such as Microsoft Defender Offline. Malware such as a rootkit can hide while Windows runs normally, and these methods scan without the infected operating system fully loaded.