RepositoryPythonESTây Ban Nha
sebaandrada-cell

sebaandrada-cell/PcapAnalyzer

Free, self-hosted pcap analyzer with 27 problem detectors and AI investigation

246sao
5fork
0issue
1lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: packet-analysis

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: tshark

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: wireshark

#1 Repository của tuần

PcapAnalyzer

Versión en español: README.es.md.

Find the network fault in seconds, not hours. Upload a .pcap / .pcapng capture (gzip too) and PcapAnalyzer tells you what is failing, why, and what to check next. It runs on your own machine, so captures never leave your network.

Free and open source (Apache 2.0). Status: beta.

What it does

  • 27 detectors that run on every capture, each with a severity and a next step:
    • TCP: firewall blocks (SYN→RST), retransmissions, duplicate ACKs, loss and reordering, zero and full windows, resets after the handshake, slow handshakes.
    • Path: PMTUD black holes, low MSS, IP fragmentation, ICMP errors, routing loops.
    • Name and address services: unanswered or slow DNS, SERVFAIL, NXDOMAIN bursts, DHCP NAK / DECLINE / no answer, duplicate IPs, ARP storms.
    • Applications: HTTP 4xx / 5xx and slow responses, TLS alerts, SSL 3.0 / TLS 1.0 / 1.1.
    • Tunnels: IPsec (IKE and ESP), WireGuard, OpenVPN, GRE, L2TP and Teredo that are one-way, never answer a handshake or keep renegotiating.
    • Security: port scans and sweeps, cleartext logins (FTP, POP3, IMAP, SMTP AUTH, HTTP Basic; credentials are never stored or shown), Telnet / SMBv1 / SNMP v1-v2c, ARP spoofing, overlapping IP fragments.
  • Capture quality first. It warns when the capture itself limits the result: frames duplicated by a mirror port, traffic seen in one direction only, truncated packets, connections already open when the capture started.
  • Wireshark-style views: packet list with real Wireshark display filters over the whole capture, colouring, CSV export, expert info, HTTP / DNS / DHCP / TLS tables, response times and a flow diagram per conversation.
  • AI investigation (optional): an AI investigates the capture with tools (real filters, stream detail, statistics) and cites the packets behind every claim. You can then ask follow-up questions. It uses your own Anthropic API key; without one, a demo mode runs the full flow with text generated from the analysis, at no cost.
  • PDF report, Spanish and English interface, light and dark theme.

Quick start

You need Docker with Docker Compose. On Windows, run the script from Git Bash or WSL.

git clone https://github.com/sebaandrada-cell/PcapAnalyzer.git
cd PcapAnalyzer
./start.sh

The script creates a random access token (shown once, stored in .env) and starts the app. When the build finishes, open http://localhost:8080, paste the token into the "API token" field (top right) and upload a capture, or click "Try the sample capture".

The app listens on 127.0.0.1 only. Do not expose it on a network without an authenticated reverse proxy: the API can use your AI account. QUICKSTART.md has the details, the AI setup and troubleshooting.

Without Docker

You need Python 3.9+, Node 20+ and tshark (installed with Wireshark).

cd backend
python3 -m venv .venv
.venv/bin/pip install -r requirements-dev.txt
export API_TOKENS="$(openssl rand -hex 32)"
.venv/bin/uvicorn app.main:app --reload
cd frontend
npm install
npm run dev

Open http://localhost:5173 and paste the same token. If tshark is not on your PATH, set TSHARK_PATH to the binary.

Privacy

  • The capture is analysed on your machine. While an AI investigation lasts it is kept encrypted (60 minutes of inactivity, or until you press "Delete capture now") and is then deleted.
  • The AI is optional. It only sees what its tools return (packet metadata; packet content only if you switch it on for that session), never the pcap file.
  • No telemetry and no accounts for the self-hosted version.

Tests

cd backend && .venv/bin/python -m pytest -q    # needs tshark
cd frontend && npm test

Feedback

PcapAnalyzer is a beta. It has been tested with synthetic fixtures and public sample captures, and the most useful feedback is a capture where it misses a problem or reports one that is not real. Please open an issue at https://github.com/sebaandrada-cell/PcapAnalyzer/issues and describe the case. Do not attach captures that contain real credentials or customer data; anonymise them first or describe the pattern.

The technical reference (JSON schema, detector thresholds, limits, API errors) is in README.es.md, in Spanish.

License

Apache License 2.0. See NOTICE for third-party software: tshark / Wireshark (GPL) runs as a separate program and is not distributed with PcapAnalyzer.

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPython
bx33661/Wireshark-MCP

Wireshark-MCP,Give your AI assistant a packet analyzer. Drop a .pcap file, ask questions in plain English — get answers backed by real tshark data.

420
Dec 1, 2026
RepositoryGo
gcla/termshark

A terminal UI for tshark, inspired by Wireshark

10.1k
Apr 30, 2024
RepositoryC
wireshark/wireshark

Read-only mirror of Wireshark's Git repository at https://gitlab.com/wireshark/wireshark. You're welcome to submit pull requests there.

10.4k
Nov 30, 2026
RepositoryC++
hhhweihan/EasyTshark

EasyTshark是一个基于tshark的网络数据包分析工具,提供实时抓包和离线分析功能,支持数据包的SQLite存储和XML/JSON格式转换

501
Aug 20, 2026
RepositoryTypeScript
hepictel/webshark

webShark: Wireshark & PCAPs in your browser - now 100% WASM Powered! Open-Source Cloudshark alternative based on sharkd

322
Oct 20, 2026
RepositoryGo
cuishark/cuishark

A protocol analyzer like a wireshark on CUI. cuishark is using libwireshark to analyze packets. https://cuishark.slankdev.net

260
Jul 11, 2019
RepositoryCSS
pocc/tshark.dev

Repo to manage tshark.dev, deployed to netlify

88
Nov 9, 2026
RepositoryTypeScript
nilbuild/developer-roadmap

Interactive roadmaps, guides and other educational content to help developers grow in their careers.

373.1k
Dec 1, 2026
RepositoryMarkdown
DigitalPlatDev/FreeDomain

Free domain registration and practical DNS learning resources for everyone.

209.9k
Aug 12, 2026