Skip to content
Skillpedia
Analysis & spreadsheets35k · #6107

performing-network-traffic-analysis-with-tshark

Helps your agent analyze network traffic automatically. It's useful for finding suspicious patterns and important information in network files.

What it does

This tool analyzes network traffic files (called PCAP) to find suspicious activity. It identifies attack patterns like port scans and extracts important information such as IP addresses and visited websites.

When to use it

  • ✓When investigating a network security incident.
  • ✓When performing security tests to check for vulnerabilities.
  • ✓When analyzing network traffic repeatedly and automatically.

Example of what to ask your AI

“Analyze this network traffic file and tell me if there is any suspicious or malicious activity.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-network-traffic-analysis-with-tshark/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-network-traffic-analysis-with-tshark/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

The tool uses programs called tshark and pyshark to read traffic files. It looks for known attack patterns and collects information about who is communicating with whom and which sites are being accessed.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill performing-network-traffic-analysis-with-tshark

Or download just the file:

curl -L https://raw.githubusercontent.com/mukul975/Anthropic-Cybersecurity-Skills/main/skills/performing-network-traffic-analysis-with-tshark/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Performing Network Traffic Analysis with TShark

Overview

This skill automates packet capture analysis using tshark (Wireshark CLI) and pyshark (Python wrapper). It extracts protocol distribution statistics, identifies suspicious network flows (port scans, beaconing, data exfiltration), extracts IOCs (IPs, domains, URLs), and detects DNS tunneling patterns from PCAP files.

When to Use

  • When conducting security assessments that involve performing network traffic analysis with tshark
  • When following incident response procedures for related security events
  • When performing scheduled security testing or auditing activities
  • When validating security controls through hands-on testing

Prerequisites

  • tshark (Wireshark CLI) installed and in PATH
  • Python 3.8+ with pyshark library
  • PCAP or PCAPNG capture file for analysis

Steps

  1. Extract Protocol Statistics — Generate protocol hierarchy and conversation statistics from the capture
  2. Identify Top Talkers — Rank source/destination IPs by volume and connection count
  3. Detect Suspicious Flows — Flag port scanning patterns, unusual port usage, and high-frequency connections
  4. Extract Network IOCs — Pull unique IPs, domains from DNS queries, and URLs from HTTP traffic
  5. Analyze DNS Traffic — Detect DNS tunneling via high-entropy subdomain queries and excessive TXT records
  6. Generate Analysis Report — Produce structured report with flow summaries and threat indicators

Expected Output

  • JSON report with protocol statistics and top talkers
  • Suspicious flow detections with severity ratings
  • Extracted IOCs (IPs, domains, URLs)
  • DNS anomaly analysis results
FAQ

What is a PCAP file?

It's a file that records all network traffic that passed through a specific point, like a recording of all the conversations that happened on the network.

What are 'IOCs'?

IOCs are 'Indicators of Compromise'. They are clues that help identify if a system has been attacked, such as malicious IP addresses or dangerous website names.

Do I need to install anything to use it?

Yes, you need to have tshark (which is part of Wireshark) and the pyshark library installed on your computer.

Details

Original description by the author

Automate network traffic analysis using tshark (Wireshark CLI) and pyshark to compute protocol distribution statistics, detect suspicious flows such as port scans and beaconing, extract IOCs (IPs, domains, URLs), and identify DNS tunneling patterns from PCAP files. Use when scripted or repeatable analysis of packet captures is needed rather than interactive inspection.

repo: mukul975/Anthropic-Cybersecurity-Skills

Popularity

GitHub stars
35k
Ranking position
#6107
License
Apache-2.0
Updated
8/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills