meltedinhex/analyst-ai-pack / skills/capturing-and-analyzing-malware-network-traffic
capturing-and-analyzing-malware-network-traffic
VerifiedCaptures 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.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 340 B |
| SKILL.md | skill md | 3.3 KB |
| references/api-reference.md | markdown | 1.3 KB |
| scripts/analyst.py | script | 4.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)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 197k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |