Small captures, big lessons: Maynard, Netresec and the sample files

3 min read188 courses on OnlySecurity

Not every useful capture is large. The cheapest way to learn IEC-104 is to read a few tiny files completely, and three sources are small enough to do exactly that.

The first is the Queen’s University Belfast testbed capture, about 38 MB. It records a quiet testbed with a controlling station that occasionally issues commands, which makes it a clean baseline file. It works twice, once to learn what quiet looks like and once to find the loud master. Because it is under CC BY 4.0, it is the safest of the three to discuss in detail, provided attribution names the authors you confirm on the record.

The second is a file transfer capture published by Netresec. File transfer in IEC-104 uses dedicated type identifiers for directory, file and segment, and it is the quietest kind of sensitive operation, since nothing in a normal capture looks like it. A learner who has only seen commands and measurements will miss it. The licence is not stated and the capture’s original provenance cannot be traced. Cite it, link out, credit Netresec, and say that no licence is stated. Learners fetch it themselves and record the hash.

The third group is the sample files collected in protocol libraries, one per protocol, usually a handful of packets. They are the right place to learn the frame layout: the start byte, the length, the control fields, then the ASDU with type, variable structure qualifier, cause, originator, common address and objects. Open one in Wireshark and click through each byte until every one has a name.

Reading small files completely teaches three habits. Check the TCP handshake and the link level start, since a data transfer begins only after a start data transfer activation is confirmed. Check the send and receive counters, which advance in step in a healthy session. And check the time of each frame, because command and confirmation pairs let you measure response time, which becomes your baseline for a slower, noisier file.

What small files cannot teach is scale. They have no background, no long term drift and no rare events. They are scaffolding. Once the layout is familiar, move to a large set and apply the same routine with slicing.

A short rule for using any of these in teaching: link to the original, give the authors credit, write your own explanation, and never reproduce upstream write ups. If a file’s licence is unclear, say so in the notes rather than guessing. Hash each file when you fetch it, and keep the hash with the source URL and the date you downloaded it.

A last practical note on file handling. Small files tempt people to keep them on a laptop forever, with no record of where they came from. Within a month nobody can say which version it was or whether the licence allowed sharing. The habit costs two minutes: one line in the manifest with the URL, the date, the licence as stated, and the hash. For a figshare record that serves a browser challenge to scripts, say so in the notes and let the learner download it by hand in a normal browser, rather than working around the check.

When you write the lesson text, say what each file is for. The testbed capture is for baselines, the transfer capture is for recognising a quiet operation, and the samples are for the frame layout. Give each a single question a learner can answer from the file alone, and a hint that points at a display filter rather than at the answer. Questions of that shape survive a change of host, because they depend on the bytes and not on the page.

For structured practice on this topic, see the OnlySecurity course IEC 60870-5-104 Traffic Analysis: ASDU Anatomy to Command Abuse.

More from this author