Skip to content

meltedinhex/analyst-ai-pack / skills/capturing-and-analyzing-malware-network-traffic

capturing-and-analyzing-malware-network-traffic

Verified

Captures and analyzes malware network traffic from a detonation: extracting C2 endpoints, HTTP/DNS patterns, TLS metadata (JA3/SNI), and beaconing from a PCAP to build network IOCs and detection. Activates for requests to analyze malware PCAP, extract C2 from traffic, or study network behavior.

FileKindSize
LICENSEother340 B
SKILL.mdskill md3.3 KB
references/api-reference.mdmarkdown1.3 KB
scripts/analyst.pyscript4.3 KB

references/api-reference.md

View on GitHub
# API Reference: Capturing and Analyzing Malware Network Traffic

## Overview

`scripts/analyst.py` summarizes a PCAP into top conversations, DNS queries, TLS SNI, and detects
beaconing by inter-arrival timing. It prefers `pyshark` (tshark) and falls back to a minimal
pure-Python classic-pcap parser for IPv4 conversations and beaconing.

## Dependencies

| Package | Version | Purpose |
|---------|---------|---------|
| pyshark | >= 0.6 | Rich packet parsing via tshark (optional) |
| (stdlib) | — | Minimal pcap parser, statistics |

## External tools

| Tool | Purpose |
|------|---------|
| tshark / Wireshark | Interactive and scripted PCAP analysis |
| Zeek | Connection, DNS, HTTP, and SSL logs from PCAP |

## Core functions

### `summarize(path)`
Dispatches to pyshark or the minimal parser; returns conversations, DNS/SNI (pyshark), and
beaconing.

### `_beaconing(timestamps_by_dst)`
Flags destinations with low-jitter regular intervals (likely C2 check-ins).

## Usage

```bash
pip install pyshark      # optional; requires tshark on PATH
python scripts/analyst.py summarize capture.pcap
```

## Sources

- Wireshark User Guide — https://www.wireshark.org/docs/wsug_html_chunked/
- Zeek documentation — https://docs.zeek.org/
- libpcap classic file format (header/record layout)
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 197kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall