Agent skill

TShark Traffic Analysis

by AgentSecOps in AgentSecOps/SecOpsAgentKit

Guides authorized packet capture and analysis with TShark, Wireshark's command-line tool, for security investigations, malware detection and forensic examination of network traffic.

Custom licenceAuto-check: notesSecurity

Install TShark Traffic Analysis

skills CLI
$ npx skills add AgentSecOps/SecOpsAgentKit --skill analysis-tshark -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install AgentSecOps/SecOpsAgentKit analysis-tshark --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/AgentSecOps/SecOpsAgentKit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/offsec/analysis-tshark .claude/skills/analysis-tshark && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
analysis-tshark
GitHub stars
219
Used in
1 other repo
Token cost
~4.8k tokens
SKILL.md length
697 words
Files
6 (incl. references, assets)
Skills in repo
24
Repo updated
First seen
Licence
Custom licence

At a glance

Guides authorized packet capture and analysis with TShark, Wireshark's command-line tool, for security investigations, malware detection and forensic examination of network traffic.

  • Works in 10 steps: Authorization Verification → Interface Discovery → Basic Packet Capture → …
  • Investigating a suspected security incident from packet captures
  • SKILL.md covers Overview, Quick Start, Core Workflow and Security Considerations, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

The skill covers authorized security operations with TShark, including traffic analysis, malware detection, artifact extraction and forensic examination. It warns that captures can expose sensitive information and may only be made with proper authorization and legal compliance. Its checklist has eight steps: verify authorization, identify the interface and requirements, capture with filters, analyze packets for security indicators, extract artifacts such as files, credentials and sessions, document findings, store capture files securely and clean up sensitive data under the retention policy.

The first step calls for written authorization, a check of wiretapping and privacy law, data handling and retention rules, a documented capture scope of interfaces, duration and filters, and secure storage. After that come interface discovery with `tshark -D`, basic capture with count, duration, file output and ring buffer options, and BPF capture filters. The folder bundles a workflow checklist, an example, a CI config template and a rule template, and the excerpt is cut off in the filter section.

When your agent uses it

  • Investigating a suspected security incident from packet captures
  • Capturing and filtering traffic on an authorized network segment
  • Examining a capture file during a forensic review
  • Checking whether traffic on a host is properly encrypted

Example prompts

  • “Walk me through capturing HTTP traffic on eth0 for ten minutes with a filter, writing to a file.”
  • “Analyze incident.pcap for signs of malware command-and-control traffic.”
  • “List the files and sessions that can be extracted from this authorized capture.”
  • “Which interfaces can TShark capture on this host?”

Requirements

  • TShark from Wireshark
  • Written authorization to capture the traffic
  • Elevated privileges for live capture

Workflow steps

10 steps, taken from the step headings in SKILL.md.

  1. Authorization Verification
  2. Interface Discovery
  3. Basic Packet Capture
  4. Capture Filters
  5. Display Filters
  6. Protocol Analysis
  7. Credential Extraction
  8. File Extraction
  9. Malware Detection
  10. Statistics and Reporting

What it can do on your machine

Read from SKILL.md and the folder at commit 6e25a4b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • wireshark.org
    • wiki.wireshark.org
    • attack.mitre.org
    • csrc.nist.gov
    • nostarch.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

TShark Traffic Analysis loads about 4.8k tokens when it runs, and up to ~11k if it reads all its reference files. Until then it costs about 140 tokens; SKILL.md has 697 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~140
When it runs · the whole SKILL.md, loaded when a task matches
~4.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~11k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteRuns commands with sudoSKILL.md:38
    sudo tshark -i eth0
  • NoteRuns commands with sudoSKILL.md:41
    sudo tshark -i eth0 -c 100 -w capture.pcap
  • NoteRuns commands with sudoSKILL.md:87
    sudo tshark -D
  • NoteRuns commands with sudoSKILL.md:90
    sudo tshark -i eth0
  • NoteRuns commands with sudoSKILL.md:91
    sudo tshark -i wlan0
  • NoteRuns commands with sudoSKILL.md:94
    sudo tshark -i any
  • NoteRuns commands with sudoSKILL.md:97
    sudo tshark -i eth0 -i wlan0
  • NoteRuns commands with sudoSKILL.md:113
    sudo tshark -i eth0
  • NoteRuns commands with sudoSKILL.md:116
    sudo tshark -i eth0 -c 1000
  • NoteRuns commands with sudoSKILL.md:119
    sudo tshark -i eth0 -a duration:60

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 697 words (~4,772 tokens).

“TShark is the command-line network protocol analyzer from the Wireshark project. It provides powerful packet capture and analysis capabilities for security investigations, forensic analysis, and network troubleshooting. This skill covers authorized security operations including traffic analysis, credential extraction, malware detection…”

