Reading a KNXnet/IP intrusion dataset before you trust its labels

3 min read188 courses on OnlySecurity

A published intrusion dataset for a building protocol is rare, so it is tempting to open it and start training a detector straight away. The better first step is to read it as a document. Every dataset is a set of choices made by its authors, and those choices decide what you can honestly conclude from it.

Start with size and shape. The full set is large, 2.84 GB across 27 files by our own measurement, and it is split into eight captures, labelled tables and a readme. You do not need all of it for a first study. Pick one capture for each behaviour the authors describe and one labelled table, and note their SHA-256 checksums before you do anything else, and compare them with the MD5 the Zenodo record lists, or with the SHA-256 list we publish, so you know you have the same bytes. Keep the originals unmodified and work on copies, so another reader can reproduce your numbers.

Next, find the vantage point. A building network has a field bus (usually twisted pair), an IP backbone, and a supervisory layer. A capture on the IP side sees KNXnet/IP, which normally rides on UDP port 3671, and sees nothing of the bus itself except what a gateway forwards. State in your notes where the sensor sat. If the capture was taken inside a test rig, say so, because a rig has few devices, regular timing and no maintenance traffic.

Then read the labels with suspicion. Labels in a dataset like this come from the experiment script: the authors know when they started a scan or a flood, so they mark those frames. That is useful, but it is not independent review. Check three things. Do label boundaries line up with the packets (does the first attack frame fall where the label turns on)? Are there packets inside an attack window that belong to normal polling and are labelled as attack anyway? Is the normal class genuinely normal, or does it contain the setup traffic of the experiment? A detector scored against labels with those flaws learns the experiment, not the attack.

Count behaviours, not files. Several captures will repeat the same idea at different rates or durations. For a learner the useful inventory is a short table: behaviour, what it looks like in packets, how long it lasts, how it was labelled. Four or five rows is typical.

Finally, think about transfer. A rig has a handful of devices and one engineer. A real building has hundreds of group addresses, scheduled scenes, visualisation servers and contractors who connect without notice. Rates and thresholds tuned on a rig will be wrong at a site. The method transfers, the numbers do not.

Licensing: the record is CC BY 4.0 per the catalog, so credit the authors in anything you write and keep the licence name beside any excerpt. Confirm the terms on the record itself before publishing, because the inventory says the author list is truncated.

A practical close: write one paragraph per behaviour in your own words, covering who sent what to whom, at what rate, and what the label says. If you cannot write that paragraph, the dataset has not yet taught you anything, and no model score will substitute for it.

One last point on ethics and handling. A dataset collected in a building, even a test rig, can contain addresses, device names or comment text that identify a place or a person. Check for them before quoting anything, and leave them out of titles, screenshots and examples. If the capture does name a real site, treat that as sensitive and say nothing about it publicly. Nothing in a dataset review requires naming where the data came from beyond the citation the licence asks for.

For structured practice on this topic, see the OnlySecurity course Building Automation Security: KNXnet/IP, BACnet and Friends.

More from this author