Skip to content

Evaluating Detection Results

Evaluate security alerts against known outcomes and telemetry coverage using clear counts, timing and investigation context.

By Reviewed by Sushil Kumar

Last updated:

A detection result reports what a control recognized according to its own rules, data and configuration. It might show that a condition matched locally, that an alert reached a central service, or that a preventive action was reported. Treat these as separate outcomes. A valid signal can still require review before it supports an incident finding.

Assess detection with a defined question and comparable evidence. For a reporting check, the useful outcome may be that a known benign test signal reached the correct console. For a performance assessment, use labeled observations and a stated population, and measure how often the control found relevant cases and how often its alerts were relevant.

Key terms

Reference label
An independently justified judgment used to compare a detection result with the expected outcome.
True positive
A detection result for a case that actually meets the defined positive condition.
False negative
A negative result for an observable case that actually meets the defined positive condition.
Precision
The proportion of positive results that are confirmed true positives.
Recall
The proportion of actual positives that were detected.

Decide Which Result You Are Evaluating

Define the scenario, test unit and expected outcome before reviewing records. For a single reporting check, look for evidence that the endpoint recorded the intended event and that the console received a matching alert. If the question concerns prevention, check an outcome field or independent evidence about the attempted action. A product can record detection and also report that its protective action failed.

Use the same unit across expected outcomes and results. One case might create multiple alerts, and one alert might represent several related events. If you count alerts for review workload, say so. If you count affected endpoints, deduplicate by verified asset identity and interval. Mixing incident, event and alert counts yields percentages that readers cannot interpret.

Build the Comparison From Verified Labels

Use independently checked labels from appropriate benign test material and authorized historical records. Preserve how each label was verified. An alert's classification cannot serve as the sole label when the alert is the system under assessment. For uncertain retrospective examples, record the pending judgment and show how unresolved cases were handled in the evaluation.

For an illustrative set of 20 known positive cases and 80 known negative cases, suppose 15 positives and 5 negatives generated one alert each. Precision is 15 out of 20 alerts, or 75 percent. Recall is 15 out of 20 known positives, also 75 percent. The percentages coincide in this example while their denominators answer different questions. Report raw counts and the tested population beside each metric. Google's classification metrics reference

Both rates are 75% in this example. Precision uses the 20 alerts as its denominator, and recall uses the 20 known positive cases.

Trace Missing and Late Results Through Collection

For a missing central alert, check existing sensor status and the local signal, then look for evidence of forwarding and central rule evaluation. Collector receipt can lag the endpoint event. If the expected local record was unavailable, mark the missing visibility and explain how it affects the evaluation. A reporting gap and a classification error can produce the same empty dashboard.

Latency needs two explicitly defined times. Measure from the local event to central receipt when reporting transport delay. Measure from the event to an alert becoming visible when the question concerns analyst visibility. Where clocks differ or a field is absent, report the observed stage boundaries and the uncertainty in the delay.

Local event to collector receipt measures reporting delay. Local event to alert visibility includes the later central steps.

Report What the Results Generalize To

Show the detector or rule version, sensor configuration, platform, relevant policy, tested time window and label criteria. Identify which workloads and event types the cases represent. A narrow set may show how a detector treats a specific file or signal. Results across different software versions, platforms and behavior classes require representation of those conditions.

Include the cost of misses and irrelevant alerts in the interpretation. Raising a threshold may reduce irrelevant alerts and miss more of the intended cases depending on the evaluation set. Compare results against the same labeled population when reviewing a change. If neither test produces any positive results, the precision denominator is zero. Give the counts and state that precision is undefined under the stated formula.

Compare Results When Positive Cases Are Rare

Imagine a reviewed collection of 1,000 cases where 10 actually meet the detection criterion. A rule that alerts on none reaches 99 percent accuracy by classifying the 990 negatives correctly. Its recall is zero out of ten. Precision is undefined because the rule produced no positive results. The counts give that seemingly high accuracy a clear interpretation.

