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.
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.
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 network | If… | Prefer |
|---|---|---|
| How much traffic is there? | High traffic volume | Signature-based: faster and more efficient |
| How consistent is the traffic? | Consistent, predictable patterns | Anomaly-based: a stable baseline makes departures stand out |
| How sensitive or critical is it? | Very sensitive data or critical services | Hybrid: worth the extra cost and alerts |
| How likely are novel (new) attacks? | New attacks are expected | Anomaly-based, when hybrid costs too much (signatures cannot detect new attacks) |
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
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?
- 1High traffic volume favors signature-based detection: it is faster.
- 2Traffic is not consistent, so an anomaly baseline would flag normal changes constantly.
- 3The main threats are well known, so signatures cover them.
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?
- 1Traffic is highly consistent: an ideal baseline.
- 2New attacks are a concern, and signature-based detection cannot see them.
- 3Hybrid is too expensive, so anomaly-based is the preferred choice.
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?
- 1Highly sensitive and critical: the criterion that points to hybrid.
- 2Hybrid catches known attacks quickly (signatures) and flags new, unusual behavior (anomaly).
- 3The trade-offs, higher cost and more alerts, are acceptable for this network.
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?
- 1The allowed range is 40 − 15 = 25 MB to 60 + 15 = 75 MB per hour.
- 2310 MB is far outside that range.
- 3The 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.
7Common mistakes
A signature describes an attack already known. A brand-new attack has no signature, so signature-based detection cannot see it.
Anomaly detection needs consistent traffic. If normal varies wildly, alerts flood in for harmless changes.
A baseline must come from uncompromised systems, or the attacker's activity is treated as normal.
Hybrid is the most expensive and produces the most alerts. It is the best fit for sensitive or critical networks that can afford it.
“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.