What an IEC-104 command can do to a substation, and what it leaves in the capture

3 min read188 courses on OnlySecurity

IEC-104 is a telecontrol protocol. It carries measurements up to a control centre and commands down to a station, and it was designed for networks where everything on the wire was trusted. It has no authentication in its base form, so any host that can open a session to an outstation is treated as a legitimate master. That is why defenders read captures: the wire is the main evidence they have.

This article describes effects and evidence, not methods. Each command type does something specific.

A single command, type 45 in the standard (C_SC_NA_1), switches one two state object, such as a breaker or an isolator. Its sibling, the double command, type 46 (C_DC_NA_1), carries two bits so the end state is explicit, and many stations use it for breakers. In a capture it leaves an activation from the master, an activation confirmation from the outstation, usually followed by a change in a monitoring value for the same object a short time later. That follow up is the evidence that the command took effect, and its absence is evidence that it did not.

A setpoint command, type 48 and its neighbours, writes a target value, for example a tap position or a power level. The danger is slow: a series of small changes drifts the process without any one step looking alarming. The capture shows a run of setpoint activations to one object address with values that move in one direction.

An interrogation, type 100 for general and 101 for counters, asks the outstation to send its full state. It changes nothing, but it maps the station. A master that suddenly interrogates every station it has never talked to is doing reconnaissance, and the capture shows exactly that fan out.

A read command, type 102, fetches a single object. A reset process command, type 105, tells the far end to restart. Its effect is visible in the capture as a closed session, a reconnection and a fresh start of data transfer, and the monitoring traffic around it changes.

Availability attacks need no special command at all. Repeating any legitimate command at high rate occupies the outstation, and the evidence is a rate far above the baseline for that source and object. A man in the middle that drops frames shows up as gaps in the sequence counters while the endpoints stay up.

Mapping these to ATT&CK for ICS is useful for reporting, so long as the IDs are verified and the mapping is yours. The mapping tells a reader what class of behaviour they are looking at, and a report that uses it speaks the language incident teams already use.

The defensive lesson is the same each time. Know the baseline: who sends commands, which types, at what hours and rates. Detect departures from it, not the existence of a command. And preserve the capture with its hash, because the order of frames and the exact times are the evidence. Nothing in this article needs a lab or a live system, and none should be tried on a network you do not own or have written permission to test.

One more point for readers who run or advise a substation network. Protocol level fixes exist, such as IEC 62351-5 (security for IEC 60870-5 and derivatives) and the TLS profiles in IEC 62351-3, but most sites rely on network design: segmenting the control network, allowing only the known master to reach each outstation, and watching the wire for the departures described above. A passive sensor that logs source, type, cause and rate per pair costs little and produces exactly the baseline this article keeps returning to. Whatever you deploy, test the detection on captures first, never on the live process.

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