AP Cybersecurity · Study guide

Evaluating a Detection Method

AP® Cybersecurity · Unit 5 · Applications, Data & Cryptography

Evaluating a Detection Method

How to judge a method for detecting attacks on applications and data: how fast it works, whether it alerts during or after the attack, and what it can miss.

1Three questions

To evaluate a detection method for applications and data, ask: How fast does it work? Does it alert during the attack or only after? And what attacks can it miss (false negatives)?

2Speed

Logs can hold millions of lines a day. To operate at an effective speed, log analysis needs to be augmented with automation: software rules that scan each new line, instead of a person reading them. Honeypots offer near-instant detection, because any access triggers an alert immediately.

3During or after

Alerts during the attackIdentifies the attack after it happened
Some DLP toolsRetrospective (after-the-fact) log analysis
HoneypotsCryptographic hashes that verify data integrity
Real-time automated log analysis

Alerts during an attack allow a prompt response that can stop the attack before it does more harm. After-the-fact methods still matter: they show what was taken or changed, who was affected, and what to restore.

4False negatives

A false negative is an attack the method does not detect. Every method has blind spots:

  • Hashes only detect whether data has been altered. An adversary who views and steals data without changing it leaves the hash the same.
  • Honeypots cannot detect adversaries who never try to open them.
  • Log analysis only sees what is logged, and only flags what its rules or reviewers look for.

5One night, four methods

An adversary using a stolen account copies 12 files from a records server, one every 3 minutes starting at 01:00. The fifth file it opens is a honeypot. After any alert, staff take 5 minutes to suspend the account.

Figure 1. Alerts that arrive during the attack leave time to stop it. Retrospective review only explains what happened, and a hash check never sees a copy.
MethodAlert atFiles stolen before it stopsTiming
Real-time automated log analysis01:013 of 12during
Honeypot file01:126 of 12during
Retrospective log review09:0012 of 12after
Nightly hash checkno alert12 of 12missed: files were copied, not changed

Real-time log analysis held the loss to 3 files, and the honeypot to 6. Log review the next morning found everything but stopped nothing. The hash check never alerted, a false negative, because copying a file does not change it.

The key idea

Evaluate a detection method by speed (automation makes log analysis fast; honeypots are near-instant), timing (DLP, honeypots, and real-time log analysis alert during an attack; retrospective logs and hashes find it after), and false negatives (hashes miss theft without changes; honeypots miss anyone who avoids them).

6Worked examples

Worked Example 1 Evaluate the method

Weekly hash checks

A company hashes its customer database weekly and compares digests. An insider copies the whole database to a USB drive. Evaluate the method for this attack.

  1. 1
    Hashes only reveal changes; copying does not change the data.
  2. 2
    So the weekly check produces no alert: a false negative.
  3. 3
    Even for a change, a weekly check would find it days after the fact.
Answer: Ineffective here. Access logs with real-time rules, or DLP, would be needed to catch a copy.
Worked Example 2 Evaluate the method

The honeypot that stayed quiet

An adversary steals a spreadsheet of employee Social Security numbers but never touches the honeypot file placed beside it. What does this show about honeypots?

  1. 1
    A honeypot only alerts when someone accesses it.
  2. 2
    This adversary went straight to the real file.
  3. 3
    The honeypot produced a false negative.
Answer: Honeypots are fast and clear but miss attackers who avoid them; pair them with log monitoring.
Worked Example 3 Compare timing

Before or after the damage

Which of these could stop an ongoing data theft: (a) a DLP tool that blocks an email containing card numbers; (b) an analyst reviewing last week's logs; (c) a real-time rule that flags downloads after 10 PM?

  1. 1
    (a) DLP can alert, or block, as the transfer happens.
  2. 2
    (b) Last week's logs show what already happened.
  3. 3
    (c) A real-time rule alerts while the downloads are in progress.
Answer: (a) and (c). Retrospective review (b) only explains it afterward.
Worked Example 4 Explain speed

A million lines a day

A school's web server writes about a million log lines a day, and one technician reviews them by hand each Friday. Evaluate the speed of this method.

  1. 1
    No person can read a million lines a day carefully.
  2. 2
    Weekly manual review means attacks are found days late, if at all.
  3. 3
    Automated rules can scan every line as it arrives and alert immediately.
Answer: Too slow. Log analysis needs automation to work at an effective speed.

7Common mistakes

Common Mistake 1 · Thinking hashes detect theft

They detect changes. A copied or viewed file has the same hash.

Common Mistake 2 · Treating after-the-fact methods as useless

They show what was lost or changed and who must be notified. They just cannot stop the attack.

Common Mistake 3 · Assuming no alert means no attack

Every method has false negatives. Combine methods with different blind spots.

Evaluate a detection method like this

“A honeypot gives near-instant alerts during an attack, so staff can respond before more files are taken. However, it produces a false negative for any adversary who never opens it, so it should be combined with real-time automated log analysis.”

Address speed, whether it alerts during or after the attack, and its false negatives.