What Wireshark is

Wireshark began as Ethereal and is now stewarded by the Wireshark Foundation under the GNU General Public License version 2. It runs on Windows, Linux, macOS and the BSDs. The program captures packets from a live interface or opens saved captures and decodes them with a very large library of protocol dissectors, from Ethernet and IP up to HTTP, DNS, TLS, SMB and industrial protocols. Each packet is shown as a tree of fields, so an examiner can see exactly what was sent, in which order and with what flags.

In network forensics Wireshark is used to answer narrow questions precisely. Which host contacted which server, when, over which port, with what user agent, and what was transferred. Display filters narrow a capture of millions of packets down to the handful that matter. Follow Stream rebuilds a TCP or HTTP conversation as text, and the export objects feature pulls files out of HTTP, SMB and other protocols. Statistics menus give conversation tables, protocol hierarchies and I/O graphs that help find the odd flow in a busy capture. The command-line tool tshark does the same work in scripts.

Primary applications

Where it is used

  • Reading packet captures handed over from a sensor, firewall or incident responder
  • Reconstructing sessions and extracting transferred files
  • Confirming a timeline of connections between hosts
  • Identifying malware command and control traffic by pattern
  • Decrypting TLS sessions when the key log is lawfully available
  • Teaching protocol behaviour in training labs

Who uses it

  • Network forensic analysts
  • Incident responders
  • Security operations staff
  • Network engineers and students

Capabilities and limits

Major capabilities

  • Live capture and offline analysis of pcap and pcapng files
  • Dissectors for a very wide range of protocols with field-level decoding
  • Display and capture filters with a precise filter language
  • Follow TCP, UDP, TLS and HTTP streams as readable conversations
  • Export objects from HTTP, SMB, FTP and other protocols
  • Conversation, endpoint, protocol hierarchy and I/O statistics
  • TLS decryption with a key log file or server private key where lawful
  • tshark for command-line and scripted analysis
  • Lua plugins and custom dissectors

Technical limitations

  • Does not scale to very large captures. Carving a few hours of a busy link needs a tool like Arkime first
  • Encrypted traffic shows metadata only unless keys are available
  • A capture shows what passed the sensor, not everything that happened on the network
  • Live capture on an evidence host alters that host, so captures are normally taken from a span port or tap

Learning with DFRTI

Independent professional education covering the principles and workflows of Wireshark. DFRTI is not a vendor training centre and its courses are not vendor certifications.

Courses that cover this tool

Product names and trademarks belong to their respective owners. DFRTI is an independent educational and research institute. Inclusion in this directory does not imply manufacturer endorsement, partnership or authorisation. Facts are checked against the manufacturer's public documentation on the date shown and may have changed since.

Go deeper with DFRTI

Free pages explain the ground. Structured courses, lab work and a mentor take you from knowing about it to doing it on a case.