Skip to content
Skillpedia
Analysis & spreadsheets35k · #8270

performing-network-traffic-analysis-with-tshark

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.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

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.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

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

5 new skills a week. 1 minute to read.

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.

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
#8270
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