Skip to main content
Glama

Wireshark MCP — Painel Web Blue Team & Radar LAN

Painel web local-first (127.0.0.1:4173) integrado ao Wireshark-MCP.

Combina Radar LAN ativo (Camada 2/3/4) com triagem Blue Team baseada em evidências e integração opcional via JSON-RPC stdio com o servidor wireshark-mcp (tshark).


Principais Recursos

  • Estado Inicial Limpo (Zero Alucinação): Exibe apenas os dados reais da interface local, IP, sub-rede, gateway e status de conexão do wireshark-mcp.

  • Radar Topológico 360° (<canvas>):

    • Anel interno: Gateways / Roteadores

    • Anel intermediário: Computadores / Estações / Este Host

    • Anel externo: Demais dispositivos e MACs privados/randomizados (detecção pelo bit U/L byte[0] & 0x02).

  • Triagem Blue Team + Gaveta Forense de Evidências:

    • Separação entre achados confirmed (Confirmado) e candidate (Candidato).

    • Cada achado traz Observação, Impacto, Filtro de Exibição do Wireshark, Comando tshark equivalente e Mitigação.

  • Verificação Manual de Host & Auditoria Local:

    • Teste individual de IP e portas TCP personalizadas (/api/radar/verify-host).

    • Listagem de interfaces locais e portas em escuta (ss -tuln).

  • Integração com Wireshark MCP (stdio):

    • Quando wireshark-mcp e tshark estão instalados no ambiente, o painel conecta automaticamente e disponibiliza /api/mcp/interfaces e /api/mcp/analyze para arquivos .pcap/.pcapng em panel/data/captures/.


Related MCP server: mcp-wireshark

Estrutura de Diretórios

Wireshark-MCP/panel/
├── package.json
├── README.md
├── data/captures/          # Diretório confinado para capturas .pcap/.pcapng
├── server/
│   ├── index.js            # Servidor HTTP (127.0.0.1:4173) e rotas /api/*
│   ├── radar.js            # Motor de Radar LAN, detecção U/L e achados Blue Team
│   └── mcp-client.js       # Cliente JSON-RPC 2.0 sobre stdio para wireshark-mcp
├── public/
│   ├── index.html          # Interface principal + Gaveta Forense
│   ├── styles.css          # Tema escuro SOC / Blue Team
│   └── app.js              # Radar 360°, filtros, verificação e drawer
└── test/
    └── radar.test.js       # Testes automatizados (node --test)

Como Executar

Não requer dependências externas de npm (usa apenas módulos nativos do Node.js 20+).

cd /home/wdson/Documentos/skill/Wireshark-MCP/panel
npm start

Abra no navegador: http://127.0.0.1:4173

Variáveis de Ambiente Opcionais

Variável

Padrão

Descrição

HOST

127.0.0.1

Endereço de bind do painel

PORT

4173

Porta HTTP do painel

WIRESHARK_MCP_COMMAND

wireshark-mcp

Binário/comando do servidor Wireshark MCP

WIRESHARK_MCP_ARGS

serve --profile full

Argumentos passados ao wireshark-mcp


Testes

cd /home/wdson/Documentos/skill/Wireshark-MCP/panel
npm test

Available Tools

54 tools
wireshark_aggregateC
Read-only

[Primary statistics] Full-filter counts, groups, distinct values, numeric metrics, top-k, and time buckets. Field lists are comma-separated.

Inputs: pcap_file (required), top_k, sort_by, distinct, +8 more.

wireshark_analyze_protocolB
Read-only

[Protocol] Analyze one protocol with preset fields and filter. Returns a summary and bounded rows; BLE values add device inventory, scanners, GATT timeline, connection lifecycle, pairing.

Inputs: protocol (required), pcap_file (required), limit.

wireshark_analyze_tcp_healthB
Read-only

[TCP] Analyze TCP connection health (retransmissions, dup ACKs, zero window, resets).

Inputs: pcap_file (required).

wireshark_captureB
Destructive

Capture live network traffic. capture_filter: BPF syntax. ring_buffer: "filesize:1024,files:5".

Inputs: interface (required), output_file (required), ring_buffer, packet_count, +2 more.

wireshark_caseC
Destructive

[Case] Saved investigation. create(text=title,target=pcaps) record(text=tool JSON) verdict(target=finding id,text=confirmed|dismissed|open: note) note show report list

Inputs: action (required), text, target, case_id.

wireshark_decode_asC
Read-only

[Dissection] Decode-as for non-standard ports. Rules: 'tcp.port==8080,http;udp.port==5353,dns'.

Inputs: pcap_file (required), decode_rules (required), limit, fields, +1 more.

wireshark_decrypt_tlsB
Read-only

[Decrypt] Decrypt TLS traffic using SSLKEYLOGFILE, show HTTP data.

Inputs: pcap_file (required), keylog_file (required), display_filter.

wireshark_decrypt_wpaB
Read-only

[Decrypt] Decrypt WPA/WPA2 traffic with passphrase (+SSID).

Inputs: pcap_file (required), wpa_passphrase (required), ssid, display_filter.

wireshark_detect_arp_spoofingB
Read-only

[ARP] Detect potential ARP spoofing (duplicate IP-MAC, gratuitous floods, reply storms).

Inputs: pcap_file (required).

wireshark_detect_beaconingB
Read-only

[Anomaly] Detect periodic communication patterns (C2 beacons) by analyzing connection timing intervals and jitter.

Inputs: pcap_file (required), max_jitter, min_connections.

wireshark_detect_dns_tunnelB
Read-only

[Security] Detect DNS tunneling candidates (long query names, TXT abuse, high subdomain fanout).

Inputs: pcap_file (required).

wireshark_detect_dos_attackC
Read-only

[Security] Detect DoS/DDoS traffic volume patterns (SYN flood, ICMP/UDP flood, DNS amplification).

Inputs: pcap_file (required).

wireshark_detect_exfiltrationA
Read-only

[Anomaly] Detect data exfiltration (large outbound transfers, DNS length anomalies, non-standard ports).

Inputs: pcap_file (required), limit.

wireshark_detect_port_scanA
Read-only

[Security] Detect port scanning (SYN, FIN, NULL, Xmas scans). threshold: min unique dst ports to flag.

Inputs: pcap_file (required), threshold.

wireshark_detect_protocol_anomaliesB
Read-only

[Anomaly] Detect protocol anomalies (known protocols on non-standard ports, unusual protocol distributions).

Inputs: pcap_file (required), limit.

wireshark_editcap_deduplicateC
Destructive

Remove duplicate packets within a sliding window (default: 5 packets).

Inputs: input_file (required), output_file (required), duplicate_window.

wireshark_editcap_splitC
Destructive

Split a capture into smaller files by packet count or interval.

Inputs: input_file (required), output_prefix (required), packets_per_file, seconds_per_file.

wireshark_editcap_time_shiftC
Destructive

Adjust all packet timestamps by a positive or negative offset in seconds.

Inputs: seconds (required), input_file (required), output_file (required).

wireshark_editcap_trimC
Destructive

Trim capture to a timestamp window. Times in editcap format.

Inputs: input_file (required), output_file (required), stop_time, start_time.

wireshark_export_objectsB
Destructive

[Export] Extract embedded files from traffic. protocol: 'http'|'smb'|'tftp'|'imf'|'dicom'.

Inputs: dest_dir (required), protocol (required), pcap_file (required).

wireshark_extract_credentialsA
Read-only

[Security] Scan for plaintext credentials (HTTP Basic Auth, FTP passwords, Telnet).

Inputs: pcap_file (required).

wireshark_extract_dns_queriesA
Read-only

[DNS] Extract DNS query details (name, type, response flag) as TSV.

Inputs: pcap_file (required), limit.

wireshark_extract_fieldsC
Read-only

[Tabular] Extract fields as TSV. fields: comma-separated; limit/offset count lines including the header.

Inputs: fields (required), pcap_file (required), limit, offset, +1 more.

