Seven mistakes people make reading DNP3

3 min read188 courses on OnlySecurity

These are the mistakes that recur when people first open a DNP3 capture, each with the check that would have caught it.

  1. Assuming Wireshark will dissect it. If the traffic is on a port other than the conventional 20000, you will see only TCP. Use Decode As on the port, and confirm the DNP3 tree appears before you count anything.
  2. Reading the link layer instead of the application layer. The link layer carries addresses and a control byte. The meaning of a message, what it asks for, lives in the application layer function code. People count frames and miss that the interesting field is two layers deeper.
  3. Confusing solicited and unsolicited responses. A response to a poll is solicited. An outstation can also send data on its own, unsolicited, when an event occurs. Treating every response as a reply to the previous request mislabels events as replies and misses the case where unsolicited reporting has been turned off.
  4. Ignoring the master and outstation addresses. DNP3 carries source and destination addresses in the link layer, separate from IP addresses. A change in the address pair with the same IP is a finding. A change in IP with the same address pair is also a finding. Record both.
  5. Calling a single odd message an attack. One restart request in a capture might be maintenance. The same request outside any change window, from a host with no history, is a different story. Decide by context and baseline, not by the function code alone.
  6. Trusting capture timestamps at the edges. Captures start and end where the person pressed the button. Rates computed over the first and last few seconds are distorted. Trim before you measure.
  7. Forgetting the responses. Every attack analysis must say what the outstation did. A request that gets no answer, an error indication or a response with unusual internal indications is half the story. Looking only at requests means you cannot say whether the operation was accepted.

Two further notes. Do not quote function code numbers from memory in your notes without a source. The table is public, but tables copied from a copyrighted standard may carry restrictions, and the dissector source is a safer reference to cite. And write down every claim with the packet number that supports it, so a reviewer can check you.

The common thread is that DNP3 analysis rewards a baseline and a habit of writing down what you saw before you decide what it meant. Mistakes 1 to 4 are about seeing correctly. Mistakes 5 to 7 are about concluding correctly.

A short self-check before you share any DNP3 analysis: can a colleague reproduce your numbers from the file checksum and the commands in your notes? Have you stated which port and which Decode As setting you used? Does every finding name a packet number, a source and destination address pair, and the response? Have you separated what the packets show from what you infer about the plant? If any answer is no, fix that first. Most of the damage from the seven mistakes above comes from reports that skipped one of these checks and reached a reader who trusted them.

For structured practice on this topic, see the OnlySecurity course DNP3 Traffic Analysis: Baseline, Recon and Single-Message Attacks.

More from this author