OpenCyber Academy
Technologist · Chapter 19 · English
Course code: OCA-091Chapter 19: OCA-091-C019

Chapter 19 — OT, IoT and cyber-physical security: monitoring

Open, free learning for anyone who wants to protect people and technology. No account is required to read this text or its worked answers.

Permanent link

Public activity · 30d

—Participating browsers

—Page views

—Reading sessions

—Exercise opens

Counts reflect browsers that allowed analytics. A reading session requires 30 seconds on a visible page. Browsers are not people.

Learning outcomes

You will (1) build a baseline of normal communication; (2) detect new hosts against that baseline; (3) triage alerts with operations; and (4) tune monitoring to avoid alert fatigue.

19.1 Baselines

OT networks are repetitive: the same devices talk to the same partners on the same schedule. That makes a baseline — the set of hosts and flows seen over a representative period — a powerful detector. Anything new is worth a look. NIST SP 800-82r3 recommends monitoring tailored to OT's predictable traffic.

"""Lab 19: flag hosts not present in a 7-day baseline of synthetic flow records."""
baseline_days = {"HMI-C", "PLC-R1", "PLC-R2", "HIST", "GW-LOG"}
today = ["HMI-C", "PLC-R1", "HIST", "LAPTOP-V3", "GW-LOG", "LAPTOP-V3", "PLC-R2", "UNKNOWN-10.4.2.77"]
new = []
for h in today:
    if h not in baseline_days and h not in new: new.append(h)
print("new talkers:", new)
print("events:", len(today), "unique hosts:", len(set(today)), "new:", len(new))

Run with python3 lab_talkers.py. Verified output:

new talkers: ['LAPTOP-V3', 'UNKNOWN-10.4.2.77']
events: 8 unique hosts: 7 new: 2

Priya's capture from SW-C supplied the baseline used in the lab: five hosts, HMI-C, PLC-R1, PLC-R2, HIST and GW-LOG, seen over seven days. Anything outside that set raises a new-talker alert, which is why the contractor's laptop and the dock printer both appear in the lab output.

19.2 Reading the alerts

LAPTOP-V3 appeared twice; UNKNOWN-10.4.2.77 once. The laptop is probably the contractor's (check the visit log). The unknown address is in no NCS subnet at all — that is more urgent, because it suggests a misconfigured device or a path the architecture does not include.

Both were resolved within an hour. The visit log showed the contractor on site with laptop V3 from 09:00 to 11:30, matching the alert times, so that alert was closed with the visit reference. The address 10.4.2.77 turned out to be a dock printer with an address from another site's plan.

19.3 Triage with operations

The analyst calls the facilities manager before acting: is a contractor on site? Did anyone add equipment? Operations context resolves most alerts in minutes. Only unexplained alerts escalate.

At NCS, both of the lab's new talkers were explained this way. The facilities manager's visit log showed the contractor on site with laptop V3 from 09:00 to 11:30, so that alert closed with the visit reference. The unknown 10.4.2.77 needed a walk to the dock, where a logistics printer was found in a camera-zone port. Neither required touching the control network. Had the visit log shown no contractor that morning, LAPTOP-V3 would have escalated at once.

19.4 Tuning

Expected changes — scheduled contractor visits, a new logger — should be added to the baseline through a change ticket, not silenced by a blanket rule. Review alert counts monthly; if most alerts are explained routine events, improve the change-ticket link rather than raising thresholds.

For NCS, contractor visits come with a ticket, so the visit-log link from Chapter 25's contractor pack lets LAPTOP-V3's appearance be matched automatically to an open ticket.

An alert with no matching ticket then goes to the security lead rather than being closed by the operator.

Worked example (synthetic NCS)

The visit log shows the contractor on site with laptop V3 from 09:00 to 11:30, matching the alert times. Priya closes that alert with the visit reference. The 10.4.2.77 address belongs to a dock printer installed by the logistics team with a static address from a different site's plan; it was plugged into a camera-zone port. It is moved, re-addressed and added to the inventory.

Synthetic case — Northgate Cold Storage. Hosts and the printer story are invented.

Errors and limits

A baseline captured while compromised treats the attacker as normal. Seven days may miss monthly activity.

Exercises

  • EX055 — Extending the baseline. If LAPTOP-V3 is added to baseline_days, what does the lab print as new talkers?
    Show marking criteria
    Rubric: 3 = ['UNKNOWN-10.4.2.77'] and new: 1; 2 = list only; 1 = unchanged; 0 = none.
  • EX056 — Why the unknown address is urgent. Explain in two sentences.
    Show marking criteria
    Rubric: 3 = outside any NCS subnet, implies unplanned path or misconfiguration; 2 = partial; 1 = vague; 0 = none.
  • EX057 — Tuning without blinding. Propose how scheduled contractor visits should stop generating unexplained alerts.
    Show marking criteria
    Rubric: 3 = visit ticket adds laptop to time-bounded allow-list/annotation; 2 = partial; 1 = ignore laptops; 0 = none.

Synthesis

Baselines turn OT's regularity into detection; triage with operations and change-linked tuning keep alerts meaningful.

Continue studying — chapter 19 of 30

← Chapter 18 (draft) · Course chapter index · Chapter 20 (draft) →

Practice the exercises

Open a prompt, write your response, then compare it with the worked answer. Five-choice practice appears where a reviewed question is available.

EX055

Opens in 30 days: — · browsers: —

Checking for a reviewed five-choice question…

EX056

Opens in 30 days: — · browsers: —

Checking for a reviewed five-choice question…

EX057

Opens in 30 days: — · browsers: —

Checking for a reviewed five-choice question…

Worked answers

EX055. new talkers: ['UNKNOWN-10.4.2.77'] and the summary line becomes events: 8 unique hosts: 7 new: 1.

EX056. 10.4.2.77 is not in any of NCS's three subnets, so either a device is misconfigured or traffic is arriving by a path the architecture does not include. Either case needs prompt investigation before it becomes normal.

EX057. When a contractor visit is booked, the ticket records the laptop's identity and the visit window, and the monitoring tool annotates alerts from that laptop during the window as "expected – ticket N" while still logging them.