Reviewing a smart factory dataset: normal day, DoS day and the cost of labels you did not get

4 min read188 courses on OnlySecurity

A smart factory testbed produces a different kind of capture from a protocol library. It runs several industrial protocols at once, over a long period, on a network that looks like a modern plant: a controller, a few devices, an OPC UA server, some MQTT traffic and the layer 2 chatter underneath. A published dataset from such a testbed is one of the few places where a learner can see mixed traffic over hours rather than seconds.

The first lesson is scale. The inventory records the full set at 127 GB, which is not a download you do on a whim. Plan before fetching: read the dataset page, choose the single normal day and the single disruption day that the lesson needs, and fetch only those. Work on slices split by time (editcap -i 600 in.pcap out.pcap cuts a file into ten minute pieces in editcap 4.2.0; check editcap -h on yours) and keep every original untouched with its checksum.

The second lesson is that mixed traffic needs a mixed method. Start with protocol hierarchy statistics to see what the testbed runs, then take each protocol in turn. For OPC UA, the display field opcua.transport.type separates the transport messages, and sessions are easier to follow once you know which node IDs are being read or written. For MQTT, list the topics and the publishers. For the remaining traffic, check the layer 2 conversations with -z conv,eth. Build a baseline per protocol before you compare days: how many messages per minute, from which sources, to which destinations.

The third lesson is about labels. The inventory notes that the authors did not label the DoS window. That is a real situation and a useful one. It means any challenge or exercise built on the disruption day has to derive its own ground truth, by finding the point where a rate or a latency changes. A reliable way is to plot packets per second with -z io,stat,1 and look for the interval where it departs sharply from the surrounding baseline, then confirm in the protocol logs that the traffic in that window is what you think it is. Mark in your notes that the window is your inference, not the authors’ statement. A reader who sees an unlabelled event described as fact will lose trust in the rest of your work.

The fourth lesson is the hazard. Per our inventory of the set, 21 of its captures carry executable files in the PE and ELF formats; re-count at source before you rely on that number. Industrial captures of this kind may contain file transfers as part of the testbed’s traffic. Opening the pcap read only in Wireshark or tshark and reading packets and fields is the whole of the job. Never export objects or carve files from these captures, never save a reassembled transfer to disk, and never run anything found inside: a string that looks like a command stays a string, noted from the packet bytes. Hash every capture you download and record the value.

The fifth lesson is licensing. CC BY 4.0 allows reuse with attribution, including adaptation and redistribution of a derived slice. We still link rather than carry it: at 127 GB the set is for the owner to host, 21 of its captures carry executables so, per our rule for executable-bearing captures, it is link-out by SHA-256 only and nothing from it is bundled, and a learner who downloads from the source gets the maintainers’ updates. Where to fetch: the TU Wien record https://researchdata.tuwien.ac.at/records/ghdc6-45k78 (files a_day1.zip, a_day2.zip, s_day1.zip, s_day2.zip and a_day_tuesday_dos.zip, each at https://researchdata.tuwien.ac.at/api/records/ghdc6-45k78/files/<name>/content). The full set is about 127 GB. Credit the authors by name and DOI in anything derived.

Taken together, these lessons describe how to review any large mixed capture. Define the question first, take the smallest slice that answers it, build baselines per protocol, make your own labels and say so, and treat everything that could contain code as dangerous. The dataset is valuable because it is realistic. That is also why it demands more care than a clean test trace.

A final practical note: write the review as you go. A page that records what each slice contained, what you filtered and what you concluded takes ten minutes per slice and saves hours when you return to it. If the review ends with a list of questions the dataset could answer but you did not have the time to ask, it is more useful to the next reader than one that pretends to be complete.

For structured practice on this topic, see the OnlySecurity course Reading Industrial Protocols on the Wire: EtherNet/IP, OPC UA and the Wider Library.

More from this author