These are the errors that recur when people read testbed captures for flooding, replay and injection. Each one costs a wrong conclusion, and each has a cheap fix.
- Trusting the file name. A name such as a replay scenario tells you what the experimenters intended. It does not tell you which packet carries the replay, or whether the file also holds ordinary polling before and after. Find the evidence yourself and treat the name as a hint.
- Having no baseline. If you cannot state the normal polling interval and request mix, you cannot call anything abnormal. Measure the quiet part of the capture first, or use a baseline run from the same testbed, and write the number down.
- Counting packets instead of rate. A file with a hundred thousand frames is not a flood if it lasted an hour. Use per second statistics, for example tshark’s input output statistics at one second intervals, and compare to the baseline in the same units.
- Forgetting the vantage point. A capture taken at the master cannot show what the outstation received. A capture in the middle can show both and can still miss traffic that took another path. Say where the capture was taken before you say what happened.
- Treating a function code as a verdict. A restart request on the wire proves a restart was requested. It does not prove the device restarted, and it does not prove the sender was an attacker. Work out who sent it, whether the master’s schedule ever issues one, and whether a response followed. A cold restart is function code 13 and a warm restart 14, which a display filter on
dnp3.al.funcconfirms on a capture that holds them. - Calling every repeat a replay. Healthy masters retry after a timeout. Look for a missing response and a plausible timer before calling repetition hostile. Equally, do not call every odd frame an injection: sequence numbers wrap and links drop.
- Ignoring layers below DNP3. Injection and hijack evidence often sits in Ethernet and TCP, not in the application payload. A learner who filters only on the DNP3 layer sees valid frames and concludes nothing happened. Pair MAC addresses to IPs, follow TCP sequence continuity, and check IP identification and time to live per source.
A short checklist that avoids all seven: state the vantage point, state the baseline, state the rate, name the sender at layers two to four, say what a receiving device would do, and mark inference as inference. The last item matters most for credibility. The set is a lab, and the honest statement is what the protocol asked, not what the process did.
When you write findings up, add the false positive risk beside each rule you derive. A rule that fires on every cold restart in a testbed will also fire on planned maintenance at a real site, and the cost of that false alarm belongs in the report.
A worked example of the discipline. Suppose a file labelled as a restart scenario shows a single request with a control function code, from a source address you do not recognise. Before calling it an attack, ask four things in order. Does the master’s baseline ever issue this code? Is the source the master you recorded at the start, at the Ethernet, IP and DNP3 link layer, or only at one of them? Did the outstation answer, and with what? Does anything after the request change, such as polling resuming from a fresh sequence or a gap in responses? Each answer is a row in your run log. A request from a new MAC address with no matching baseline, followed by a gap, is a strong lead. The same request from the master’s own addresses is a scheduled operation until shown otherwise.
Reproducibility is the last check. Another analyst with only your log and the file should reach the same conclusion without asking you anything. If they cannot, the log is missing the packet numbers, the filters or the counts, and the finding is not yet finished.
For structured practice on this topic, see the OnlySecurity course DNP3 Under Attack I: Flooding, Replay and Command Injection.
More from this author
- One capture, three questions2 December, 2026
- Payload channels versus timing channels2 December, 2026
