A packet capture is data, but a capture of malware traffic can carry the malware itself. A file moved over SMB, an executable uploaded to a command and control host and a webshell pasted into an HTTP request are all bytes in the pcap, and some tools will happily reassemble them for you. The first skill in this subject is therefore not analysis. It is deciding what your tools are allowed to do.
Three words cover most of the practice: offline, hash, never run. Work on a machine or virtual machine that has no route to anything you care about, with snapshots so you can roll back. Hash every capture you download and compare the value with the one the publisher gives. If the publisher gives none, record your own so a colleague can confirm they hold the same file. Never run anything you carve, and never open it with a program that interprets content, such as an office suite or a script host.
A fourth rule belongs next to them: never replay. Replaying a capture with a tool that rewrites addresses and sends frames onto a live network turns a study aid into traffic. Control protocols such as Modbus, IEC-104 and the safety controller protocol discussed in other articles carry commands that a device will act on. A replay that reaches a real controller is an incident, not an exercise. Our courses teach detect and explain. They do not teach replay.
Be careful with the convenience features. Wireshark can export objects from several protocols, and tshark has an equivalent option. Exporting writes files to disk. That is sometimes what you want, for example to hash a transferred file, but do it into an empty folder inside the offline machine, and never double click the result. Antivirus on the host may flag the exported file or even the pcap. That detection is expected. It is a sign the capture contains what the publisher said it would, not a reason to disable protection.
Know what you are holding before you open it. capinfos reports packet count, duration and file size without decoding payloads in a GUI. tshark -z io,phs gives a protocol hierarchy, so you can see that a capture contains SMB or HTTP file transfer before you go looking for it. A capture over a gigabyte should be split with editcap and examined in slices, partly for speed and partly so you only ever expose the part you need.
Record your work as you go. Keep the file name, size, SHA-256, the command you ran and what you concluded. If your analysis later becomes a report, the reader should be able to repeat it. Do not paste payload bytes, decoded strings that look like credentials or full command lines from a sample into a ticket or a chat. Describe them and give a hash.
Lastly, be honest about licences. Many public captures state no licence, which means all rights are reserved. Download from the owner, credit them and link instead of redistributing. This article is the shared preface for every case article in this group.
Checklist to keep next to your keyboard: offline machine, snapshot taken, source recorded, SHA-256 compared, tools set to read only, exports into an empty folder, nothing opened that executes content, nothing replayed, notes written.
For structured practice on this topic, see the OnlySecurity course ICS Malware Case Files: Four Intrusions Read on the Wire.
More from this author
- One capture, three questions2 December, 2026
- Payload channels versus timing channels2 December, 2026
