Guide · Agent skill
How to use the Network Traffic Incident Analysis agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
This guide explains how to install and use the analyzing-network-traffic-for-incidents agent skill, a Claude skill from the mukul975/Anthropic-Cybersecurity-Skills collection. It gives an AI agent a structured playbook for investigating network evidence from a security incident, such as packet captures, Zeek logs and NetFlow data. By the end you will know what the skill does, how to add it to Claude, how to phrase requests that trigger it, and what you need in place before using it.
Quick start
- 1Download and unzip the skill. Download the skill ZIP from this page and unzip it. The skill folder is named analyzing-network-traffic-for-incidents.
- 2Place it in Claude's skills folder. Copy the folder to ~/.claude/skills/ for all projects, or to .claude/skills/ inside one project. Alternatively, upload it under Settings, Capabilities, Skills in the Claude apps.
- 3Confirm your tools are installed. Install Wireshark or tshark and tcpdump, and have Python 3 with scapy if you want the full script. Have Zeek logs ready if you are analysing Zeek output.
- 4Get authorisation and collect evidence. Confirm you are permitted to examine this traffic. Gather PCAP files, Zeek logs or NetFlow data for the incident timeframe.
- 5Ask the agent a specific question. Describe the incident, the files you have, the suspect hosts or IPs and the time window in one request.
- 6Check key findings yourself. Run the example tshark or Wireshark filters on the same evidence to confirm beaconing, lateral movement or exfiltration signs.
- 7Document the findings. Ask the agent to write up findings with PCAP file names, frame numbers and timestamps, then correlate them with host-based evidence.
What the skill makes the agent do
Once installed, the skill lets the agent work through a security incident's network evidence in a consistent order. The skill covers capturing or obtaining traffic with tcpdump, Zeek logs and NetFlow/IPFIX; looking for command-and-control (C2) beaconing; checking for lateral movement over SMB, RDP, WinRM, WMI and SSH; detecting data exfiltration such as large uploads and DNS tunneling; extracting indicators of compromise; and documenting findings with evidence references.
The skill is aimed at incident response. Its own notes say host-based questions such as process execution or file system artifacts need endpoint forensics tools instead.
Install the skill in Claude
Download the ZIP of the skill from this page and unzip it. To make it available across your projects, place the skill folder in ~/.claude/skills/. To make it available only inside one project, place it in that project's .claude/skills/ folder.
You can also upload the skill in the Claude apps. Go to Settings, then Capabilities, then Skills, and upload the skill there.
- Personal install: ~/.claude/skills/
- Project install: .claude/skills/ inside your project
- App install: Settings → Capabilities → Skills
Check your requirements before you start
The skill assumes you already have the analysis tools in place. Wireshark or tshark must be installed. If you analyse Zeek output, you need Zeek logs such as conn.log and dns.log. Python 3 with scapy is optional; the bundled script falls back if scapy is missing. tcpdump is needed for live capture. Where relevant, you also need network access to the capture point, such as a tap or SPAN port.
The skill does not make network requests itself. It does run scripts, so review the scripts/network folder before running anything on sensitive data.
- Wireshark / tshark (required for the script's analysis)
- Zeek logs such as conn.log and dns.log (if using Zeek output)
- Python 3 with scapy (optional)
- tcpdump (for live capture)
- Access to a network tap or SPAN port (where applicable)
Trigger the skill with natural requests
You do not need special syntax. Describe the task in plain language that matches the skill's scope. The skill's description lists the kinds of requests it responds to, including network traffic analysis, packet capture investigation, PCAP analysis, network forensics, C2 traffic detection and exfiltration detection.
Give the agent as much context as you can: the incident type, which PCAP or log files you have, the suspected hosts or IP addresses, and the time window.
- Analyze this PCAP for C2 beaconing from 10.1.5.42 and summarise the evidence.
- Check these Zeek conn.log and dns.log files for signs of data exfiltration.
- Review this capture for lateral movement over SMB, RDP or WinRM from the compromised host.
- Help me write up the network findings for this incident with frame numbers and timestamps.
Follow the investigation workflow
The skill works through six steps: capture or acquire traffic, identify C2 communications, analyse lateral movement, detect exfiltration, extract and correlate IOCs, and document findings. The steps include example commands and Wireshark display filters you can run yourself to check the agent's results.
For example, a tcpdump capture filtered on a suspect host looks like this:
- Look for regular intervals between connections, consistent packet sizes and HTTPS to external IPs not tied to known CDNs or services.
- Filter SMB with smb2 and the source host, and RDP with tcp.dstport == 3389.
- Look for large HTTP POST uploads, DNS responses with large TXT records, and unusual ICMP volume.
tcpdump -i eth0 -w capture.pcap host 10.1.5.42Run the analysis on a PCAP file
For a PCAP, the agent can use tshark to pull statistics such as IP conversations, endpoints and I/O rates per minute, and to extract fields for specific ports or flags. The reference file lists examples like these, which you can run to verify findings:
- Filter by port: tshark -r capture.pcap -Y "tcp.port==445" (SMB)
- List IP conversations: tshark -r capture.pcap -q -z conv,ip
- Show DNS query tree: tshark -r capture.pcap -q -z dns,tree
tshark -r capture.pcap -q -z conv,ipSafety and authorisation
Only capture or analyse traffic you are authorised to examine. Capturing live traffic can expose private data and may be unlawful without approval, so do not run live captures on production networks without authorisation. Keep evidence files in a controlled location, since PCAPs can contain credentials, personal data and business information.
Because the skill includes scripts, read the code in scripts/agent.py and the scripts/network folder before running it, and test on a sample capture first.
- Get written authorisation before live capture.
- Test the script on a sample PCAP before using it on case data.
- Check the commands against your own log formats before trusting results.
What people use it for
- Confirming whether a host in an alert is beaconing to an external server at regular intervals.
- Tracing SMB, RDP or WinRM connections from a compromised workstation to other internal systems.
- Quantifying how much data left the network and to which destinations during an incident.
- Checking DNS logs for tunnelling signs such as high volumes of TXT queries.
- Learning network forensics by working through the skill's Wireshark and Zeek filter examples on sample captures.
Frequently asked questions
How do I install the analyzing-network-traffic-for-incidents skill?
Download the ZIP from this page and unzip it. Put the folder in ~/.claude/skills/ for personal use or in a project's .claude/skills/ folder for one project. You can also upload it in the Claude apps under Settings, Capabilities, Skills.
What do I need installed to use this skill?
You need Wireshark or tshark, and tcpdump for live capture. Zeek logs such as conn.log and dns.log are needed if you analyse Zeek output. Python 3 with scapy is optional, because the script falls back without it.
Is the Network Traffic Incident Analysis skill free to use?
The skill is licensed under Apache-2.0, as listed on this page. Check the licence file in the download for the full terms. The tools it relies on, such as Wireshark and Zeek, are separate installs with their own licences.
Does the skill capture network traffic for me?
The skill's playbook explains how to capture traffic with tcpdump and how to obtain Zeek logs and NetFlow data. Live capture needs the right access to the network, such as a tap or SPAN port, and written authorisation.
Is this skill a good alternative to host-based forensic tools?
No. The skill states that host-based investigations such as process execution and file system artifacts need endpoint forensics tools. Use it alongside those tools for network evidence.
Can I use this skill for general network troubleshooting?
It is not designed for that. The content is aimed at incident response and security investigation of suspected breaches, so routine troubleshooting is better served by other tools.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
This skill suits security analysts and incident responders who investigate suspected breaches with packet captures, Zeek logs or NetFlow, and teams that want one consistent workflow. It is less suitable for host-based investigations, live networks without authorisation, or general network troubleshooting, where endpoint or operations tools are a better fit.
Download the skill