P-TECH IT
All P-TECH sites online· 9:16 PM Eastern, open the status page

Lesson 15: Malware Detection and Removal

CompTIA A+ Core 2 (220-1202) · Objectives 220-1202 2.4, 220-1202 2.6 · Download .docx

Objectives

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

Example 1: A technician finds an unknown program on a laptop trying to connect out to a remote server, and wants to stop this program from communicating while the investigation continues, without disconnecting the laptop entirely. Which tool is best suited? Answer: An outbound firewall rule for the program. A host-based (software) firewall filters traffic per application, port and address on the device itself. An outbound block rule for the suspicious executable contains its communication while leaving other traffic working. Inbound defaults also block unsolicited connections that malware could exploit.
Example 2: During remediation, malware on a desktop terminates the antivirus service and blocks safe mode. The technician must still scan and clean the drive. Which technique is the best next step? Answer: Scan the drive from a bootable preinstallation environment. 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.
Example 3: Several teachers' accounts were compromised within days of each other. All had typed their passwords on the same library PC. A small USB adapter is found between that PC's keyboard cable and its USB port. What is it most likely? Answer: A hardware keylogger. A keylogger records keystrokes to capture passwords and other typed data. Software keyloggers run as malware; hardware keyloggers sit between the keyboard and the PC and need physical access. Checking shared PCs for unknown devices and using MFA reduce the damage from captured passwords.

Common mistakes

Self-check

Try each one before you look. A miss here costs nothing and tells you exactly what to reread.

1. A security analyst wants one platform that correlates alerts from laptops, the email system, firewalls and cloud applications, so that a phishing email, the resulting malware process and outbound traffic appear as one incident. Which technology is designed for this?
2. During remediation, scans from safe mode and from a preinstallation environment both fail to remove a persistent infection that keeps reappearing. The user's data has been backed up and scanned. What is the appropriate remediation technique now?
3. A laptop keeps becoming reinfected after several anti-malware scans in safe mode. The vendor reports that this strain plants code in the disk's boot records. The user's data has been backed up and scanned. What is the most reliable remediation?
4. Which sequence matches the CompTIA 7-step malware removal procedure?
5. A technician explains to a teacher that the antivirus program compares files against a database of known malicious code patterns that is updated several times a day. Which detection approach is being described?

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.

← Lesson 14: Security Measures and Windows Security SettingsLesson 16: Threats, Data Destruction and SOHO Network Security →

↑ Back to top