wireshark_extract_fingerprintsA
Read-only

[Forensics] Extract JA3/JA3S TLS fingerprints and optionally match local user-maintained lists. Treat matches as leads.

Inputs: pcap_file (required), limit.

wireshark_extract_framesA
Destructive

[File] Extract specific frame ranges to a new pcap. Ranges: '1-10 15 20-30'.

Inputs: pcap_file (required), output_file (required), frame_ranges (required).

wireshark_extract_http_requestsB
Read-only

[HTTP] Extract HTTP request details (method, URI, host, user-agent) as TSV.

Inputs: pcap_file (required), limit.

wireshark_filter_saveB
Destructive

Filter packets from a pcap and save to a new file using a Wireshark display filter.

Inputs: input_file (required), output_file (required), display_filter (required).

wireshark_flow_graphB
Read-only

[Stats] Flow/sequence graph showing packet exchange. Types: 'any', 'tcp', 'icmp'.

Inputs: pcap_file (required), flow_type.

wireshark_follow_streamC
Read-only

[Stream] Reassemble stream with pagination. protocol: tcp|udp|tls|http|http2. output_mode: ascii|hex|raw.

Inputs: pcap_file (required), stream_index (required), protocol, limit_lines, +3 more.

wireshark_geoip_enrichA
Read-only

[Enrichment] GeoIP lookup for unique IPs — country, city, ASN. Needs GeoLite2 DB.

Inputs: pcap_file (required), limit.

wireshark_get_capabilitiesA
Read-only

Get Wireshark suite capabilities for this MCP server instance (available tools and versions).

Inputs: no named parameters.

wireshark_get_file_infoA
Read-only

Get capture file metadata (type, packet count, duration, size) via capinfos.

Inputs: pcap_file (required).

wireshark_get_packet_bytesB
Read-only

[Bytes] Raw hex/ASCII dump of a single packet.

Inputs: pcap_file (required), frame_number (required).

wireshark_get_packet_contextB
Read-only

[Context] Packets surrounding a specific frame (count before and after).

Inputs: pcap_file (required), frame_number (required), count.

wireshark_get_packet_detailsA
Read-only

[Detail] Full JSON for one packet. layers: comma-separated protocol filter (e.g. "ip,tcp,http").

Inputs: pcap_file (required), frame_number (required), layers.

wireshark_get_packet_listC
Read-only

[Summary] Packet list (top pane). TSV: No/Time/Src/Dst/Proto/Len/Info. custom_columns: comma-separated fields.

Inputs: pcap_file (required), limit, offset, custom_columns, +1 more.

wireshark_indexC

[Index] Build once; aggregate/extract_fields reuse it. more_files: extra captures (capture_id). query: SELECT on packets/pkt/flows/captures. timeline: first/last seen. diff: vs more_files/compare_filter. export: Parquet.

Inputs: pcap_file (required), sql, action, more_files, +2 more.

wireshark_list_interfacesA
Read-only

List available network interfaces for capture.

Inputs: no named parameters.

wireshark_merge_pcapsC
Destructive

Merge multiple capture files into one. input_files: comma-separated paths.

Inputs: input_files (required), output_file (required).

wireshark_open_fileB
Read-only

[Entry Point] Open a pcap and get protocol-aware tool recommendations. Returns protocols and relevant tools.

Inputs: pcap_file (required).

wireshark_quick_analysisC
Read-only

[Agent] One-call traffic overview: file info, protocols, top talkers, conversations, hostnames, anomalies.

Inputs: pcap_file (required).

wireshark_read_packetsB
Read-only

[DEPRECATED] JSON packet data. Use get_packet_list + get_packet_details instead.

Inputs: pcap_file (required), limit, offset, display_filter.

wireshark_scan_file_signaturesB
Read-only

[Forensics] Count packets containing common file signatures. Hits require object extraction and verification.

Inputs: pcap_file (required).

wireshark_search_packetsC
Read-only

[Search] Find packets by content.

Inputs: pcap_file (required), match_pattern (required), limit, scope, +1 more.

