Analyzing security data
SecOT+ SOT-001 · Lesson 25 of 33 · 4:05:29
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the SecOT+ SOT-001 exam (CompTIA SecOT+). In this lesson: control system data, network and boundary data, host and identity data, threat hunting, and tuning security tools, with Saltbrook Chemicals, a fictional maker of specialty chemicals, as the running example. Includes three original practice questions.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
A setpoint at two in the morning
At two in the morning, the historian shows that the setpoint of a chlorine dosing pump in Saltbrook's water treatment unit has changed. No work order explains it, and the operator on shift did not touch it. The answer is spread across many data sources: the control system, the network, the hosts, and the identity logs. This lesson covers how to analyze each source, how to hunt, and how to tune the tools that watch them.
Process logs
Process logs come from the control system itself: the historian's trends, the alarm and event logs, and the list of operator actions on the HMIs. They show what changed in the process, and when, down to the second. They also tell whether a change came from the process, such as a real pressure rise, or from a command.
Change logs
Change logs, or audit trails, come from controllers and engineering software: logic downloads, configuration changes, and setpoint writes, with the account and the station behind each one. Compare them with approved work orders: a change with no work order is the first thing to explain. Many older controllers keep no change log at all, so network data has to fill the gap.
Function codes
Every message of an industrial protocol carries a function code, which says what the message asks the device to do. In Modbus, function codes one to four fetch values, while five, six, fifteen, and sixteen write them, and forty three asks a device to identify itself. An analyst looks for writes from a host that normally only fetches values, and for unusual codes, such as identification requests sweeping the network. A burst of error replies, which come back with the function code plus one hundred twenty eight, can also mean someone is scanning or sending malformed messages.
IDS alerts and packet capture
Network data shows what the devices said to each other. IDS alerts, from the OT aware sensors of lesson twenty two, point to suspicious commands, new conversations, and known attack patterns. Packet capture gives the full detail behind an alert: the exact function codes, the values written, and any file or logic transferred, which an analyst can replay in a protocol analyzer.
Syslog, firewalls, switches, routers, edge
Syslog is the common format that switches, routers, firewalls, and many servers use to send their logs to a central collector. Firewall logs show allowed and denied flows: a denied flow from inside a control zone means a misconfiguration, or someone probing. Switch and router logs show ports going up or down, new MAC addresses, and configuration changes. Edge devices, such as VPN gateways and remote access appliances, show who connected from outside, from where, and when.
Access and identity logs
Host and security data starts with access logs from authentication, authorization, and accounting: who logged on, where, and when, the failed attempts, and with TACACS+, every command typed on a network device. Identity logs from the directory show accounts created, group memberships changed, and passwords reset. A new administrator account at night, or a logon from an unusual place, stands out once you know the normal patterns of each user.
EDR, EPP, OS, and application logs
EDR telemetry shows which process started which, the connections each one opened, and the files it touched. EPP alerts show files that were blocked or quarantined, and allow listing shows programs that tried to run and were refused. Operating system logs, such as Windows event logs, show new services, scheduled tasks, and USB devices, while application logs, such as those of the engineering software, show projects opened and logic downloaded.
Threat hunting artifacts
Threat hunting does not wait for alerts: it starts from a hypothesis, often drawn from threat intelligence, such as an attacker changing logic through the engineering software. The hunter then looks for the artifacts that this behavior would leave: new project files or logic downloads, new connections between zones, new accounts, services, or scheduled tasks, and unusual function codes. Remote sessions outside any work order are artifacts too. Whatever the hunt finds becomes a new detection rule, so the next occurrence raises an alert.
Tuning IDS and firewall rules
Tuning makes each tool fit the plant, cutting false positives without hiding real attacks. For IDS rules, start from the learned baseline, and suppress alerts for known engineering activity only within approved maintenance windows. Keep alerting on logic downloads and mode changes outside those windows, whatever their source. For firewall rules, remove the ones nothing uses, and log denied traffic, which turns the firewall into a sensor.
Tuning NPM, EPP, and EDR
Network performance monitoring, or NPM, watches latency, bandwidth, and packet loss, and its thresholds can catch security events too, such as a scan or a broadcast storm that slows the control network. EPP and EDR policies need exclusions for the folders and processes that the vendor of each OT application documents, and nothing broader. On critical hosts, keep responses set to alert only, as in lesson twenty, and roll out policy changes in stages.
Tuning the SIEM and SOAR
A SIEM correlates all these sources, which only works with synchronized clocks and parsers that understand industrial logs. Tune its rules with OT context: the asset criticality from the inventory raises the priority of alerts on the safety system and the reactor controllers. SOAR automates the response with playbooks: it enriches alerts, opens tickets, and gathers evidence. In OT, any automated action that could touch the process, such as blocking an address or isolating a host, waits for a person's approval.
Two in the morning, explained
Back to two in the morning. The IDS shows function code six, a single write, from the water treatment HMI, which normally only fetches values. The access logs show an integrator's account logging on to the bastion at one fifty eight, from an address never seen before. EDR on the HMI shows a scripting tool started just before the write, so the team opens an incident, which domain six covers.
Recap
Let's recap. Process logs, change logs, and function codes show what changed in the process, who changed it, and what each message asked. IDS alerts, packet capture, syslog, and firewall, switch, router, and edge logs show what crossed the network. Access, identity, EDR, EPP, operating system, and application logs show what happened on hosts and accounts. Threat hunting tests a hypothesis against artifacts, and turns findings into detections. Tuning fits IDS, firewall, NPM, EPP, EDR, SIEM, and SOAR to the plant, with people approving any action on the process.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
An HMI that has only ever sent function code 3 to a PLC suddenly starts sending function code 16. What changed?
- It now reads input registers instead of holding ones
- It began writing several registers at once
- It is asking the PLC to identify itself
- The PLC is returning error replies to it
Show the answer
It began writing several registers at once
Function code sixteen writes multiple holding registers, so the HMI has moved from viewing values to changing them. “It now reads input registers instead of holding ones” would still fetch values, from input registers, with function code four. “It is asking the PLC to identify itself” would be function code forty three. And “The PLC is returning error replies to it” would come back from the PLC, with the function code plus 100 twenty eight.
Saltbrook's firewall logs show hundreds of denied connections from one HMI to many addresses, all on port 502. What do they suggest?
- A normal polling cycle between the HMI and its PLCs
- A failed update of the HMI software
- A license check sent out to the vendor's servers
- The HMI is scanning for Modbus devices
Show the answer
The HMI is scanning for Modbus devices
Connections to many addresses on the Modbus port, mostly denied, look like a scan for Modbus devices. “A normal polling cycle between the HMI and its PLCs” would reach the same few PLCs, through allowed flows. “A failed update of the HMI software” would reach an update server, not dozens of addresses on the Modbus port. And “A license check sent out to the vendor's servers” would go to the vendor, not to addresses inside the plant.
Saltbrook's SOAR playbook can block an address automatically after an IDS alert. What should it do for hosts in a control zone?
- Enrich the alert and wait for a person's approval
- Block the address at once, on every single alert
- Delete the alert when the host is critical
- Isolate the HMI and restart the PLC
Show the answer
Enrich the alert and wait for a person's approval
The playbook gathers context and opens a ticket, and a person approves any action that could touch the process. “Block the address at once, on every single alert” could cut a legitimate HMI off from its controllers. “Delete the alert when the host is critical” would hide alerts from the most critical hosts. And “Isolate the HMI and restart the PLC” would disturb the process on the strength of one alert.