A covert channel is a way of moving information that the system was not designed to carry. In Modbus captures there are two broad families, and they leave very different evidence.
A payload channel puts the information in the content of packets: register values, coil states, record data, identifiers. The evidence is in the bytes. A reader who has the capture can extract it with a filter and a conversion, and once found it is unambiguous: either the values decode to something or they do not. Payload channels are the ones most exercises use, because they can be solved in a short time by someone who knows where to look.
A timing channel puts the information in when packets are sent. The packet contents can be completely normal. A sender that waits a short interval for a zero and a longer one for a one can move bits through traffic that an inspection of content would pass. The evidence is a distribution. If a client polls at a fixed period, you would expect inter-packet gaps clustered near that period. A channel shows up as two clusters, or as a spread that does not match the rest of the traffic.
Detecting each calls for different habits. For payload, you list values, group them by carrier and ask whether they look like process data. For timing, you compute gaps between requests from one source to one destination and look at the histogram. A tshark column of frame.time_delta_displayed after filtering to one conversation gives you the gaps, which you can then summarise in Python. Confirm the field name on your build.
Two cautions on timing. First, networks add jitter, so a small difference between gaps does not prove a channel. A capture taken at a mirror port, or after a switch, may have timestamps that reflect the capture point rather than the sender. Second, a periodic poll has natural structure, so a deviation could be a retry or a busy device. Look for a pattern that repeats and decodes to something meaningful, not a single odd gap.
Defence differs too. Payload channels can be limited by restricting which function codes and address ranges a client may use. Timing channels are harder, since the control is on rate and regularity, and the useful measure is often to detect that a conversation’s timing has changed. Both start from a baseline, which is why the course begins with learning what normal polling looks like.
A baseline is easier to build than it sounds. Pick a period you trust, filter to one client and one server, and record three numbers: the median gap between requests, the spread of the gaps, and the set of function codes and address ranges in use. Store them with the capture’s hash and the date. When a later capture of the same pair differs, the comparison is immediate. For a payload channel, a new function code or a new address range is the signal. For a timing channel, a second cluster of gaps is the signal. Neither needs a product to compute. A spreadsheet or a short script is enough, which also makes the method teachable and the results checkable by someone who was not there.
Our exercises that cover timing use own generated captures so that the intended gap structure is known exactly, and the challenge can state the sample rate and tolerance. That is not possible with an upstream capture whose generator is unknown.
For structured practice on this topic, see the OnlySecurity course Modbus Packet Forensics: Hidden Data, Odd Operations and Covert Channels.
More from this author
- One capture, three questions2 December, 2026
- UMAS inside Modbus: recognising an engineering session2 December, 2026
