|

WireBrief: Turn PCAP Files into Readable Security Reports

Packet captures contain valuable evidence, but turning that evidence into a readable investigation report takes time. WireBrief is a Python tool that uses tshark to analyze packet captures and generate HTML and Markdown reports for security analysts.

It brings network conversations, DNS activity, HTTP requests, TLS metadata, and suspicious patterns into one reporting workflow. Its findings help guide an investigation; they do not automatically prove that a system is compromised.

What WireBrief Does

WireBrief organizes packet capture data into sections that are easier to investigate and document. Its main capabilities include:

  • Grouping repeated connections to simplify conversation analysis.
  • Associating destination IP addresses with DNS answers and TLS server names found in the capture.
  • Reviewing DNS, HTTP, and TLS metadata.
  • Flagging patterns such as regular connection intervals and unusual domain names.
  • Exporting HTTP objects and calculating file hashes.
  • Generating HTML and Markdown reports with supporting tshark output.

Requirements

The project documents the following requirements:

  • Python 3.8 or later.
  • tshark installed and available in your system PATH.
  • A PCAP or PCAPNG file to analyze.

WireBrief uses Python’s standard library, so it does not require third-party Python packages. However, tshark must be installed separately.

Check that both commands are available

python3 --version
tshark --version

Download and Run

Clone the repository and open its directory:

git clone https://github.com/blindtrace/WireBrief.git
cd WireBrief

Run the tool against a capture, replacing the example path with the location of your file:

python3 wirebrief.py /path/to/capture.pcapng -o report_out

The output directory contains:

  • report.html: The browser-based report.
  • report.md: A Markdown version for documentation.
  • raw/: Supporting tshark output and extracted artifacts.

Open report.html in a browser to review the results.

Reviewing the Report

1. Establish the Capture Context

Start with the capture duration, traffic volume, protocol distribution, and recorded input hash.

These details establish which evidence was analyzed and help you understand its scope. A short capture or a limited collection point may only show part of the activity.

2. Identify Relevant Hosts and Connections

Review internal conversations and external destinations to understand which hosts communicated and how traffic was distributed.

Grouped connections can help highlight repeated communication with the same destination. Review the associated ports, byte counts, and available domain information before drawing conclusions.

3. Investigate Suspicious Findings

Use the findings section to prioritize further analysis.

A regular connection interval may suggest automated communication. An executable downloaded over HTTP may deserve inspection. Neither observation alone establishes malicious activity.

Check the surrounding traffic and supporting evidence to determine whether the behavior is expected.

4. Correlate the Evidence

Compare findings across DNS queries, HTTP requests, TLS metadata, connection timing, and extracted files.

For example, a suspicious download becomes more informative when you can connect the request to a specific host, destination, timestamp, and extracted file hash.

5. Validate Important Observations

Return to the original capture in Wireshark or tshark to verify significant findings.

The generated report helps organize the investigation, while the underlying packets remain the source for validating network observations.

Understanding the Detection Rules

WireBrief uses rule-based heuristics to highlight activity that may need attention. Examples include:

  • Regular connection intervals that may indicate beaconing.
  • High volumes of failed DNS lookups.
  • Long or random-looking domain names.
  • HTTP requests associated with executable or script downloads.
  • Selected unusual user agents.
  • Large outbound transfers matching the tool’s thresholds.

Legitimate applications can produce similar patterns. Scheduled software checks can create regular connections, and administrative scripts can use command-line HTTP clients.

Treat each finding as an investigation lead and evaluate it in context.

Tuning the Allowlist

WireBrief supports a domain-suffix allowlist to reduce noise.

To use a custom allowlist:

python3 wirebrief.py capture.pcapng -o report_out --allowlist my_allowlist.txt

According to the project documentation, allowlisted destinations are excluded from detections and moved into collapsed report sections.

Review the allowlist carefully. A familiar provider or shared hosting domain does not make every connection trustworthy, and broad exclusions can hide relevant activity.

Limitations

Keep the following limitations in mind:

  • This version focuses on IPv4 traffic.
  • Encrypted application content is not decrypted; analysis relies on visible metadata.
  • IP-to-domain associations depend on information available in the capture.
  • Detection thresholds may produce false positives or miss suspicious activity.
  • Large captures may take longer because the workflow uses multiple tshark passes.
  • Results depend on the capture’s visibility and recording window.

WireBrief is useful for organizing network evidence and prioritizing analysis. Its reports still require analyst review and validation.

Source Code

The source code, usage instructions, and example screenshots are available in the WireBrief GitHub repository.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *