Free lesson · CompTIA A+ 220-1202 · 4:59

Malware: Types and Defenses

Every malware type on the CompTIA A+ 220-1202 objective 2.4, sorted into hiders, spreaders, spies and freeloaders, then the layered defenses: antivirus and anti-malware, software firewalls, email security gateways, antiphishing training, EDR vs MDR vs XDR, the recovery console and OS reinstallation.

Narration uses an AI-generated voice; every lesson is checked against published sources.

What you will learn

  • Trojan, rootkit, fileless, virus, boot sector virus, ransomware, spyware, keylogger, stalkerware, cryptominer
  • Adware and potentially unwanted programs (PUPs)
  • Antivirus vs anti-malware, software firewalls, email security gateways, antiphishing training
  • EDR vs MDR vs XDR
  • When to use a recovery console, and when to reinstall the OS

PRACTICE TESTS

Ready to drill it?

Practice tests for CompTIA A+ Core 1 and Core 2, every answer explained and checked against published sources. $19.95 for 30 days, plus sales tax where it applies; one payment, nothing renews.

See the 30-day pass

Try 10 sample questions

Chapters

  1. 0:00Intro: malware labels overlap
  2. 0:31Hiders: Trojan, rootkit, fileless
  3. 0:59Spreaders and wreckers: virus, boot sector virus, ransomware
  4. 1:23Spies: spyware, keylogger, stalkerware
  5. 1:42Freeloaders: cryptominer, adware, PUP
  6. 2:13Layered defenses
  7. 2:53EDR vs MDR vs XDR
  8. 3:30Recovery console and OS reinstall, drill and recap

Exam objectives covered

  • Core 2 (220-1202) objective 2.4, Security

Transcript

Read the full lesson narration

Intro: malware labels overlap

Malware is software built to do harm. Learn its names, and you'll know how to fight it.

The exam objectives list ten kinds of malware, plus adware and potentially unwanted programs. One warning first. These labels describe behaviors, and real malware often mixes several. A Trojan can deliver ransomware, or install a rootkit or a keylogger. So learn what each behavior does. Let's sort them into four groups: hiders, spreaders, spies, and freeloaders.

Hiders: Trojan, rootkit, fileless

First, the hiders. A Trojan pretends to be something useful, like a free PDF converter, but carries malicious code inside. A rootkit hides itself, or other malware, deep in the system, sometimes by changing what the operating system reports. And fileless malware runs in memory, misusing tools already on the computer, like PowerShell, so there may be no malicious file for a scanner to find.

Spreaders and wreckers: virus, boot sector virus, ransomware

Next, the spreaders and wreckers. A virus attaches itself to a file or program, and spreads when that file is opened or run. A worm, by contrast, can spread on its own. A boot sector virus hides in the part of the drive the computer reads first at startup, so it can load before the operating system does. And ransomware encrypts your files, then demands payment to unlock them.

Spies: spyware, keylogger, stalkerware

Then, the spies. Spyware secretly collects information about you, and sends it to someone else. A keylogger records what you type, including passwords. And stalkerware is spyware that someone installs on another person's phone or computer, to secretly track them. Often it's a partner or family member.

Freeloaders: cryptominer, adware, PUP

Last, the freeloaders. A cryptominer secretly uses your computer's processing power to mine cryptocurrency for someone else. Slow and hot is a clue, but high CPU use alone doesn't prove it. Adware floods you with ads. And PUPs, potentially unwanted programs, often arrive bundled with something you did want, like an extra toolbar. You may have clicked accept on a bundled offer, so security tools flag them as potentially unwanted, rather than as malware.

Layered defenses

Now, the defenses. No single tool stops everything, so we stack them in layers. Antivirus and anti-malware software scan for known threats and suspicious behavior. Today the two terms largely overlap: modern antivirus also detects other kinds of malware. A software firewall controls which network traffic can enter or leave the device. An email security gateway screens messages before they reach the inbox, catching bad attachments and links. And user education, especially antiphishing training, teaches people to spot fake messages, because so many infections start with one click.

EDR vs MDR vs XDR

Three newer terms sound alike, so let's separate them. EDR, endpoint detection and response, watches each endpoint, such as laptops, desktops, servers, and phones. It records what happens, and can respond, for example by isolating an infected machine from the network. MDR, managed detection and response, is a service. An outside security team does that watching and responding for you, around the clock. And XDR, extended detection and response, extends detection beyond endpoints, to email, network, and cloud, and combines those signals.

Recovery console and OS reinstall, drill and recap

And when a system is badly damaged, two last tools. A recovery console, like the Windows Recovery Environment, lets you repair a computer that won't start normally. And when you can no longer trust the system at all, for example after a rootkit, the most reliable fix is to reinstall the operating system from trusted media.

Quick drill. Say the answer before I do. Encrypts your files and demands payment? Ransomware. Looks useful, but hides malicious code? A Trojan. Records every keystroke? A keylogger. An outside team watches your endpoints around the clock? MDR. Hides deep in the system, and often means a reinstall? A rootkit.

Lock in these four. One. A Trojan hides inside something useful. Two. Ransomware encrypts, then demands payment. Three. A rootkit hides deep, so reinstalling is often the safest fix. Four. EDR watches endpoints. MDR is a team that does it for you. XDR extends detection beyond endpoints, to email, network, and cloud.

That's malware. Now go prove it. Practice questions are waiting for you in Drill Sergeant.

PRACTICE TESTS

Ready to drill it?

Practice tests for CompTIA A+ Core 1 and Core 2, every answer explained and checked against published sources. $19.95 for 30 days, plus sales tax where it applies; one payment, nothing renews.

See the 30-day pass

Try 10 sample questions

Related lessons

Found a mistake in a lesson? Email support@drillsgthq.com with the lesson and what is wrong.

Drill Sergeant is an independent study resource. It is not affiliated with, endorsed by, or sponsored by CompTIA, Inc. CompTIA and A+ are trademarks or registered trademarks of CompTIA, Inc.