Reading a university IEC-104 intrusion set: what the UOWM captures hold

4 min read188 courses on OnlySecurity

The University of Western Macedonia published an IEC 60870-5-104 intrusion detection set in 2022. It is large, which is both its attraction and its trap. The dataset record describes a family of capture files named after the command they attack: a monitoring flood, a single command, a setpoint command, a counter interrogation, a read, a reset process, a man in the middle that drops frames, and a denial of service variant of most commands. Read the dataset page for the exact file list before you plan around it.

The naming is useful because it tells you which type identifier to look for before you open the file. A file named after the single command should be dominated by type 45 sent from the controlling station. A file named after the setpoint should show type 48 or a neighbour. Check that the naming and the traffic agree, because the point of reading a labelled set is to confirm the labels, not to inherit them.

Start with a small file, never the whole set. Run capinfos for duration, frame count and link type. Then take a protocol hierarchy with tshark -r file.pcap -q -z io,phs and a TCP conversation table with -z conv,tcp. IEC-104 rides on TCP port 2404, so the conversation list gives you the controlling station and each outstation at once. Write down the pair, the port and the byte counts before you look at a single ASDU.

Next, extract the grammar. A typical extraction is -Y iec60870_asdu -T fields -e ip.src -e ip.dst -e iec60870_asdu.typeid -e iec60870_asdu.causetx piped to sort | uniq -c | sort -rn. In a quiet period you should see monitoring types flowing from outstation to controller with spontaneous and periodic causes. When an attack file is loaded the picture changes in a way that is visible in one table: a command type appears from a source, with activation as the cause, at a rate that the baseline never reached.

The denial of service variants are the best teaching material in the set, because they pair with a normal command file. Read the single command file, then its flood twin, and compare packet rate per second with -z io,stat,1. The same command that is one packet in one file is thousands in the other. That contrast makes the difference between a command and a flood concrete.

Three limits matter. The captures come from a lab built for the experiment, so background traffic is thin and every anomaly is easy to see. Labels come from the experiment design, not from independent review, so they are strong hints rather than ground truth. And because the files are big, learners who open one whole will wait a long time and learn little. Slice by time with editcap -A and -B, or by count, before you analyse.

A sensible study plan is one hour on a normal file, then one command file, then its flood twin, writing three lines for each before you move on. Record the SHA-256 of every file in your own notes so another reader can confirm they are working on the same bytes, and so a silent replacement upstream shows up as a changed hash. Do not copy the files into a course bundle. Link, credit the authors, and let each learner fetch them.

One last suggestion on reporting. When you write up what you found in the set, include the file name, the hash, the frame numbers and the display filters you used, and say which numbers you measured yourself and which you took from the dataset page. A reader should be able to repeat your count. If your count differs from the published one, say so and show the difference. That is useful to the authors and to other learners, and it is how a dataset review earns trust.

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