Lesson 15: Malware Detection and Removal
CompTIA A+ Core 2 (220-1202) · Objectives 220-1202 2.4, 220-1202 2.6 · Download .docx
Objectives
- Summarize malware types and the tools used to detect, remove and prevent them.
- Follow the malware removal procedure in the correct order.
Key terms
- Malware
- Malicious software designed to damage, disrupt, spy on, or gain unauthorized access to computers, including viruses, Trojans, and ransomware.
- Malware removal procedure
- CompTIA's seven-step process: investigate symptoms, quarantine, disable System Restore, remediate, schedule scans and updates, re-enable System Restore with a restore point, educate the user.
- Trojan
- Malware disguised as legitimate or useful software that tricks users into installing it, then performs hidden malicious actions.
- Quarantine (infected system)
- Isolating an infected computer from the network and other devices so malware cannot spread while it is investigated and cleaned.
- Rootkit
- Stealthy malware that gains administrator-level control and hides itself and other malware from the operating system and security tools.
- System Restore
- Windows feature that rolls system files, drivers, and registry settings back to an earlier restore point without affecting personal files.
- Virus
- Malicious code that attaches to legitimate files or programs and spreads when the infected item is run or shared.
- Restore point
- Saved snapshot of Windows system settings and files created automatically or manually so System Restore can return to it later.
- Spyware
- Malware that secretly collects information about a user, such as browsing habits, credentials, or personal data, and sends it to someone else.
- Safe Mode
- Windows diagnostic startup that loads only essential drivers and services, useful for removing malware or drivers that block normal boot.
- Ransomware
- Malware that encrypts or locks a victim's files or systems and demands payment, often in cryptocurrency, for restoring access.
- Windows PE
- Windows Preinstallation Environment; a minimal Windows booted from external media used for installing, repairing, or scanning a system without starting its own OS.
- Keylogger
- Malware or hardware device that records keystrokes to capture passwords, messages, and other typed information.
- Reimaging
- Wiping a computer and restoring a known-good standard system image, which is quicker and more reliable than cleaning a heavily infected installation.
- Boot sector virus
- Virus that infects the master boot record or volume boot sector so it loads before the operating system and its security tools.
The concept
220-1202 2.4 — Summarize malware types and the tools used to detect, remove and prevent them. ransomware: Ransomware encrypts a victim's files, or threatens to leak them, and demands payment for the key. CISA advises isolating affected systems, restoring from offline backups and reporting the incident rather than paying. cryptominer: Cryptominers (cryptojacking) hijack processing power to mine cryptocurrency for an attacker. Their signature is sustained, unexplained high CPU or GPU use, heat, fan noise and higher power costs, often without other visible symptoms. rootkit: A rootkit runs with kernel-level (or firmware or boot-level) privileges and changes how the OS reports processes, files and network connections, so tools running inside the infected OS cannot see it. Scanning from trusted boot media works because the rootkit is not running while the scan happens. fileless malware: Fileless malware avoids writing a traditional executable to disk. It uses trusted built-in tools such as PowerShell or WMI (living off the land) and stores persistence in places like the registry, which is why signature-based antivirus often misses it while behavior-based EDR catches it. stalkerware: Stalkerware is surveillance software secretly installed, usually by someone with physical access, to monitor a specific person's location, messages and activity. Signs include battery drain, unfamiliar apps with powerful permissions, and the other person knowing private details. potentially unwanted program: A PUP is software that the user technically agreed to install, often bundled with free software, but that is unwanted and may degrade privacy or performance. Toolbars, search hijackers and system optimizers are common examples, and anti-malware tools flag them separately from outright malicious code.
220-1202 2.6 — Follow the malware removal procedure in the correct order. malware removal order: CompTIA's procedure has seven steps: (1) investigate and verify malware symptoms; (2) quarantine the infected system; (3) disable System Restore in Windows Home; (4) remediate — update anti-malware software, use scan and removal techniques such as safe mode or a preinstallation environment, or reimage/reinstall; (5) schedule scans and run updates; (6) enable System Restore and create a restore point in Windows Home;… disable System Restore: Restore points save system files and registry settings, so they can capture malware. If they remain, a later restore could reinfect the PC, and some scanners cannot clean protected restore data. preinstallation environment scan: Booting into a preinstallation environment, such as WinPE-based rescue media, starts a separate trusted OS, so the malware on the drive is not running and cannot interfere with the scan. If the scan still cannot clean the system, the procedure falls back to reimaging or reinstalling. Quarantine step action: Quarantining means isolating the infected system so the malware cannot spread or send data out: unplug the network cable, turn off Wi-Fi, and stop sharing removable media. This contains the incident before any cleanup begins. Step after quarantine: CompTIA's order is: investigate and verify symptoms; quarantine; disable System Restore (Windows Home); remediate; schedule scans and run updates; enable System Restore and create a restore point; educate the user. In 220-1202, remediation includes updating anti-malware software, scan and removal techniques, and reimage/reinstall when needed. Persistent malware remediation: Malware that restores itself is usually loaded at startup and protects its own files while running. Booting into Safe Mode (minimal drivers and startup items) or a preinstallation environment (WinPE or a vendor rescue disk) lets the scanner work while the malware is not running.
Worked examples
Common mistakes
- Antivirus signature detection: choosing “Heuristic analysis” is a common mistake. Heuristic analysis inspects a file's code and structure for suspicious characteristics, which can flag new malware that matches no known pattern.
- Step after quarantine: choosing “Educate the end user” is a common mistake. User education is the last step, after the system is cleaned and protected.
- Virus: choosing “Ransomware” is a common mistake. Ransomware encrypts files and demands payment.
- Software firewall blocks malware traffic: choosing “A disk defragmentation” is a common mistake. Defragmenting reorganizes files on a disk and has no effect on network traffic.
- Persistent malware remediation: choosing “Restore the user's documents from a recent backup copy” is a common mistake. Restoring files does not remove malware that keeps reinstalling itself at startup.
- preinstallation environment scan: choosing “Educate the user and close the ticket” is a common mistake. User education is the last step and cannot happen before the system is actually clean.
Self-check
Try each one before you look. A miss here costs nothing and tells you exactly what to reread.
Canvas is the official record. This companion enhances the PGCC curriculum; it does not replace it. Last name and class year only. Students with a 504 plan or IEP: your accommodations apply.