When a dataset ships with labels, it is tempting to treat them as ground truth and measure your work against them. This article explains why they are better seen as an answer key, and how to use one without cheating yourself.
An answer key exists to be checked after you have committed to an answer. If you read the label column first, you have learned nothing about how to find the event. The discipline is simple. Pick a time window. Without looking at labels, state what you think happened and why, citing packet evidence. Write that down. Only then open the label file and compare.
The set pairs network capture with labelled tabular records. The labelled spreadsheets, supplied as CSV, mark traffic as normal or attack. Read the dataset’s own documentation and each file’s header row before you rely on a column, and do not assume from a column’s name what it holds or how finely it divides time. Load them with a script and join them to packet counts by time. Be careful with time zones and clock offsets. A one hour error will make every attack look like normal traffic, and the mistake is easy to miss when the join silently drops unmatched rows. Always print how many rows matched. A join that matched zero rows is a failed join, not a clean result.
Because the data is large, slice it. Do not download everything for a short exercise. Take the one day around a labelled event and the day before it, so you can compare.
Consider what the labels mean. A label marks the experimenter’s intended interval. Real attacks leave effects before and after that interval, and the labelling convention may include or exclude them. Plot the process variables around the edges. If the interval seems too tight, say so in your notes.
CC BY 4.0 allows reuse with attribution. Cite the authors and the DOI. State plainly if you filtered or transformed the data. Do not imply the authors endorse your analysis.
The value for a learner is in the mistakes it exposes. You will find that some labelled attack periods show almost no network change, because the attack worked on the process through a legitimate command. You will find that some normal periods look busy. Both teach the same lesson: network features alone do not define an attack, and a label is a human judgement, not a physical measurement.
Do not name any site in your write-up. Refer to it as a geothermal well testbed dataset and cite the dataset. The provenance note describes a semi-physical testbed, but any real operator or staff member can be identified from small details, and a learner exercise needs none of them.
Consider a short worked routine you can reuse. First, list the label values and count how many rows carry each one, so you know whether attacks are rare or common in the set. A set with one attack row in a thousand needs different evaluation than one split evenly. Second, choose a window with at least one labelled attack and one equally long normal window. Third, compute simple features per minute, such as packet count, distinct sources and write count. Fourth, plot them with the label shaded behind. Fifth, write your own guess of the interval from the features alone and compare it to the label.
Expect to be wrong sometimes, and record where. If your guess starts earlier than the label, the attack may have had a preparation stage. If it ends later, effects may persist after the labelled interval. Both are useful findings and neither is an error in the data.
Keep a clear line between the answer key and your own evidence in the write-up. Labels support a claim only when your independent packet evidence points the same way. Where they disagree, report the disagreement instead of resolving it quietly in favour of the label.
For structured practice on this topic, see the OnlySecurity course Siemens S7comm and S7comm-plus Traffic Analysis.
More from this author
- One capture, three questions2 December, 2026
- Payload channels versus timing channels2 December, 2026
