Detecting Network Attacks
Introduced
9:26
Securing Networks
You send a message to your bank. It arrives. The reply comes back. Everything looks normal. But someone is sitting quietly between you, reading every message…
English narration · English and 中文 subtitles you can switch
In this lesson
| English | Meaning |
|---|---|
| NIDS/nɪdz/ | network intrusion detection system: monitors traffic and raises alerts about attacks |
| NIPS/nɪps/ | network intrusion prevention system: sits in the traffic path and can block attacks |
| signature-based/ˈsɪɡnɪtʃə beɪst/ | detecting attacks by matching them against patterns of known threats |
| anomaly-based/əˈnɒməli beɪst/ | detecting attacks by comparing activity with a baseline of normal behaviour |
| baseline/ˈbeɪslaɪn/ | A reference level or state used for comparison when interpreting measurements or detecting changes. |
| SIEM/siːm/ | security information and event management: a system that collects and links logs from many sources |
A 75-cent error, 1986
- In August 1986 Clifford Stoll, an astronomer running computers at Lawrence Berkeley Laboratory, found that two accounting systems disagreed by 75 cents. Tracing the gap, he found an unknown user who had broken in. Over ten months of watching the intruder's activity he traced him to a hacker in West Germany selling information to the Soviet KGB.
- Stoll noticed something that did not match normal activity. Network detection systems look for the same kind of signal, automatically.
What first made Stoll suspicious?
Difficulty 1/5 · 100 coins + a small bonus on first completion today
A small anomaly.
Detection and prevention
- A NIDS 网络入侵检测系统 (network intrusion detection system) watches traffic and raises alerts. A NIPS 网络入侵防御系统 (prevention system) sits in the traffic path and can block it.
- A NIDS cannot stop an attack by itself; a NIPS can, but a wrong block can cut off real users.
Signature-based or anomaly-based detection?
Signature-based matches known attacks (fast, few false alarms); anomaly-based flags deviations from normal (catches new attacks).
Match each system to what it does.
Difficulty 2/5 · 140 coins + a small bonus on first completion today
Detect versus prevent.
Signature-based detection
- Signature-based 基于特征的 detection compares traffic with patterns of known attacks, like a fingerprint database.
- It is accurate for known attacks, but it misses new ones until a signature is written.

Signature-based detection can miss brand-new attacks.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
No signature exists yet.
Anomaly-based detection
- Anomaly-based 基于异常的 detection first learns a baseline 基线 of normal behaviour — usual login times, data volumes, connections — then alerts on large differences.
- It can catch new attacks but produces more false positives, for example when a real user works late.
What does anomaly-based detection compare activity with?
Difficulty 1/5 · 100 coins + a small bonus on first completion today
Large differences raise alerts.
Worked example: which method fires?
- A known worm sends its usual packet pattern: signature-based detection matches it at once.
- An employee account downloads 40 GB at 3 a.m., when the baseline is under 1 GB in the daytime: no signature matches, but anomaly-based detection alerts.
- Response: an analyst checks whether it was a backup job or stolen credentials.
A new, never-seen attack sends unusual amounts of data at night. Which method is more likely to detect it?
Difficulty 1/5 · 100 coins + a small bonus on first completion today
It differs from the baseline.
SIEM: putting it together
- A SIEM 安全信息和事件管理 (security information and event management) system collects logs from firewalls, servers, NIDS and devices in one place.
- It links related events — a failed login, then a new admin account, then a large download — into one alert.
What is the main job of a SIEM?
Difficulty 1/5 · 100 coins + a small bonus on first completion today
One place for events.
Detection is useless if nobody reads the alerts. Stoll succeeded because he followed up a tiny anomaly; assign people and time to investigate.
Installing a NIDS is enough even if no one reviews its alerts.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
Alerts must be investigated.
A NIDS alerts and a NIPS can block. Signature-based detection catches known attacks; anomaly-based detection compares activity with a baseline and catches new ones with more false positives. A SIEM gathers logs and links events.
A company uses only signature-based detection. Explain one risk and recommend an addition.
Combining methods.
What went wrong? Only the site team sees this.