PcapAnalyzer: Self-Hosted Network Traffic Analysis with Automated Problem Detection
Overview
PcapAnalyzer is a self-hosted network diagnostic tool designed to accelerate the identification of network faults by automating the analysis of .pcap and .pcapng files. By running 27 distinct detectors locally, the tool identifies issues ranging from TCP retransmissions and DNS failures to security anomalies like port scans and cleartext credential exposure, providing actionable insights without requiring traffic to leave the user's network.
Core Functionality and Detectors
The platform automates the analysis process by categorizing findings into specific network domains, each with defined severity levels and recommended remediation steps. The 27 built-in detectors cover:
- TCP and Path Issues: Including firewall blocks, retransmissions, duplicate ACKs, PMTUD black holes, and routing loops.
- Service and Infrastructure: Monitoring DNS performance (SERVFAIL, NXDOMAIN), DHCP anomalies, ARP storms, and duplicate IP addresses.
- Application and Tunneling: Detecting legacy protocols (SSL 3.0, TLS 1.0/1.1), HTTP/TLS errors, and misconfigured tunnels (IPsec, WireGuard, OpenVPN).
- Security Monitoring: Identifying port scans, ARP spoofing, and the use of insecure protocols like Telnet, SMBv1, or SNMP v1-v2c.
Beyond detection, PcapAnalyzer provides Wireshark-style visualization, including packet lists, flow diagrams, and expert info tables, while warning users if the capture quality itself—such as truncated packets or mirror port duplication—is limiting the analysis.
Privacy and AI Integration
PcapAnalyzer prioritizes local data sovereignty. The application runs entirely on the user's machine, and captures are never transmitted externally. An optional AI investigation feature allows users to query the capture data using Anthropic’s API. In this mode, the AI only accesses metadata and specific packet content requested by the user, and all data is purged from the system after 60 minutes of inactivity or upon manual deletion. For users who prefer not to use an API key, a demo mode generates text-based analysis without external connectivity.
Deployment and Usage
The tool is distributed under the Apache 2.0 license and supports deployment via Docker Compose. For non-containerized environments, it requires Python 3.9+, Node 20+, and tshark (the command-line component of Wireshark).
Community Perspectives
Discussion surrounding the tool highlights a broader trend in network observability. Users have noted the efficacy of using LLMs to generate "doctor scripts"—automated diagnostic tests that can be run against telemetry files to standardize troubleshooting. Others pointed to similar industry initiatives, such as CableLabs' NetLLM, which focused on proactive network management. Some users raised questions regarding data privacy in AI-assisted analysis, specifically whether the tool performs automated redaction of sensitive identifiers like IPs or MAC addresses before processing, emphasizing the importance of local-first analysis for sensitive network environments.