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 attack | Identifies the attack after it happened |
|---|---|
| Some DLP tools | Retrospective (after-the-fact) log analysis |
| Honeypots | Cryptographic 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.
| Method | Alert at | Files stolen before it stops | Timing |
|---|---|---|---|
| Real-time automated log analysis | 01:01 | 3 of 12 | during |
| Honeypot file | 01:12 | 6 of 12 | during |
| Retrospective log review | 09:00 | 12 of 12 | after |
| Nightly hash check | no alert | 12 of 12 | missed: 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.
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
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.
- 1Hashes only reveal changes; copying does not change the data.
- 2So the weekly check produces no alert: a false negative.
- 3Even for a change, a weekly check would find it days after the fact.
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?
- 1A honeypot only alerts when someone accesses it.
- 2This adversary went straight to the real file.
- 3The honeypot produced a false negative.
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(a) DLP can alert, or block, as the transfer happens.
- 2(b) Last week's logs show what already happened.
- 3(c) A real-time rule alerts while the downloads are in progress.
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.
- 1No person can read a million lines a day carefully.
- 2Weekly manual review means attacks are found days late, if at all.
- 3Automated rules can scan every line as it arrives and alert immediately.
7Common mistakes
They detect changes. A copied or viewed file has the same hash.
They show what was lost or changed and who must be notified. They just cannot stop the attack.
Every method has false negatives. Combine methods with different blind spots.
“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.