Sub topic 11
The malware removal process, step by step
This chapter assumes you know the malware types from earlier chapters (viruses, worms, trojans, ransomware, spyware) and that you can use Windows Defender Antivirus and basic Windows settings. The A+ exam tests the CompTIA malware removal procedure as an ordered list, so the order matters as much as the steps.
The seven steps
- 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 use removal tools.
- Schedule scans and run updates.
- Enable System Restore and create a restore point in Windows.
- Educate the end user.
Why each step comes where it does
Investigate. Confirm that malware is the cause. Typical symptoms are pop-ups, a redirected browser, slow performance, disabled antivirus, renamed files, and unexpected network traffic. A slow PC with a failing drive is not an infection, so check before you act.
Quarantine. Unplug the network cable or turn off Wi-Fi so the malware cannot spread or contact its controller. Isolate removable media too. Do this before cleaning, because a connected worm can reinfect a system you have just cleaned.
Disable System Restore. Malware can hide inside old restore points. If you leave the feature on, a scan may skip those files, and the infection can return when someone restores to an earlier point. Turning it off also deletes the existing restore points.
Remediate. Update the anti-malware signatures and engine first. You may need to download updates on a clean machine and carry them over on removable media, because the infected system is quarantined. Then scan. If the malware resists, boot into Safe Mode or run a bootable rescue scan from outside Windows. You can start a scan from PowerShell:
Update-MpSignature
Start-MpScan -ScanType FullScanUse Start-MpScan -ScanType QuickScan for a faster first pass. For a rootkit or boot sector virus, an offline scan with Start-MpWDOScan restarts the machine and scans before Windows loads.
Schedule scans and run updates. Set recurring scans and turn on automatic updates. Patch the operating system and applications, since the malware may have entered through a known vulnerability.
Enable System Restore. Turn the feature back on once the system is clean, then create a new restore point. That point is a known-good baseline.
Educate the user. Explain how the infection likely happened, such as a phishing link or a pirated download. Teach what to avoid. This step reduces repeat incidents.
Common mistakes
- Scanning before quarantining, which lets the malware spread.
- Leaving System Restore on during cleanup.
- Skipping the signature update, so the scanner misses newer variants.
- Re-enabling System Restore before the system is verified clean, which saves infected files into a new restore point.
Exercise
A technician finds a workstation with pop-ups and a disabled antivirus. The symptoms are confirmed as malware. What are the next two steps, and why do they come before scanning?
Show answer
First quarantine the system by disconnecting it from the network, so the malware cannot spread. Then disable System Restore, so the malware cannot hide in old restore points and the scanner can clean every file. Only after that do you update the anti-malware software and scan.
Exercise
Why must you create a new restore point after the system is clean, and not before remediation?
Show answer
A restore point made before remediation would capture infected files. Restoring to it later would bring the malware back. A point made after verifying the system is clean is a safe baseline.