Now suppose a second rule finds eight of the ten positives and also flags 12 negatives. Recall is eight out of ten, or 80 percent, and precision is eight out of 20, or 40 percent. A reviewer can see the number of relevant cases found, the number missed and how many irrelevant cases would enter the queue. These figures describe the exercise population. A production queue can have different proportions, so the test record should preserve how the cases were selected.

In 1,000 reviewed cases with 10 positives, an empty queue produces 99% accuracy and zero recall. The second rule finds eight positives and adds 12 false positives.

Measure Event-Level and Incident-Level Results

Choose the evaluation unit before counting. One incident can generate many alerts when an endpoint repeatedly encounters the same object or several products ingest the same underlying event. A useful event-level result counts individual observations under a defined deduplication rule. An incident-level result counts whether the monitored incident generated at least one actionable alert within the evaluation window.

Consider four confirmed incidents, one of which generated 40 alerts while two others generated one each and the fourth none. The data can support 42 alert records and three detected incidents. Combine the numbers only when the relationship is explicit. Reporting alert volume on its own can obscure whether the detector regularly detects meaningful incidents across hosts.

Forty-two alert records correspond to three detected incidents out of four confirmed incidents.

Read Recall, Precision, and Timing Together

Recall is the proportion of known positive items found by a detector. Precision is the proportion of its positive results that the evaluation confirms. Write down the raw counts with both measures, distinguish incomplete labeling from a verified negative, and name the test population. A high value calculated from a small set can be useful in a focused validation and still provide weak evidence about performance across an organization.

Add detection delay separately. A rule that catches five of five cases six hours after completion gives a different response opportunity from one that catches four within minutes. Record the timestamp used as the ground truth and whether it is an event timestamp or an analyst confirmation time. Compare like-for-like windows when testing rule revisions.

Document the Version and a Shift in Coverage

Retain the version of the detection logic, the telemetry configuration, the asset population, and the labeled records used to calculate results. Note which workstations had a reporting agent and which events were being collected during the evaluation. An alert difference after a rule update may be attributable to a change in deployment, coverage, or traffic depending on what else changed.

A holdout set consists of records kept separate from the ones used to tune a detector. Use it to estimate whether results hold up on previously unseen examples. When retrospective labels come from the same detection logic being evaluated, record that dependence. Seek independent confirmation from case material or documented control tests before treating those labels as ground truth.

Calculate an Example and Explain the Trade-Off

In this instructional exercise, the labeled set contains 20 relevant records and 80 ordinary records. A detector returns 14 relevant and 6 ordinary records. Its recall is 14 divided by 20, or 70 percent. Its precision is 14 divided by the 20 records returned, also 70 percent. The false positive rate is a different calculation, six divided by the 80 ordinary records, or 7.5 percent.

A revised version returns 17 relevant records and 12 ordinary ones. Its recall rises to 85 percent and precision falls to about 59 percent. Write a short decision note for a team with limited review capacity. Consider increased coverage, larger review load, and what kind of missed records the revision helps detect. State what external validation you would need before claiming the rates reflect production conditions.

On the labeled set of 20 relevant and 80 ordinary records, the revision increases recall and the number of items requiring review.

Evaluate False Positives by Their Causes

Break false positives into meaningful groups. A rule may match approved software updates, older simulation records, duplicated alerts, or an incorrectly labeled sample. Retain representative observations from each category. A detector that mostly confuses one known deployment with an incident calls for a different review than a detector with inconsistent results across otherwise unrelated platforms.

Before changing the evaluation, separate false alerts from unresolved labels. Ask a second reviewer to compare ambiguous examples to the underlying records. If the decision changes, revise the dataset and record the reason. When you report the new numbers, keep the earlier version and show whether the detector, the coverage, or the labels actually changed.

Casework Example

Lesson Review

Check Your Understanding

Question 1 of 5· 0 answered
What does recall measure?

Test yourself on Malware Forensics with free, timed mocks.

Practice Malware Forensics questions

Found this useful? Pass it along.