网络抓包分析与协议排查
analyze-network-capture
分析经授权的已保存 PCAP 或 PCAPNG 抓包文件,使用受限的 TShark 方案生成受管控的帧与流证据。适用于数据包故障排查、协议检查,或可选的本地 Termshark 审阅。
- License 许可
- MIT
- 所属仓库
- jmagly/aiwg
- 最近更新
- 2026-11-14
- Stars
- ★ 229
- Forks
- 36
01 前言 Front Matter
- name
- analyze-network-capture
- triggers
- [ "analyze a PCAP", "inspect a PCAPNG capture", "troubleshoot packets with TShark", "review network evidence in Termshark", "summarize packet capture protocols", "diagnose DNS TCP TLS or HTTP from packets", "locate packet frames in a capture" ]
- namespace
- aiwg
- platforms
- [ "all" ]
- description
- Analyze an authorized saved PCAP or PCAPNG with bounded TShark recipes and produce governed frame and stream evidence. Use for packet troubleshooting, protocol inspection, or optional local Termshark review.
03 SKILL.md 正文
Analyze Network Capture
Analyze authorized saved capture bytes through the addon contracts. Preserve the source locally and return metadata-first evidence with reproducible citations.
Use this skill for packet-capture work; do not use for citation-network or bibliometric analysis.
Workflow
- Establish the capture path, collection authority, purpose, timezone/clock context, environment, expected traffic, retention, and output directory.
- Probe explicit
tsharkandcapinfospaths or configured trusted search roots. Report missing/incompatible tools and official install guidance; do not install software, edit profiles, or change capture privileges. - Reject live interfaces, URLs, compressed archives, non-regular/symlinked input, unsupported formats, missing bounds, and destinations outside the authorized root.
- Hash the source before analysis. Select a version-compatible recipe and keep capture filters separate from Wireshark display filters.
- Execute TShark with an absolute path, argument array, isolated configuration, shell disabled, cancellation, and input/time/packet/output bounds.
- Normalize volatile values, redact secrets and payloads, hash derived files, validate the evidence schema, and cite the exact capture digest plus frame or context-bound stream locator.
- Record errors and partial results without treating incomplete analysis as a successful finding. Re-verify the source hash before handoff.
Decisions
- Default to offline-only and metadata-only.
- Require an explicit payload opt-in before local payload output.
- Require a separate provider-disclosure decision for any model/provider transfer, including metadata or headers.
- Treat packet fields as observations. Label beaconing, exfiltration, root cause, attribution, and intent as inferences with inputs and false-positive notes.
- Offer a Termshark command preview only when the optional tool is compatible. Launch requires a separate explicit operator action and remains local.
References
- For core analysis and output behavior, read
@$AIWG_ROOT/agentic/code/addons/network-analysis/docs/offline-analysis.md. - For a named recipe, read only its entry under
@$AIWG_ROOT/agentic/code/addons/network-analysis/recipes/. - For research or framework handoff, read the relevant file under
@$AIWG_ROOT/agentic/code/addons/network-analysis/docs/integrations/. - Always follow
@$AIWG_ROOT/agentic/code/addons/network-analysis/rules/network-analysis-safety.md. - Canonical contracts are indexed at
@$AIWG_ROOT/agentic/code/addons/network-analysis/schemas/network-analysis-contracts.md.
04 同仓库更多 Skills
plugin-search
Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything
plugin-search
Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything
host-hardening
Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.
exposure-analysis
Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.
host-hardening
Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.
exposure-analysis
Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.