跳到正文
Skillpedia
分析与电子表格35k · #8270

performing-network-traffic-analysis-with-tshark

它能做什么

这个工具用于分析网络流量文件(称为 PCAP),以发现可疑活动。它能识别端口扫描等攻击模式,并提取 IP 地址和访问过的网站等重要信息。

适用场景

  • ✓调查网络安全事件时。
  • ✓进行安全测试、检查漏洞时。
  • ✓需要反复、自动地分析网络流量时。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-network-traffic-analysis-with-tshark/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“分析这个网络流量文件,告诉我是否存在任何可疑或恶意活动。”

每周 5 个新技能,1 分钟读完。

工作原理

该工具使用名为 tshark 和 pyshark 的程序读取流量文件。它会查找已知的攻击模式,并收集关于谁在与谁通信、访问了哪些网站的信息。

技术内容(原始 SKILL.md)

作者在 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
常见问题

什么是 PCAP 文件?

它记录了经过某个特定位置的所有网络流量,就像把网络上发生的所有对话都录了下来。

什么是 IOC?

IOC 即“入侵指标”(Indicators of Compromise),是用来判断系统是否遭受攻击的线索,例如恶意 IP 地址或危险的网站域名。

使用它需要安装什么吗?

需要。你的电脑上需要安装 tshark(它是 Wireshark 的一部分)和 pyshark 库。

详情

作者的原始描述

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

热度

GitHub 星标
35k
排名
#8270
许可证
Apache-2.0
更新时间
2026/8/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能