跳到主要内容
知仓学习社ZHICANG

performing-network-traffic-analysis-with-tshark

Automate network traffic analysis using tshark (Wireshark CLI) and pyshark to compute protocol distribution statistics, detect suspicious flows such…

执行命令写文件严重 0 · 高危 7mukul975/Anthropic-Cybersecurity-Skills

它会碰到什么

扫了多少4 个文本文件,24 KB
它会碰到什么执行命令写文件
命中总数8 处
命中统计严重 0 · 高 7 · 中 1 · 低 0
逐条看命中(7 条严重或高危)
  • scripts/agent.py:21exec-spawn
    result = subprocess.run(
  • scripts/agent.py:37exec-spawn
    result = subprocess.run(
  • scripts/agent.py:55exec-spawn
    result = subprocess.run(
  • scripts/agent.py:74exec-spawn
    result = subprocess.run(
  • scripts/agent.py:121exec-spawn
    result = subprocess.run(
  • scripts/agent.py:141exec-spawn
    result = subprocess.run(
  • scripts/agent.py:166exec-spawn
    result = subprocess.run(

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

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

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。