AP Cybersecurity · Study guide

Evaluating Detection Impact

AP® Cybersecurity · Unit 3 · Network Security, Firewalls & Detection

Evaluating Detection Impact

How to judge a detection method by its speed, cost, false positives, and false negatives, and what each one costs an organization.

1Four ways to judge a method

Choosing a detection method is not only about whether it can catch an attack. Organizations evaluate its impact on four factors: speed, cost, false positive rate, and false negative rate.

Figure 1. A false positive raises an alarm with no attack. A false negative lets a real attack pass with no alarm.

2Speed

Faster detection enables faster response, and the faster defenders respond, the less damage an attacker does. Signature-based methods are faster than anomaly-based methods, especially on networks with high traffic volume, because matching against a list is quicker than comparing everything to a statistical baseline.

3Cost

Detection tools have up-front costs and ongoing costs (hardware, software licenses, updates, staff), and they must fit within a budget. Anomaly-based detection requires more expensive hardware than signature-based detection. Hybrid detection is the most expensive option because it runs both.

4False positives and alert fatigue

A false positive is an alert for activity that is not malicious. Signature-based detection has almost no false positives, since it alerts only on known attack patterns. Anomaly-based and hybrid detection have higher false positive rates, because unusual is not always harmful.

High false positive rates have two costs:

  • Wasted time and resources investigating alerts for activity that is not malicious.
  • Alert fatigue: responders get used to false positives and take alerts less seriously, assuming an alert is false before investigating it. When a real attack finally triggers an alert, it may be ignored.

5False negatives

A false negative occurs when an adversary bypasses a detection system: a real attack produces no alert. Signature-based systems are easier to bypass than anomaly-based or hybrid systems; an attacker only needs to change their tool slightly, or use something new, so it no longer matches a signature. False negatives can let adversaries cause loss, harm, disruption, or destruction to data and systems, because no one knows to respond.

6Comparing the methods

Figure 2. No method wins everywhere. Signature-based wins on speed, cost, and false positives; anomaly-based and hybrid are harder for attackers to slip past.
FactorWhat it measuresWhy it matters
SpeedHow quickly an attack is detectedFaster detection allows a faster response and less damage
CostHardware, software, and ongoing costsThe method must fit the budget
False positive rateHow often harmless activity raises an alertWasted investigation time and alert fatigue
False negative rateHow often real attacks slip pastUndetected attacks cause loss, harm, disruption, or destruction
The key idea

Every method trades something. Signature-based is fast, cheap, and quiet but easier to slip past. Anomaly-based and hybrid catch more but cost more and raise more false alarms. Pick the trade-offs that fit the organization's risks and resources.

7Worked examples

Worked Example 1 Name the outcome

Four alerts, four labels

Label each: (a) the system alerts on a backup job that runs every night; (b) ransomware spreads and the system stays quiet; (c) the system alerts on a password-guessing attack; (d) a normal day, no alerts, no attacks.

  1. 1
    (a) Alert, no attack: false positive.
  2. 2
    (b) Attack, no alert: false negative.
  3. 3
    (c) Attack, alert: true positive.
  4. 4
    (d) No attack, no alert: true negative.
Answer: (a) false positive, (b) false negative, (c) true positive, (d) true negative.
Worked Example 2 Cost of false positives

240 alerts a day

A team using anomaly-based detection gets 240 alerts a day, and investigation shows 90% are false positives. Each takes about 6 minutes to check. How much time goes to false alarms in a week, and what risk follows?

  1. 1
    False positives per day: 240 × 0.9 = 216.
  2. 2
    Time per day: 216 × 6 minutes = 1,296 minutes. Per week: 1,296 × 7 ÷ 60 = 151.2 hours.
  3. 3
    That is nearly four full-time analysts doing nothing but clearing false alarms.
  4. 4
    Risk: alert fatigue. Analysts start assuming alerts are false, and a real attack may be dismissed.
Answer: About 151 hours a week, plus the danger of alert fatigue. Tuning the tolerance range or adding signature-based filtering would help.
Worked Example 3 Cost of false negatives

The modified malware

An attacker takes a known piece of malware and changes a few lines so its fingerprint no longer matches. The company uses signature-based detection only. What happens, and what would have helped?

  1. 1
    The changed malware matches no signature, so there is no alert: a false negative.
  2. 2
    The attacker works undetected, causing loss or damage until someone notices.
  3. 3
    Anomaly-based or hybrid detection could flag its unusual behavior, such as strange outbound traffic, even without a signature.
Answer: A false negative. Signature-based systems are easier to bypass; anomaly-based or hybrid detection is harder to slip past.
Worked Example 4 Weigh the factors

The small nonprofit

A small nonprofit has a tight budget, one part-time IT person, and high, irregular web traffic. Which method's impact profile fits best?

  1. 1
    Cost: signature-based is cheapest; hybrid is out of reach.
  2. 2
    Staff time: one part-time person cannot handle many false positives; signature-based has almost none.
  3. 3
    Traffic: high and irregular favors signature-based speed and does not suit an anomaly baseline.
  4. 4
    Trade-off accepted: easier to bypass by new attacks, so keep signatures updated and patch quickly.
Answer: Signature-based detection, accepting a higher false-negative risk in exchange for low cost and few false alarms.

8Common mistakes

Common Mistake 1 · Mixing up false positives and false negatives

False positive: alarm, no attack. False negative: attack, no alarm. The false negative is the attack that got away.

Common Mistake 2 · Treating false positives as harmless

They waste time and cause alert fatigue, which makes real alerts easier to ignore.

Common Mistake 3 · Assuming the most powerful method is best

Hybrid detection catches the most but costs the most and raises the most alerts. A method must fit the budget and the team.

Evaluate a method like this

“Anomaly-based detection would reduce false negatives, because it can flag new attacks that have no signature. However, it would increase false positives, costing analyst time and risking alert fatigue, and it requires more expensive hardware than signature-based detection.”

Evaluate on speed, cost, false positives, and false negatives, and state the trade-off.