AP Cybersecurity · Study guide

Choosing a Network Detection Method

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

Choosing a Network Detection Method

Signature-based, anomaly-based, and hybrid detection, and the four network features that decide which one fits.

1Two ways to recognize an attack

Network detection tools need a way to decide what counts as an attack. There are two basic methods, and a combination of both.

Figure 1. Signature-based detection asks “have we seen this attack before?” Anomaly-based detection asks “is this different from normal?”

2Signature-based detection

Signature-based detection compares network data to a database of known indicators of compromise (IoCs), called signatures: the recognizable fingerprints of known attacks, such as a specific malware file, a known malicious address, or a known attack pattern in traffic. Signature databases must be updated with IoCs for the latest attacks. Signature-based detection runs faster than anomaly-based detection, which makes it efficient for networks with high traffic volume. Its weakness: it cannot detect a new attack that has no signature yet.

3Anomaly-based detection

Anomaly-based detection compares network data to a baseline of recorded normal activity. Baselines must be recorded on uncompromised systems, to establish the expected types and volumes of data. When data types or volumes fall outside a set tolerance range, it triggers an alert or action. It depends on the network having consistent traffic patterns; if “normal” changes all the time, everything looks unusual. Its strength: it can catch new attacks that no signature describes.

Why the baseline must be clean

If an attacker is already inside while the baseline is recorded, their activity becomes part of “normal,” and the system will never flag it.

4Hybrid detection

Hybrid detection combines signature-based and anomaly-based detection, catching known attacks quickly and flagging unusual behavior too. It is more expensive than either alone and generates more alerts.

5The four deciding questions

Question about the networkIf…Prefer
How much traffic is there?High traffic volumeSignature-based: faster and more efficient
How consistent is the traffic?Consistent, predictable patternsAnomaly-based: a stable baseline makes departures stand out
How sensitive or critical is it?Very sensitive data or critical servicesHybrid: worth the extra cost and alerts
How likely are novel (new) attacks?New attacks are expectedAnomaly-based, when hybrid costs too much (signatures cannot detect new attacks)
The key idea

Signature-based is fast and precise but blind to new attacks; anomaly-based catches the new but needs steady traffic and makes more noise; hybrid does both at the highest cost. Match the method to the network's volume, consistency, criticality, and the threats it faces.

6Worked examples

Worked Example 1 Choose the method

The busy retail network

An online store's network handles very high, constantly changing traffic (sales, promotions, holiday rushes). Its main concern is common, well-known attacks. Which method fits?

  1. 1
    High traffic volume favors signature-based detection: it is faster.
  2. 2
    Traffic is not consistent, so an anomaly baseline would flag normal changes constantly.
  3. 3
    The main threats are well known, so signatures cover them.
Answer: Signature-based detection, with the signature database kept up to date.
Worked Example 2 Choose the method

The factory control network

A factory's control network runs the same machines on the same schedule every day; traffic barely changes. Engineers worry about custom attacks no one has seen before, and the budget does not cover hybrid detection. Which method fits?

  1. 1
    Traffic is highly consistent: an ideal baseline.
  2. 2
    New attacks are a concern, and signature-based detection cannot see them.
  3. 3
    Hybrid is too expensive, so anomaly-based is the preferred choice.
Answer: Anomaly-based detection, with the baseline recorded while the network is known to be clean.
Worked Example 3 Choose the method

The hospital's records network

A hospital's patient-records network holds very sensitive data and must stay available. It can afford more security spending. Which method fits?

  1. 1
    Highly sensitive and critical: the criterion that points to hybrid.
  2. 2
    Hybrid catches known attacks quickly (signatures) and flags new, unusual behavior (anomaly).
  3. 3
    The trade-offs, higher cost and more alerts, are acceptable for this network.
Answer: Hybrid detection.
Worked Example 4 Read the anomaly

The overnight spike

A file server's overnight outbound traffic is normally 40 to 60 MB per hour, and the tolerance is set 15 MB beyond that range. One night it sends 310 MB in an hour. What does anomaly-based detection do?

  1. 1
    The allowed range is 40 − 15 = 25 MB to 60 + 15 = 75 MB per hour.
  2. 2
    310 MB is far outside that range.
  3. 3
    The system triggers an alert (or an automatic action) even if the traffic matches no known signature, which is how anomaly detection can catch data theft by a new tool.
Answer: It alerts, because 310 MB is outside the 25 to 75 MB tolerance range.

7Common mistakes

Common Mistake 1 · Thinking signatures catch new attacks

A signature describes an attack already known. A brand-new attack has no signature, so signature-based detection cannot see it.

Common Mistake 2 · Using anomaly detection on chaotic traffic

Anomaly detection needs consistent traffic. If normal varies wildly, alerts flood in for harmless changes.

Common Mistake 3 · Recording the baseline after a breach

A baseline must come from uncompromised systems, or the attacker's activity is treated as normal.

Common Mistake 4 · Choosing hybrid by default

Hybrid is the most expensive and produces the most alerts. It is the best fit for sensitive or critical networks that can afford it.

Justify a choice like this

“Anomaly-based detection is the best choice for the factory network because its traffic patterns are very consistent, giving a reliable baseline, and because the engineers expect novel attacks, which signature-based detection cannot detect. Hybrid detection would also work but costs more than the budget allows.”

Name the method and justify it with the network's volume, consistency, criticality, and likelihood of new attacks.