wireshark_set_protocol_prefsD
Read-only

[Dissection] Protocol preference overrides. Prefs: 'tcp.desegment_tcp_streams:TRUE;http.ssl.port:8443'.

Inputs: prefs (required), pcap_file (required), limit, fields, +1 more.

wireshark_stats_conversationsB
Read-only

[Conversations] Communication pairs and stats. type: 'eth'|'ip'|'ipv6'|'tcp'|'udp'|'sctp'|'wlan'.

Inputs: pcap_file (required), type.

wireshark_stats_endpointsB
Read-only

[Endpoints] List all endpoints and traffic stats. type: 'eth'|'ip'|'ipv6'|'tcp'|'udp'|'sctp'|'wlan'.

Inputs: pcap_file (required), type.

wireshark_stats_expert_infoC
Read-only

[Expert Info] Automatic anomaly detection: retransmissions, errors, warnings, protocol issues.

Inputs: pcap_file (required).

wireshark_stats_io_graphC
Read-only

[I/O Graph] Traffic volume by time bucket, optionally split by semicolon-separated display filters.

Inputs: pcap_file (required), filters, interval.

wireshark_stats_protocol_hierarchyC
Read-only

[PHS] Protocol hierarchy statistics showing distribution of protocols in the capture.

Inputs: pcap_file (required).

wireshark_stats_service_response_timeC
Read-only

[SRT] Service response time statistics. protocol: 'http'|'dns'|'smb' etc.

Inputs: pcap_file (required), protocol.

wireshark_text2pcap_importB
Destructive

Convert ASCII or hex dump into a capture file using text2pcap. encapsulation: link-layer type (default: ether).

Inputs: output_file (required), input_text_file (required), ascii_mode, encapsulation, +1 more.

wireshark_verify_ssl_decryptionC
Read-only

[TLS] Verify TLS decryption with SSLKEYLOGFILE-format keylog file.

Inputs: pcap_file (required), keylog_file (required).

wireshark_yara_scanC
Destructive

[Security] YARA scan exported files. Detects malware, webshells, shellcode. protocol: http|smb|tftp.

Inputs: pcap_file (required), dest_dir, protocol.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 54 tools

    Disambiguation4/5

    The tools are organized into clear functional clusters (packet reading, statistics, security detection, editcap file surgery, case management), and each description states its specific purpose. A few boundaries blur, e.g. wireshark_quick_analysis vs wireshark_open_file as entry points, wireshark_stats_expert_info vs wireshark_detect_protocol_anomalies, and wireshark_extract_http_requests/extract_dns_queries vs wireshark_analyze_protocol; the deprecated wireshark_read_packets also lingers alongside get_packet_list/get_packet_details.

    Naming Consistency4/5

    All names share a wireshark_ prefix, snake_case, and readable verb_noun or noun_noun structure, with subsystem prefixes (stats_, detect_, extract_, editcap_, decrypt_) that group related tools predictably. Minor deviations exist (e.g. wireshark_case performing multiple operations via subcommands, text2pcap_import embedding a tool name), but the scheme is consistent overall.

    Tool Count2/5

    54 tools is far beyond the 3-15 well-scoped range and creates a large surface an agent must navigate, with many near-sibling analysis and detection tools to choose among. The breadth is partly justified by covering capture, editing, statistics, forensics, and case management, but the set could be consolidated substantially.

    Completeness4/5

    The surface covers the full capture lifecycle: live capture, opening, merging/splitting/trimming, field extraction, stream reassembly, decryption, object export, YARA, and case tracking, with few dead ends. Minor gaps remain, such as HTTP response-side extraction (only requests are parsed) and limited packet-editing beyond trim/split/shift/dedupe.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides AI assistants with direct access to Wireshark network analysis capabilities, enabling AI-powered network troubleshooting, packet analysis, and network monitoring through a secure interface.
      14
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to analyze network traffic using Wireshark/tshark, providing packet statistics, protocol analysis, and anomaly detection through natural language interaction.
      75
      MIT