Sub topic 10
The malware removal steps in order
This chapter assumes you can use Windows Settings, Control Panel and Safe Mode, and that you know what antivirus software does. The A+ Core 2 exam tests the CompTIA malware removal sequence. Questions usually describe a technician partway through a cleanup and ask what to do next, so you need the order, not only the list.
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, then scan and remove using techniques such as Safe Mode or a pre-installation environment.
- Schedule scans and run updates.
- Enable System Restore and create a restore point in Windows.
- Educate the end user.
Why the order matters
- Verify first. Slow performance can have causes other than malware. Confirm the symptoms before you act.
- Quarantine before anything else. Disconnect the network cable or turn off Wi-Fi. This stops a worm from spreading and stops data leaving the machine.
- Disable System Restore before cleaning. Malware can hide inside old restore points. If they remain, the infection can come back, and the scanner often can't clean them.
- Update before scanning. An out-of-date scanner misses new threats. For a stubborn infection, boot into Safe Mode or a pre-installation environment so the malware isn't running while you scan.
- Re-enable System Restore last, after the system is clean. The new restore point then captures a healthy state.
Doing steps 1, 4 and 5 with Defender
Microsoft Defender has PowerShell cmdlets that map to these steps. Run them in an elevated PowerShell window. First, check the protection status during investigation:
Get-MpComputerStatus | Select-Object AMServiceEnabled, AntivirusEnabled, RealTimeProtectionEnabled, AntivirusSignatureLastUpdatedIf real-time protection is off, or the signatures are old, that is a finding in itself. Many malware families switch protection off.
During remediation, update the signatures and then scan:
Update-MpSignature
Start-MpScan -ScanType QuickScanReview what Defender found:
Get-MpThreatAfterwards, run a deeper check. A full scan can also be run on a schedule as part of step 5:
Start-MpScan -ScanType FullScanCommon exam traps
| Scenario | Correct next step |
|---|---|
| The user reports pop-ups and a slow PC. | Verify the symptoms. |
| The symptoms are confirmed. | Quarantine the system. |
| The system is isolated. | Disable System Restore. |
| The scan finished and found nothing, but the symptoms continue. | Rescan in Safe Mode or a pre-installation environment. |
| The system is clean. | Schedule scans and updates, then re-enable System Restore. |
Exercise
A technician has confirmed that a workstation is infected and has unplugged it from the network. What are the next two steps, in order?
Show answer
First disable System Restore. Then remediate by updating the anti-malware software and scanning, using Safe Mode or a pre-installation environment if needed.
Exercise
A scan finds and removes the malware. Which step comes immediately after scheduling scans and running updates, and why does it come last in the technical work?
Show answer
Enable System Restore and create a restore point. It comes after cleanup so the restore point captures a clean system and not an infected one.