— opening of SKILL.md by AgentSecOps, Custom licence
name
analysis-tshark
version
0.1.0
maintainer
sirappsec@gmail.com
category
offsec
tags
packet-capture, network-analysis, forensics, tshark, wireshark, traffic-analysis
frameworks
MITRE-ATT&CK, NIST
dependencies.packages
tshark, wireshark
dependencies.tools
tcpdump, python3
references
https://www.wireshark.org/docs/man-pages/tshark.html, https://wiki.wireshark.org/DisplayFilters, https://attack.mitre.org/techniques/T1040/

Read the full SKILL.md on GitHub

Files

SKILL.md and 5 other files (references, assets) in skills/offsec/analysis-tshark of AgentSecOps/SecOpsAgentKit.

  • SKILL.md
  • assets/.gitkeep
  • assets/ci-config-template.yml
  • assets/rule-template.yaml
  • references/EXAMPLE.md
  • references/WORKFLOW_CHECKLIST.md

Open the folder on GitHubat commit 6e25a4b

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in AgentSecOps/SecOpsAgentKit, which our catalogue first saw on October 7, 2026.

Compare with similar skills

TShark Traffic Analysis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

TShark Traffic Analysis compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
TShark Traffic Analysis this skillAgentSecOps/SecOpsAgentKit2191 repos~4.8kAutomated safety check: NotesCustom licence
Network Covert Channel Analysismukul975/Anthropic-Cybersecurity-Skills34k—~2kAutomated safety check: PassApache-2.0
Dfirtransilienceai/communitytools559—~1.5kAutomated safety check: PassMIT
Performing Network Packet Capture Analysismukul975/Anthropic-Cybersecurity-Skills34k—~2.3kAutomated safety check: PassApache-2.0
Detecting Arp Poisoning In Network Trafficmukul975/Anthropic-Cybersecurity-Skills34k—~3.8kAutomated safety check: NotesApache-2.0
Performing Network Traffic Analysis With Zeekmukul975/Anthropic-Cybersecurity-Skills34k—~3.2kAutomated safety check: NotesApache-2.0

Similar skills

  • Network Covert Channel Analysis

    mukul975/Anthropic-Cybersecurity-Skills

    Detects DNS tunneling, ICMP exfiltration and HTTP-based covert channels in packet captures and DNS logs when hunting for hidden command-and-control traffic.

    34k GitHub stars~2k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Dfir

    transilienceai/communitytools

    Digital forensics and incident response - Windows event log analysis, PCAP forensics, filesystem artifact analysis, AD attack detection, and timeline correlation.

    559 GitHub stars~1.5k tokensUpdated 2 mo ago
    SecurityAuto-check passed
  • Performing Network Packet Capture Analysis

    mukul975/Anthropic-Cybersecurity-Skills

    Perform forensic analysis of network packet captures (PCAP/PCAPNG) using Wireshark, tshark, and tcpdump to reconstruct network communications, extract transferred files, identify malicious traffic…

    34k GitHub stars~2.3k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Detecting Arp Poisoning In Network Traffic

    mukul975/Anthropic-Cybersecurity-Skills

    Detect Layer 2 ARP poisoning/spoofing by deploying ARPWatch, Dynamic ARP Inspection (DAI), Wireshark packet analysis, and custom Python monitoring scripts that flag gratuitous ARP floods, IP-to-MAC…

    34k GitHub stars~3.8k tokensUpdated 1 mo ago
    SecurityAuto-check: notes
  • Performing Network Traffic Analysis With Zeek

    mukul975/Anthropic-Cybersecurity-Skills

    Deploy Zeek (formerly Bro) as a passive network security monitor to generate structured logs of protocol metadata (HTTP, DNS, TLS, SSH, SMTP, FTP, and more), write custom detection scripts, and…

    34k GitHub stars~3.2k tokensUpdated 1 mo ago
    SecurityAuto-check: notes
  • Analyzing Network Traffic For Incidents

    mukul975/Anthropic-Cybersecurity-Skills

    Analyzes network traffic captures and flow data to identify adversary activity during security incidents, including command-and-control communications, lateral movement, data exfiltration, and…

    34k GitHub stars~2.6k tokensUpdated 1 mo ago
    SecurityAuto-check passed

More from AgentSecOps/SecOpsAgentKit

