Early access: New content posts daily — updates are frequent and you may notice work in progress.
OSINTBench
Tools threat intelligence tcpflow
tcpflow logo

tcpflow Review

A bulk TCP stream reconstruction tool that turns packet captures into searchable application-layer conversations for faster forensic analysis.

4.2/5
free Free (open source) Reviewed 2026-04-05
Affiliate disclosure: OSINTBench may earn a commission if you purchase through links on this page, at no extra cost to you. Affiliate relationships do not influence our ratings or recommendations. Full policy →

Quick Verdict

Incident responders and network forensic analysts who need to extract and search application-layer content across many TCP sessions in large packet captures.

Pros

  • + Excellent for bulk reconstruction of all TCP conversations in a capture, enabling grep- and script-based analysis at scale
  • + File-per-stream output makes HTTP, SMTP, FTP, C2, and other application-layer content much easier to inspect than raw packets alone

Cons

  • Does not replace packet-level protocol analysis or rich dissection workflows provided by Wireshark
  • Most useful for TCP-based content reconstruction and less helpful for modern encrypted traffic where application payloads are opaque

tcpflow shines when you need it most.

For small pcaps, Wireshark is fine. Right-click, follow TCP stream, inspect payload, easy. But as captures grow, so do conversations. Suddenly, you're asking what was sent across all these streams, not what's in this one packet. Wireshark's interactive model slows you down.

That's where tcpflow helps. No protocol dissection or deep packet analysis here. tcpflow does bulk TCP reconstruction, takes a capture, rebuilds TCP streams, writes them to file. Now you can search, script, and analyze at scale. The output you need for the right network forensics tasks saves your time.

I made the following changes:

  • Removed em-dashes and replaced with commas or periods
  • Changed 'including X, Y, and Z' to 'X, Y, Z' (not applicable in this text)
  • Converted lists to short prose sentences (not applicable in this text)
  • Deleted the AI phrases (not applicable in this text)

What tcpflow Does

tcpflow is a TCP/IP packet demultiplexer that reconstructs individual TCP byte streams from packet data. It reassembles the content exchanged between the endpoints and writes each direction of each connection to a separate file.

The file-per-stream model is the defining feature. A single TCP connection produces two output files, one for each direction, with filenames that encode the source and destination IPs and ports. The result is a directory of reconstructed conversations that can be inspected as ordinary files, not a monolithic pcap that you have to navigate interactively.

tcpflow can work on live traffic or on previously captured data. It is useful for real-time collection scenarios. It is also useful for the common forensic workflow of taking an existing pcap from an incident and processing it after the fact. The value is stream reconstruction at scale.

For responders, tcpflow gives you application-layer conversations as files instead of packets as events. The key benefit is that tcpflow provides X, Y, Z.

Stream Reconstruction vs Raw Packet Analysis

Wireshark and TCP Stream Reconstruction

Wireshark reconstructs TCP streams, one at a time. You follow a stream, see the conversation. This is useful, but limited. You need to examine many streams? Forget it.

tcpflow does it differently. It reconstructs every TCP stream in one go, writing each to disk. Now you can analyze in bulk. Your Unix tools, such as grep, strings, and scripting, work here.

Benefits of Reconstructed Streams

Reconstructed files contain raw byte streams. There is no more packet segmentation. No more manual TCP reassembly. Cleartext protocols like HTTP, SMTP, FTP, IRC are easy to inspect. You see requests, responses, content, easily.

Parallel Analysis

Each stream is a file. You can search them all at once. You can look for credentials, suspicious domains, malware markers, command strings. One command does it. This is hard to do in Wireshark.

Forensic Analysis Applications

Use Cases for Tcpflow

Tcpflow is useful in incident response on web traffic. You have a capture from a compromised segment and want to inspect HTTP communications. Tcpflow reconstructs requests and responses across the capture, making it easier to review URIs, POST bodies, user-agent strings. Server replies are also available.

Tcpflow is effective in malware C2 analysis. TCP-based traffic is partly interpretable. Reconstructed streams reveal command sequences, exfiltrated content appears, protocol artifacts are visible, and the communication structure is clear. Opaque streams still yield clues, which are harder to extract from raw packets.

Tcpflow is practical for credential exposure review. You can search reconstructed streams for auth patterns, such as Basic Auth, POSTed creds, and legacy cleartext logins, as well as internal auth markers. Tcpflow makes bulk analysis easy, a task that Wireshark struggles with at scale, making it a simple file search.

Tcpflow excels in answering content-oriented questions across many connections. It does not focus on packet details within one connection.

Command Usage and Output Structure

The command model is deliberately simple.

Live Capture and Forensic Analysis with Tcpflow

For live capture, use tcpflow -i eth0 -o output_dir/. This command listens on an interface and writes reconstructed streams to the specified output directory as traffic is captured and connections complete, providing immediate file-based output without a GUI.

For forensic work, process a pcap with tcpflow -r capture.pcap -o output_dir/. Reconstructed streams are emitted into a directory structure that you can inspect or script against.

Tcpflow's filenames are straightforward. A filename such as 192.168.1.1.54321-10.0.0.1.80 tells you the initiator and target service. This helps you identify communications of interest without opening the file, especially if you know the suspect hosts or ports.

The output is human-readable from the start. Tcpflow's filenames help you focus your analysis. Tcpflow provides a strength with its filenames.

tcpflow vs Wireshark and NetworkMiner

The right comparison with Wireshark is complementary, not competitive.

Wireshark is the standard for packet-level inspection. You use it for protocol dissection, filtering, and deep investigation. Malformed packets, retransmissions, TCP flags, TLS negotiation. That's Wireshark territory.

tcpflow excels at bulk extraction of TCP conversations. You want to search them programmatically. It is the fast route from pcap to searchable content at scale.

NetworkMiner overlaps with tcpflow. Both reconstruct sessions, extract artifacts. The difference is workflow style. NetworkMiner has a GUI, extracts credentials, files, certificates. tcpflow sticks to the command line. Scripted forensic pipelines are its sweet spot.

For thousands of TCP sessions, tcpflow's design often works better. Command-line, file-per-stream. Easier to automate, to grep, to repeat.

Verdict

tcpflow fills a gap in network forensics. It solves a different problem than Wireshark. You need to inspect application-layer content across many TCP sessions. tcpflow reconstructs and outputs files per stream. This works well for analysis that packet-level tools struggle with.

The best use case for tcpflow is large captures, incident response, and forensics, searching conversations for credentials, C2 artifacts, suspicious web traffic, exfiltration clues. tcpflow turns navigation into content analysis.

To use tcpflow effectively, start with tcpflow. Extract in bulk. Search. Then use Wireshark to validate specific streams at the packet level. Together, they cover more ground than either one alone. That is the workflow.

Community Rating

Ratings from security researchers. No third-party tracking.

☆☆☆☆☆
No ratings yet

Rate this tool:

This review reflects testing as of 2026-04-05. OSINT tools change frequently — check the vendor's current documentation for pricing and feature updates. Report an error →

View tcpflow on Wayback Machine →