A simulated grid at three sizes: reading the Sherlock IEC-104 captures

3 min read188 courses on OnlySecurity

The Sherlock captures are interesting because they are one idea at three sizes. The dataset holds a basic, a semi urban and a rural simulated grid, which suit one skill: inferring a network’s structure from the wire alone, with no diagram. That skill is the daily work of an analyst who inherits a capture from a site they have never seen.

Begin with the basic file. List the conversations with -z conv,ip and count the endpoints. Then extract the common address from each ASDU with -e iec60870_asdu.addr, and tabulate it against the source IP. A common address is the station identifier in the protocol, so a table of address against IP answers a plain question: which hosts are outstations, and which one is the master.

Then go one level down. For one outstation, list the information object addresses it reports, grouped by type. A group of one bit values is almost always switch positions or alarms. A group of floating point values is almost always measurements. You have now described a substation from packets alone, and you can say which objects a command could plausibly act on, because commands target object addresses that also appear in the monitoring direction.

Repeat the same procedure on the semi urban and rural files and compare. The number of stations rises, the report intervals differ, and the shape of the traffic changes with the topology. Note which of those are properties of the simulation and which are properties of the protocol. The simulation sets timing parameters, so a gap that looks like a fault may only be a configured interval. That caution applies to every synthetic set.

The honest limit of simulated data is that nothing in it is operationally surprising. Real networks carry quirks, vendor specific behaviour and misconfigurations that no generator reproduces. Use these captures to learn the method and build a reading routine, then test the routine on a messier source.

One exercise worth doing: build a one page inventory for each size, with station count, master count, object counts per type and the busiest conversation. Time yourself. A routine that takes an hour on the basic file and ten minutes on the rural one has become a method, not a one off.

Licence note: confirm the licence at the source before anything is quoted. The set is CC BY 4.0, so attribution to the named authors is required and our own tables and wording remain ours. Do not bundle the files.

A final point on method. When you compare the three sizes, resist the urge to explain every difference. Pick three measurable things, such as stations per master, objects per station and messages per minute, and record them in a table. Differences you can measure are findings. Differences you can only describe are guesses, and a reader cannot check a guess. If a number surprises you, return to the protocol hierarchy and conversation table first, because a mis-bound port or a truncated capture explains more surprises than any real feature of the grid does.

Keep a note of the timing too: record the interval between periodic reports for each station and compare it across the three sizes. If the interval is identical everywhere, it is a simulation setting rather than a property of the grid, and you should say so in your inventory. Analysts who skip this step often present configured values as discoveries, which a reviewer will spot at once.

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