When a dataset ships with a training half and a testing half, it invites you to build a detector. This article is about what the split lets you prove, and what it quietly leaves out.
First establish how the split was made. If frames from one capture were shuffled and divided at random, adjacent frames of the same attack appear on both sides, and your detector can memorise the run. If whole captures went to one side, the test is harder and more honest. If the split is by time, the test shows how a rule ages. The documentation should say which one it is. If it does not, say that it does not, and do not guess.
Next, count. How many frames of each class are in train and in test? A test half with a handful of attack frames cannot support a claim about recall, and a test half with thousands of nearly identical frames overstates how many independent events you saw. Report both frames and events.
Build the simplest detector that could work. For GOOSE, a rule on goose.stNum jumping by more than one, a source address not seen in training, or a control block reference with an unexpected confRev are all easy to write in a short script over a tshark field export. Tune the thresholds on training data only. Freeze the rule. Then score it once on the test half. Scoring repeatedly and adjusting is training on the test set by another route.
Report the whole confusion table. Precision and recall per class, false positives per hour of normal traffic, and the time from the first attack frame to the first alert. The last number is the one operators care about, and accuracy alone hides it.
Understand what the set cannot show. It comes from one emulated environment. A rule that works there has shown that it works there. It says little about a different relay vendor, a different retransmission setting or a network carrying real background load. State this in the result, because a reader skimming the table will not.
Licence handling needs a plain statement. ShareAlike means that anything we derive and distribute must carry the same terms, which is a real commitment even for non-commercial use. For now we describe the method and link to the record, and the learner fetches the data. Re-check the licence on the record, because the Kaggle declaration is not a check against the original source.
Finally, publish your negative results. A rule that fails on the test half is a useful finding, provided the notes say why it failed. Keep the training script, the frozen rule, the scoring script and the data checksum together.
A short word on tooling. Do the whole experiment as a script that starts from the raw capture and ends in a results table, with no manual steps in between. Export fields with tshark, load them into a small program, apply the frozen rule and print the table. A run that can be repeated by one command is a result someone else can check, and one that depends on hand edited intermediate files is not.
If you later compare two detectors, give them the same split, the same data and the same scoring code. Differences in the way two people prepared the data are often larger than differences between the detectors, and a fair comparison removes that variable. State the split and the scoring in the first lines of your write up.
For structured practice on this topic, see the OnlySecurity course IEC 61850 Substations II: GOOSE, SV and MMS Attack Analysis.
More from this author
- One capture, three questions2 December, 2026
- Payload channels versus timing channels2 December, 2026
