One capture, three questions

3 min read188 courses on OnlySecurity

A capture does not come with one question. The same file can answer three, and a good analyst works through them in order of how much they cost. This article walks through the approach used in the capstone lesson, with an invented capture so that nothing here refers to a real facility.

Question one is what is in the file. Before any analysis, record the file name, size, SHA-256 and packet count, then the time span. List the hosts and the protocols. In our example, the capture has two hosts talking Modbus to a gateway and a third host that appears briefly. That alone is useful: three hosts, one of which is short-lived, so the short-lived host is the first thing to explain.

Question two is what happened. Take the function code summary. In the example, nearly all traffic is reads of holding registers at a steady period, with a small number of other operations. Those other operations are the story: a few reads of an unusual kind, then a short burst of writes from the third host. Put them on a timeline with the time, source, function code and a short description. Keep the language factual. A write was observed to a given address with a given value; it is not yet an attack.

Question three is what it means. This is where evidence stops and judgement starts, and it is the part reports most often get wrong. If the third host is not a known engineering station, the writes are unexpected. If the written values are within the normal range for that register, the immediate effect may have been small. If they are outside it, the effect depends on the process, which the capture does not show. Say what the capture supports, say what needs other evidence, and name that evidence: asset inventory, change records, historian data, device logs.

The three questions also give a structure for the write-up. A short summary on top, then the identification block, then the timeline, then the assessment with confidence stated, then recommendations that follow from the evidence. A reader should be able to check any statement against a filter or a packet number.

Two points of discipline apply. Do not let a clever decoding of a hidden value substitute for the timeline. The decoded string may be the answer to an exercise, but in an incident the more important finding is usually who did what and when. And never copy a command from the capture and run it against a device to see what happens. The capture is a record, and the record is the evidence.

The capstone lesson works the three questions on a capture you have already analysed in the course, so you can check each answer against your own earlier notes rather than against an upstream file whose answers are unknown.

When you finish, review your own report as a reader would. Does the first paragraph say what happened without jargon? Can each claim be traced to a packet number or a filter? Have you separated what the capture shows from what you infer? Is there a statement of what you could not determine? Have you listed the evidence you would request next? If any answer is no, fix that before adding detail. A shorter report that passes these checks is worth more than a long one that does not, because the reader will act on it, and the person reading may not be able to open the capture themselves.

For structured practice on this topic, see the OnlySecurity course Modbus Packet Forensics: Hidden Data, Odd Operations and Covert Channels.

More from this author