Reading a QUT-style S7 plant dataset

4 min read188 courses on OnlySecurity

Some of the best public S7comm material comes from a university testbed that simulates small physical processes, such as a reactor, a conveyor and a water tank, and drives them from Siemens PLC logic. Captures are published per scenario, with runs for normal operation and runs with an attack. Before opening any file, it is worth knowing what shape the set takes and what that shape allows you to conclude.

The first thing to notice is that the set is a collection of runs, not a continuous record. Each run is a short capture with a known start and a known behaviour. That makes it ideal for learning, because you can ask a precise question and check it against the stated scenario. It also means that per-run variants inflate the file count. Several runs often differ only in timing or parameters, so the number of distinct ideas in the set is much smaller than the number of files. When planning study time, count concepts, not captures.

The second thing is the vantage point. Most of these captures are taken on a mirror port or a host in the control network, so you see traffic between an HMI or engineering station and the PLC. You do not see what the physical process did. The process is simulated and its state is not in the pcap. Anything you claim about the plant must be inferred from the values in S7 reads and writes.

A sensible first pass uses three tshark commands. List the conversations to learn how many hosts talk and on which ports. S7comm normally rides on TCP port 102 (ISO on TCP, carried in TPKT and COTP), so a conversation table filtered to that port shows the master and the PLC quickly. Then count the S7 function codes to see what mix of reads, writes and control operations the run contains. Finally plot packets per second with the io,stat statistic to see whether the rhythm is steady or bursty.

Use the normal runs first. Write down the polling interval, the read size and the set of data addresses touched. This is your baseline, and every attack run in the set is a deviation from it. Without that note you will mislabel ordinary periodic traffic as suspicious.

Licensing matters for how you use the set. When no licence is stated, assume all rights are reserved. Download it yourself from the owner, credit the authors in anything you write, and never redistribute the pcaps. The set is useful for analysis and writing about method, which is exactly what a learner needs.

Three cautions apply. First, a simulated plant has no noise from real sensors, so statistical thresholds you tune here will be too tight for a real site. Second, authors choose attack timings that are easy to spot, so detection rates measured here are optimistic. Third, labels, where they exist, come from the experiment design and not from independent review, so treat them as strong hints.

Finish by writing a one-paragraph description of each scenario in your own words: what the PLC does, which addresses carry setpoints, which carry measurements, and what the attack run changes. If you cannot write that paragraph, you have not yet understood the capture, and no tool output will substitute for it.

Plan your time before you start. A useful exercise is to pick one normal run and one attack run from the same scenario and compare them end to end before touching any other file. Count the frames, the distinct function codes and the distinct data addresses in each, and put the two columns side by side. The differences are your findings, and they are usually fewer than you expect. Repeat for a second scenario only when you can describe the first in a paragraph.

Record your method as you go. Keep a notes file with the command you ran, the file it ran on, the checksum of that file and what you concluded. Another learner should be able to repeat your steps and reach the same numbers. If a result depends on a manual step in the GUI, write the step down, because that is the part most likely to be forgotten.

Finally, remember what the set cannot teach. It will not tell you how your own site behaves, how a vendor patch changes traffic, or how an attacker with legitimate credentials would look. It teaches a method, and the method is what you carry to real captures.

For structured practice on this topic, see the OnlySecurity course Siemens S7comm and S7comm-plus Traffic Analysis.

More from this author