AP Cybersecurity · Study guide

Anti-Malware Software

AP® Cybersecurity · Unit 4 · Device Security, Malware & Authentication

Anti-Malware Software

How anti-malware software finds known malware using signatures, quarantines and removes it, and why its database must stay current.

1What anti-malware does

Anti-malware software (sometimes called antivirus software) protects a device by finding malware that could corrupt, spy on, or destroy the system, then quarantining and removing it. It is a technical control that runs on the device itself, so it works even when the device is off the organization's network.

2Signatures

Malware contains features that make it detectable: specific bytes in the file, a recognizable hash, a distinctive pattern of behavior. These identifying features are called signatures. Security companies study new malware, record its signatures, and add them to a signature database that anti-malware software downloads.

3Scanning, quarantine, removal

The software periodically scans the files on a device and checks whether any of them match a signature in its database. If there is a match, it quarantines the file (moves it to a protected area where it cannot run or be opened) and then removes it.

Figure 1. Anti-malware compares files with signatures of known malware. A match is quarantined and removed; everything else passes.
An anti-malware scan log
Scheduled scan started 02:00   signature database: updated today
Scanned 48,212 files
  C:\Users\jlee\Downloads\invoice_0417.exe   MATCH  Trojan.Invoice.A
Action: file moved to quarantine
Action: file removed from quarantine after 7 days (policy)
Scan complete: 1 threat found, 1 quarantined

4Strengths and limits

StrengthLimit
Finds known malware reliably, with very few false alarmsCannot recognize brand-new malware with no signature yet
Runs automatically on every deviceOnly as current as its signature database: updates matter
Quarantine stops a file from running before it is removedFileless malware leaves no file to scan; rootkits can hide from scans

Because of these limits, anti-malware is one layer among several: keep its database updated, keep the operating system patched, and use other detection for behavior that signatures miss.

The key idea

Anti-malware matches files against signatures of known malware, then quarantines and removes matches. It is excellent against known threats and blind to unknown ones, so its database must stay current and it should be layered with other defenses.

5Worked examples

Worked Example 1 Read the scan

What happened to invoice_0417.exe?

Use the scan log above. What did the anti-malware software find and do?

  1. 1
    It scanned 48,212 files with a signature database updated that day.
  2. 2
    One file in the Downloads folder matched the signature Trojan.Invoice.A.
  3. 3
    The file was moved to quarantine, so it could not run, and removed after 7 days by policy.
Answer: It found a known trojan by signature, quarantined it, and later removed it.
Worked Example 2 Database updates

Out-of-date signatures

A laptop's anti-malware has not updated its signature database in four months. A new piece of malware, discovered two months ago, arrives by email. Will a scan catch it?

  1. 1
    The malware's signature was added to the database two months ago.
  2. 2
    This laptop's database is four months old, so it does not include that signature.
  3. 3
    With no matching signature, the scan will not detect it.
Answer: No. Anti-malware can only find what is in its database. Keeping it updated matters.
Worked Example 3 Limits

Brand-new malware

An attacker writes completely new malware and sends it to one company. The company's anti-malware database is fully up to date. Will it catch the file?

  1. 1
    No one has seen this malware before, so no signature exists.
  2. 2
    A signature scan has nothing to match.
  3. 3
    Other defenses (behavior monitoring, anomaly detection, patching, user training) are needed for brand-new threats.
Answer: Probably not, by signature alone. This is why anti-malware is one layer, not the whole defense.
Worked Example 4 Why quarantine first

Not just deleting

Why does anti-malware usually quarantine a file before removing it?

  1. 1
    Quarantine immediately stops the file from running or being opened.
  2. 2
    If the match was a mistake (a false positive on a needed file), the file can be restored.
  3. 3
    Security staff can also examine quarantined files to understand an attack.
Answer: Quarantine neutralizes the threat right away while keeping a way back if the detection was wrong.

6Common mistakes

Common Mistake 1 · Thinking anti-malware catches everything

It catches known malware with signatures in its database. New, fileless, or well-hidden malware can slip past.

Common Mistake 2 · Ignoring updates

An outdated signature database misses recent malware. Updates are part of what makes anti-malware work.

Common Mistake 3 · Confusing quarantine with removal

Quarantine isolates the file so it cannot run; removal deletes it. Software often does one, then the other.

Explain anti-malware like this

“Anti-malware software periodically scans the device's files and compares them with a database of malware signatures. When invoice_0417.exe matched a known trojan's signature, the software quarantined it so it could not run, then removed it. It would not detect brand-new malware without a signature, so the database must be kept updated.”

Describe signature matching, what happens on a match, and the main limit.