Reading a Kaggle smart grid attack set: what to check before you trust it

3 min read188 courses on OnlySecurity

Kaggle hosts a great deal of useful data, and very little of it has been checked against its source. This article uses one smart grid set as a worked example of due diligence before analysis.

Start with provenance. Who uploaded it, who made it, and does the uploader match the authors of any paper or project page? If the project page names a different licence from the Kaggle page, the safer reading is the stricter one. Record both. In our inventory the Kaggle licence is an uploader declaration and has not been checked against an original source.

The licence itself deserves attention. GPL-3.0 is a software licence. Applied to data it is unusual and untested, and the copyleft terms could attach to anything that bundles the data. For that reason the set is a learner-fetch link and we never bundle it. We describe how to read it, cite it, and send learners to the source to download it themselves.

Check the file inventory. Which files are packet captures and which are scripts, spreadsheets or notebooks? If the set ships generator tools, note that running unknown tools is a risk of its own. Never run any generator on a machine connected to a real network, and treat the scripts as untrusted code. The aim is to read the captures, not to reproduce the attack.

Profile the captures. capinfos, then tshark -r file.pcap -q -z io,phs, then the layer 2 conversation list. The tools named in the plan suggest GOOSE fuzzing, GOOSE injection, MMS scanning and two flood styles. Match what each file contains to what the documentation claims, and write down any mismatch.

Look for generator fingerprints. Fuzzers produce frames with unusual or malformed fields, which a dissector may flag as malformed or truncated. Check Wireshark’s expert information for the file. Flood tools produce uniform rates and repeated addresses. Scanners produce a regular pattern of connection attempts to one port. These fingerprints are a good detection exercise because they are easy to see, and they also tell you the traffic was synthesised rather than observed.

Compare with at least one other set before drawing any conclusion. A single synthetic source tells you how that generator behaves. It tells you little about real devices. Say so plainly in anything you write.

Keep a data sheet for the set: source, uploader, declared licence, retrieval date, checksum, files used, and the checks above. Anyone reading your analysis later can then judge how far to trust it.

The general rule is simple enough to put on a card: provenance, licence, inventory, profile, fingerprint, cross-check. If any step fails, say so first, before the analysis.

A practical note for anyone teaching from a source like this. Because the generator tools are named in the plan, learners may be tempted to run them against a lab of their own. Official documentation for a protocol stack and for an emulator is the better route: it explains how to build a safe isolated lab, and it keeps the experiment on equipment the learner owns. We do not host a lab, and the article should say clearly that the reader builds their own, off any shared or production network.

When you write up the set, include a line on what you could not verify. It might be the exact tool versions, the capture host, or whether the captures were made from the generators named in the plan. An honest list of gaps is more valuable to the next reader than a confident description with hidden holes.

For structured practice on this topic, see the OnlySecurity course IEC 61850 Substations II: GOOSE, SV and MMS Attack Analysis.

More from this author