All 24 skills in this repo
  • Sast Semgrep

    AgentSecOps/SecOpsAgentKit

    Static application security testing (SAST) using Semgrep for vulnerability detection, security code review, and secure coding guidance with OWASP and CWE framework mapping.

    219 GitHub starsUsed in 2 repos~2.4k tokens
    Auto-check passed
  • Secrets Gitleaks

    AgentSecOps/SecOpsAgentKit

    Hardcoded secret detection and prevention in git repositories and codebases using Gitleaks.

    219 GitHub starsUsed in 2 repos~4.1k tokens
    Auto-check passed
  • DefectDojo Vulnerability Management

    AgentSecOps/SecOpsAgentKit

    Aggregates scanner results into DefectDojo, deduplicates findings, tracks remediation SLAs and prepares compliance reports across products and pipelines.

    219 GitHub stars~2.3k tokensUpdated 5 mo ago
    Auto-check passed
  • Container Scanning with Grype

    AgentSecOps/SecOpsAgentKit

    Scans container images, filesystems and SBOMs with Grype for known vulnerabilities, ranks them by CVSS, EPSS and CISA KEV, and wires scans into CI/CD thresholds.

    219 GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Hadolint Dockerfile Security Linting

    AgentSecOps/SecOpsAgentKit

    Lints Dockerfiles with Hadolint for security misconfigurations and best-practice violations, locally and in CI, with strict, balanced and permissive rule templates.

    219 GitHub starsUsed in 1 repo~4.4k tokens
    Auto-check passed
  • Hashcat Password Recovery Workflow

    AgentSecOps/SecOpsAgentKit

    Guides authorized password-hash recovery with hashcat for security audits, forensic cases and policy testing, starting with an explicit authorization check before any cracking runs.

    219 GitHub starsUsed in 1 repo~3.3k tokens
    Auto-check: notes

Works with

Categories

Questions about TShark Traffic Analysis

What does TShark Traffic Analysis do?

Guides authorized packet capture and analysis with TShark, Wireshark's command-line tool, for security investigations, malware detection and forensic examination of network traffic. The skill covers authorized security operations with TShark, including traffic analysis, malware detection, artifact extraction and forensic examination. It warns that captures can expose sensitive information and may only be made with proper authorization and legal compliance.

When should I use TShark Traffic Analysis?

TShark Traffic Analysis fits situations like: investigating a suspected security incident from packet captures; capturing and filtering traffic on an authorized network segment; examining a capture file during a forensic review; checking whether traffic on a host is properly encrypted.

How do I install TShark Traffic Analysis in Claude Code?

Run `npx skills add AgentSecOps/SecOpsAgentKit --skill analysis-tshark -a claude-code`. Or copy the skill folder (skills/offsec/analysis-tshark in AgentSecOps/SecOpsAgentKit) into .claude/skills/analysis-tshark in your project. Claude Code loads it when a task matches its description.

How do I install TShark Traffic Analysis in Codex?

Run `npx skills add AgentSecOps/SecOpsAgentKit --skill analysis-tshark -a codex`. Or copy the skill folder (skills/offsec/analysis-tshark in AgentSecOps/SecOpsAgentKit) into .agents/skills/analysis-tshark in your project. Codex loads it when a task matches its description.

Can I use TShark Traffic Analysis in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add AgentSecOps/SecOpsAgentKit --skill analysis-tshark -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/analysis-tshark, .gemini/skills/analysis-tshark, .github/skills/analysis-tshark and .opencode/skills/analysis-tshark in your project.

What does TShark Traffic Analysis need to run?

SKILL.md names no scripts, command-line tools or credentials: TShark Traffic Analysis is instructions for the agent only. Our summary lists: TShark from Wireshark; Written authorization to capture the traffic; Elevated privileges for live capture.

Does TShark Traffic Analysis access the network?

SKILL.md names 5 domains. As links in the text: wireshark.org, wiki.wireshark.org, attack.mitre.org, csrc.nist.gov and nostarch.com. This is read from the text; nothing was executed.

Is TShark Traffic Analysis safe to install?

Our automated static check of SKILL.md found notes only (runs commands with sudo), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does TShark Traffic Analysis use?

TShark Traffic Analysis has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does TShark Traffic Analysis use?

About 4.8k tokens (SKILL.md is roughly 19k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 6k tokens, read only when the agent opens those files.

What are the alternatives to TShark Traffic Analysis?

Skills that share tags, products or a category with TShark Traffic Analysis: Network Covert Channel Analysis (mukul975/Anthropic-Cybersecurity-Skills, 34k stars), Dfir (transilienceai/communitytools, 559 stars), Performing Network Packet Capture Analysis (mukul975/Anthropic-Cybersecurity-Skills, 34k stars) and Detecting Arp Poisoning In Network Traffic (mukul975/Anthropic-Cybersecurity-Skills, 34k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains TShark Traffic Analysis?

AgentSecOps (a GitHub organization) maintains it in AgentSecOps/SecOpsAgentKit, which has 219 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on April 15, 2026.

Source: AgentSecOps/SecOpsAgentKit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.