How it works
Logs can show blocked connections, unusual destinations, repeated failures, unexpected ports, or connections outside normal hours.
Treat a log as evidence to investigate, not automatic proof. Correlate firewall, DNS, authentication, and application data.
Common error
A single unusual event may be benign; repeated or correlated signals are stronger.
Unit 3 topics and evidence practice
Investigate a fictional Mosaic Design Studio network through five topics: attack evidence, wireless policy, segmented paths, firewall decisions, and detection. All addresses, devices, domains, events, and measurements are teaching examples. Public-looking addresses use documentation ranges, and .test names are not live services. Existing foundation lessons and exercises remain available. Configuration artifacts describe a lab policy, not changes to a live network.
3.5 Detecting Network Attacks
Choose appropriate visibility, correlate the original records, and evaluate a detector with both false alerts and misses. Treat a reported action, prediction, and completed application outcome as different evidence.
- 3.5.A Automated Network Detection Tools
- 3.5.B AI-Enhanced Threat Detection
- 3.5.C Choosing a Detection Method
- 3.5.D Evaluating a Detection Method
- 3.5.E Finding Attacks in Network Logs
Read topic 3.5 notes, evidence, and quick checks
3.5.A: Distinguish IDS, IPS, and SIEM by deployed behavior
In these examples, a passive network IDS analyzes copied traffic and alerts; an inline IPS can enforce configured decisions on traversing traffic. A host detector observes relevant endpoint activity. A SIEM collects, normalizes, correlates, and presents records from configured sources. Products can integrate response tools, so verify the mode and action. A SIEM does not automatically collect every event, decrypt every session, or become a firewall merely because it raises an alert.
Place sensors where the relevant evidence exists
A sensor at the internet edge may miss internal or same-VLAN traffic. A mirrored feed can lose packets or have limited coverage; a host sensor has a different view. Protected application payloads can remain unreadable to a passive network observer, while application or endpoint logs can report authentication outcomes. Record the source and observation point so a correlation view does not imply that one sensor saw everything.
3.5.B: Use AI to prioritize and explain, with accountable review
An approved assistant can group related records, compare patterns, and suggest follow-up questions more quickly. Minimize provided data and protect secrets, personal information, and connected actions. Require record identifiers, uncertainty, and review against the actual configuration and normal work. A confident summary of a port or a later permit is not proof of an intrusion or authority to disable a whole network.
3.5.C: Compare signature, anomaly, and behavior approaches
Signature detection matches a specified pattern and can miss activity outside its coverage or flag benign matches. Anomaly detection compares behavior with a baseline and can reveal unfamiliar deviations while also alerting on legitimate changes. Behavior/context methods examine activity sequences or roles and can complement either. No method guarantees all known attacks, all novel attacks, or a fixed false-alert rate. Match the method to the asset, available visibility, and review capacity.
3.5.D: Evaluate detection and disruption costs separately
Use representative labeled cases to count true positives, false positives, false negatives, and true negatives. Alert precision asks how many raised alerts are malicious; recall asks how many malicious cases were detected. A large benign majority can make overall accuracy look high even when many alerts are false. Consider the harm of misses, response burden, event diversity, baseline changes, and whether a false block would interrupt required work.
Measure observation, alerting, acknowledgement, and action
An event timestamp, ingestion time, detection time, and response time are not interchangeable. Record time zones and clock differences. In the teaching timeline, an IDS alert occurs three seconds after the earliest shown firewall event and the SIEM alert occurs fifteen seconds after it. These are measured from the visible event, not proof of when an attack originally began. A delivered alert is not an acknowledged or successful containment action.
3.5.E: Correlate complete fields and actual outcomes
Repeated denied initiations may suggest probing or an incorrect client, but cannot alone establish password guessing. A later permit may use a different destination/port or reflect a policy change. Use identity and service logs to determine authentication, accepted application actions, or data access. Inventory/address history and owner confirmation help interpret a source; an IP or client label is not a permanent human identity.
Tune narrowly and keep response within its approved scope
Validate recurring benign alerts before narrowing a rule or exception, with an owner and review date. Keep the relevant coverage and do not suppress every event from a noisy segment. A false positive IPS block can disrupt legitimate traffic; a false negative can leave harmful behavior unnoticed. Escalate, investigate, and contain proportionately through the authorized process, preserving evidence and required service/recovery paths.
Keep the original evidence and distinguish each stage. An alert alone is neither proof of an application action nor authorization for unrestricted containment.
1. Collect
Record the reporting system, path, timestamps, complete flow fields, and protected originals.
2. Correlate
Compare firewall, identity, application, endpoint, and change context with their visibility limits.
3. Evaluate
Review hypotheses, false alerts, missed cases, and the likely service impact.
4. Respond and verify
Use the approved proportionate action, confirm outcomes, and retain recovery and review ownership.
| Tool or method | Useful capability | Limit and validation |
|---|---|---|
| Passive network IDS | Analyze the observed traffic copy and raise detections. | An alert does not establish delivery or blocking elsewhere; verify coverage and feed loss. |
| Inline IPS | Inspect and apply configured actions on the traffic path. | A drop covers the observed decision, not complete containment; test false-block impact. |
| Host detection | Observe relevant process, file, account, or local-service activity. | Needs suitable installation, configuration, protected records, and permitted access. |
| SIEM correlation | Collect and link configured records across systems. | Missing input or bad timestamps can distort a story; correlation is not proof of causation. |
| Signature match | Recognize specified patterns. | Known-pattern coverage is finite; benign matches and uncovered variants are possible. |
| Anomaly / behavior analysis | Compare baseline, role, or activity sequences. | Legitimate change can deviate; validate the baseline and actual task before enforcement. |
| Detector outcome | Actually malicious | Actually benign |
|---|---|---|
| Alert raised | 51 true positives | 72 false positives |
| No alert raised | 9 false negatives | 2328 true negatives |
A permit after denials is still not a successful password
FICTIONAL CORRELATION VIEW — 2026-11-02 UTC, synchronized clocks
01:12:04 boundary: rule 60 DENY guest 10.186.11.28 -> front .55.10 TCP/22
01:12:05 boundary: rule 60 DENY guest 10.186.11.28 -> DB .33.20 TCP/5432
01:12:07 passive IDS: internal-service-probe, src .11.28, action=alert
01:12:12 boundary: rule 30 PERMIT guest 10.186.11.28 -> front .55.10 TCP/443
01:12:15 front-end application audit: authentication rejected for that request
01:12:19 SIEM: correlation alert created from the listed records
01:14:04 approved test-device access restriction applied and verified
Unknown: human actor, exact process, other paths, or other application activity.
The application audit is a separate source; the passive IDS did not decrypt it.The allowed HTTPS flow is a different service from the denied SSH/database initiations. The firewall permit does not prove a correct password; the matching application record reports rejection. The repeated attempts and IDS alert justify investigation but do not establish the full attack method or data access. From the earliest shown event, IDS delay is 3 seconds, SIEM delay 15 seconds, and the verified access restriction 120 seconds; those are separate stages, not a universal response guarantee.
Review the detector counts before approving automatic disruption
FICTIONAL LAB EVALUATION — labels independently reviewed
Malicious cases: 60; benign cases: 2400; total: 2460
Raised alerts: 51 malicious + 72 benign = 123
No alert: 9 malicious + 2328 benign = 2337
Recall: 51 / 60 = 85%
Alert precision: 51 / 123 = approximately 41.5%
False-positive rate among benign cases: 72 / 2400 = 3%
Overall accuracy: (51 + 2328) / 2460 = approximately 96.7%
AI draft: "96.7% accuracy means all alerts are confirmed attacks;
automatically disconnect the whole studio whenever one appears."The accuracy arithmetic does not justify the proposed action: most raised alerts here are benign, and nine malicious cases were missed. Validate representative cases and context, review alert burden and harmful misses, and use only an approved narrow response with service-impact and recovery checks. These teaching results do not predict every future network or prove that one method is universally superior.
Vocabulary in context
- IDS
- A detection function; its sensor placement and deployed mode determine the observations and actions available.
- IPS
- An inspection/prevention function able to enforce configured decisions on observed traffic.
- SIEM
- A platform collecting and correlating configured security records.
- False positive / false negative
- A benign case incorrectly alerted on, or a malicious case missed.
- Precision / recall
- The malicious fraction of raised alerts, and the detected fraction of malicious cases, respectively.
- Detection latency
- Time from a defined observation or event reference to a specified detection stage.
Quick checks
Form your answer, then open the question to compare your reasoning.
1. Can a passive IDS alert prove that no other device blocked the flow?
No. The IDS observed its match; a firewall, endpoint, or application may have denied it elsewhere. Correlate the actual path and outcome.
2. What does an IPS drop establish without proving full containment?
The observed matching traffic received the reported action at that sensor. Prior activity, other paths, endpoints, and successful actions require separate evidence.
3. Does a SIEM automatically collect every event or decrypt every application session?
No. Its visibility depends on configured inputs and available evidence. Correlation of application logs does not mean a passive network sensor read the encrypted payload.
4. Why are signature and anomaly approaches complementary rather than guaranteed opposites?
Signatures have finite pattern coverage and can false-alert; baseline methods can detect unfamiliar deviations or legitimate changes. Validate the actual task, data, and error costs.
5. How many of the 123 raised alerts are malicious, and what is their fraction?
51 are malicious, giving 51/123 ≈ 41.5% precision. The other 72 are false positives under the stated labels.
6. What are recall and the false-positive rate among benign cases?
Recall is 51/60 = 85%, with nine malicious cases missed. The false-positive rate is 72/2400 = 3%; these use different denominators.
7. Why does about 96.7% accuracy fail to justify disconnecting the whole studio?
The benign majority affects the score, most alerts in the sample are benign, and malicious cases were missed. Authority, consequences, context, recovery, and a proportionate policy are still required.
8. How long after the earliest shown event do the IDS alert, SIEM alert, and access restriction occur?
3 seconds, 15 seconds, and 120 seconds respectively. The reference is the visible 01:12:04 event, not a proven intrusion start time.
9. Does the later TCP 443 permit prove that the preceding SSH denials ended in a successful password?
No. The service differs, permit is an enforcement decision, and the matching application record reports authentication rejection. Do not infer a successful login from this sequence.
10. What should an approved tuning or response process preserve?
Evidence, necessary detection coverage, required service, review ownership, and a recovery path. Scope exceptions or containment narrowly and verify the outcome instead of accepting a generic AI all-clear or mass-block recommendation.
Worked example
Assess a sequence of denied connections without declaring compromise from one indicator.
Evidence
09:01 workstation -> database TCP 5432 DENY
09:02 same workstation -> file-server TCP 445 DENY
09:03 endpoint alert: unexpected processThe repeated denied attempts plus the endpoint alert justify investigation of the workstation and process. Denial records show the boundary blocked those observed attempts; they do not prove that no other path succeeded. Correlate authentication, endpoint, and service logs.
Exercises
Exercise 1
What is the difference between a blocked-connection log and evidence that a sensitive file was read?
Show solution
The first records an attempted flow that was denied at that control. Successful file access requires corroborating service, application, or file-audit evidence.
Exercise 2
Name two useful next evidence sources for the unexpected process.
Show solution
Review process execution and parent-process records, file identity and endpoint alerts, and relevant account or network records. Preserve originals and compare event times.
