Sub topic 9
Anti-malware and Endpoint Protection Tools
Prerequisites and scope
This chapter assumes you can use Windows Settings and Control Panel, and that you know what an IP address and DNS are. It also assumes you know in general what antivirus software does. The previous chapter covered how to recognize malware symptoms. This chapter covers the tools that prevent, detect and clean up malware. The next chapter puts those tools into the CompTIA removal sequence.
On the A+ Core 2 (220-1102) exam, you are expected to choose the right tool for a scenario. You are also expected to know how to keep tools current and to run basic Microsoft Defender checks from PowerShell.
What endpoint protection means
An endpoint is any device that connects to a network, such as a laptop, desktop, phone or server. Endpoint protection is the set of software controls that defend those devices. No single tool covers every threat, so protection is layered. If one layer misses something, another may catch it.
| Tool | What it does | Typical exam clue |
|---|---|---|
| Antivirus | Scans files and processes for known malware using signatures and behavior rules | "Files are being flagged or quarantined" |
| Anti-malware | Broader than antivirus. Covers spyware, ransomware, rootkits and more | "Pop-ups and browser changes" |
| Software firewall | Allows or blocks network traffic by rule, per application or port | "An unknown program is making outbound connections" |
| EDR | Endpoint detection and response. Records endpoint activity, flags suspicious behavior and lets staff isolate a device | "Managed fleet, central visibility" |
| Email filtering | Blocks spam, malicious attachments and phishing messages before users see them | "Many users received the same phishing email" |
| OS and app patching | Closes vulnerabilities that malware would exploit | "Malware used a known flaw" |
The terms antivirus and anti-malware are often used interchangeably. Modern products do both jobs. If an exam question asks which tool to install or run, the safest answer is a current anti-malware product, unless the scenario points to something specific.
How detection works
Anti-malware tools use several detection methods. Knowing them explains why a scan can fail.
- Signature-based detection. The tool compares files against a database of known malware fingerprints. It is fast and accurate for known threats. It cannot see a new threat that has no signature yet, such as a zero-day.
- Heuristic detection. The tool looks for suspicious traits, such as code that tries to hide itself or modify system files. It can catch variants of known malware. It can also produce false positives.
- Behavioral detection. The tool watches what a program does at run time. Mass-encrypting files, for example, looks like ransomware. This works even when no signature exists.
- Cloud-delivered protection. The tool sends file information to a vendor service for a fast verdict, which shortens the gap before new threats are recognized.
A false positive is a harmless file that the tool wrongly flags. A false negative is real malware that the tool misses. Technicians should treat both as normal events. Do not disable protection permanently to stop false positives. Create a narrow exclusion for the specific file after you have verified it is safe.
Real-time protection versus on-demand scans
Real-time protection (also called on-access scanning) checks files as they are opened, downloaded or run. It is the main defense, so it should stay on.
An on-demand scan is one you start yourself or schedule. There are two common types.
- Quick scan. Checks the places malware usually hides, such as memory, startup entries and key system folders. It is fast and good for routine checks.
- Full scan. Checks every file on every drive. It takes much longer, so run it after remediation or on a schedule outside working hours.
Many products also offer an offline or boot-time scan. It runs before Windows fully loads. This helps against rootkits and other malware that hides from the running operating system.
Keeping tools current
Signatures go stale quickly, so updating them is part of the job. Set definition updates to automatic. Before you scan a suspect machine, update the signatures first, because an out-of-date scanner cannot recognize recent threats. This update-then-scan order appears again in the removal steps.
Also keep the operating system and applications patched. Anti-malware reduces risk, but patching removes the vulnerability that the malware needs.
Windows Security and Microsoft Defender
Windows includes Microsoft Defender Antivirus, managed through the Windows Security app. Key areas you should recognize:
- Virus & threat protection. Scans, threat history, real-time protection, and ransomware protection settings such as controlled folder access.
- Firewall & network protection. Microsoft Defender Firewall settings for each network profile (domain, private, public).
- App & browser control. Reputation-based protection, including SmartScreen, which warns about unknown or malicious downloads and sites.
When you install a third-party antivirus product, Windows normally registers it and turns Defender Antivirus off to avoid two real-time scanners conflicting. Running two real-time scanners at once can slow the system and cause errors.
Tamper protection stops unauthorized changes to Defender settings. Many malware families try to switch off security tools, so a machine where protection turned itself off is a strong sign of infection.
Checking Defender from PowerShell
Run these commands in an elevated PowerShell window (Run as administrator). First, check the state of protection. This is the first check when you suspect malware.
Get-MpComputerStatus | Select-Object AMServiceEnabled, AntivirusEnabled, RealTimeProtectionEnabled, AntivirusSignatureLastUpdatedRead the output like this:
AMServiceEnabledis True when the anti-malware service is running.AntivirusEnabledis True when Defender Antivirus is active.RealTimeProtectionEnabledis True when files are scanned as they are accessed.AntivirusSignatureLastUpdatedis the date and time of the last signature update. An old date means the tool cannot recognize recent threats.
If signatures are old, update them and run a quick scan.
Update-MpSignature
Start-MpScan -ScanType QuickScanAfter the scan, list what Defender detected so you can review it before and after cleanup.
Get-MpThreatAfter remediation, run a full scan to confirm nothing remains.
Start-MpScan -ScanType FullScanIf the results look wrong, such as real-time protection showing False on a machine nobody changed, treat that as a finding. Investigate who or what disabled it before you simply turn it back on.
Limits and common mistakes
Anti-malware is not a complete answer. Keep these points in mind.
- Not every scan removes everything. Rootkits and deeply embedded malware may need an offline scan, a rescue disk or a reinstall.
- Scanning while protection is off proves little. Confirm real-time protection and signatures before you trust a clean result.
- Running a scan on a networked, infected machine can spread the problem. Quarantine the machine first. The removal chapter covers this.
- Tools do not stop social engineering. A user who types a password into a fake login page bypasses the scanner entirely, which is why user education matters.
- Fake antivirus is itself malware. A pop-up that claims your computer is infected and urges you to download a cleaner is a common attack. Use only the tools your organization installed.
Choosing a tool: exam reasoning
Match the scenario to the layer that fits.
- A user's browser keeps redirecting and pop-ups appear. Update the anti-malware and run a scan.
- A program is sending data to an unknown host. Use the firewall to block it, then scan.
- Many staff received the same suspicious email. Use email filtering and report it, and remind users not to click links.
- A known flaw was exploited. Apply the patch. Scanning alone does not fix the vulnerability.
- A rootkit is suspected and normal scans find nothing. Use an offline or boot-time scan.
Exercise
A technician finds that a user's PC has real-time protection turned off and the last signature update was three weeks ago. The user reports slow performance and new browser toolbars. Which PowerShell command would the technician use to see the protection status, and what should they do next?
Show answer
Run Get-MpComputerStatus (selecting AMServiceEnabled, AntivirusEnabled, RealTimeProtectionEnabled and AntivirusSignatureLastUpdated) to confirm the status. Then run Update-MpSignature to refresh the signatures, run Start-MpScan -ScanType QuickScan, and review the findings with Get-MpThreat. The technician should also investigate why protection was off, since malware often disables security tools, and run a full scan after remediation.
Exercise
Which detection method can catch ransomware that has no known signature, and why?
Show answer
Behavioral detection. It watches what a program does at run time, such as rapidly encrypting many files, so it does not need a signature for that specific malware.