network-forensics

network-forensics is a skill for Claude Code from pashki975/thm-claude-kit. It costs 117 tokens per session (1,096 once invoked), scanned A, original, MIT.

A guide for examining recorded network traffic in TryHackMe rooms. It uses packet-capture files, such as PCAP files, to reconstruct what happened between computers.

In plain words
What is it for?
Use it to load and summarize a capture, follow a suspicious communication, recover files or credentials, and answer questions about hosts, ports, protocols, and timing.
Why use it?
It gives you a structured way to understand a large capture instead of reading packets at random. It helps you identify whether you are looking for credentials, transferred data, an attack, or hidden information.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/pashki975/thm-claude-kit/network-forensics
Any agent
npx skills add pashki975/thm-claude-kit --skill network-forensics
Clone the repo
git clone --depth 1 https://github.com/pashki975/thm-claude-kit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for network-forensics

README.md
[![agentmods](https://agentmods.dev/badge/skills/pashki975/thm-claude-kit/network-forensics.svg)](https://agentmods.dev/skills/pashki975/thm-claude-kit/network-forensics)
Your own site
<a href="https://agentmods.dev/skills/pashki975/thm-claude-kit/network-forensics"><img src="https://agentmods.dev/badge/skills/pashki975/thm-claude-kit/network-forensics.svg" alt="Measured on agentmods" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,096 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00117 $0.01096
Opus 5 $0.00059 $0.00548
Sonnet 5 $0.00023 $0.00219
Haiku 4.5 $0.00012 $0.00110

Measured 5d ago against content hash ac46e05fd691, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

network-forensics scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/network-forensics/SKILL.md · 65 lines

How it starts

The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Network Forensics Methodology

A capture room is NOT recon→foothold→privesc. You're not attacking a host — you're reconstructing a story from traffic someone already recorded. The arc is: load → get the overview → form a hypothesis about the story → follow it → extract the answer. The /pcap command has the tshark commands; this is how to think about the capture.

0. Classify the capture task first

Read the room text — pcap rooms usually ask for one of these, and which one sets your whole path:

  • Find a credential — someone logged in over a cleartext protocol.
  • Recover a file / data — something was transferred (HTTP, FTP, SMB, TFTP) or exfiltrated.
  • Reconstruct an attack — "what did the attacker do?" scanning, brute force, exploitation, C2.
  • Answer specific questions — how many hosts, what OS, which port, what time (forensic quiz).
  • Decode exfil / covert channel — data hidden in DNS, ICMP, or an odd protocol. Name the target answer (flag string? a filename? an attacker IP? a count?) so you know when you're done.

1. Load & get the overview (always — cheap and orienting)

Never start by scrolling packets. Get the shape of the capture first:

  • Protocol hierarchy — what protocols are even present, and in what proportion.
  • Conversations / endpoints — who talked to whom, and the heavy talkers.
  • Capture duration and packet count — is this seconds or days? The overview usually tells you where the answer lives. A capture that's 90% HTTP is a web story; one with lots of DNS to one domain smells like tunneling; a burst of SYNs to many ports is a scan. Let the overview pick your branch.

2. Form the hypothesis (say it out loud)

From the overview: "the interesting thing is probably X, because Y." E.g. "creds are probably in that FTP conversation, because FTP is cleartext and there's a USER/PASS exchange." A hypothesis turns 100k packets into one thing to check.

3. Follow the story (branch by task type)

  • Credentials → isolate the cleartext-auth protocol (HTTP POST, FTP, Telnet, SMTP, POP, IMAP, SNMP community strings) and read the auth exchange. Follow the specific stream.
  • File recovery → export objects (HTTP/SMB/TFTP/FTP-DATA), or follow the transfer stream and save the raw bytes, then file/binwalk them. Carved file → hand to /steg if it's hiding more.
  • Attack reconstruction → look at timing and volume: many SYNs = port scan; repeated logins = brute force; a shell-looking stream = exploitation/C2. Build a timeline of what happened when.
  • Forensic questions → answer each precisely from filters (host count from unique IPs, OS from TTL/User-Agent, first/last timestamps, etc.).
  • Covert channel / exfil → DNS with long/odd subdomains = DNS tunneling; ICMP with payloads = ICMP exfil; decode the encoded data (often base32/base64/hex in the query names or payloads).

Read the full file on GitHub · 65 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 65 lines · 117 tokens per session scan A ac46e05fd691

Subscribe to this mod's changes

network-forensics is a skill published in the GitHub repository pashki975/thm-claude-kit (2 stars, last pushed 22d ago), licensed MIT. It adds 117 tokens to every session and 1,096 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

elvish-translation-tools

Use when translating, reviewing, or maintaining UI / document translations into Sindarin or Quenya (Tolkien's Elvish languages). Triggers include: working with a Sindarin / sjn / Quenya / qya locale file; asked to translate an English string into Elvish; reviewing existing Elvish translations for correctness; adding…

joeyparrish/elvish-translation-tools · 107 tokens

crisis-catalyst

Reframe a crisis, constraint, or setback as a forcing function for founder-mode decisions that were previously politically blocked. Based on Chesky's pandemic transformation and Andy Grove's "great companies are defined by their crises." Use when facing a serious challenge and want to use it as fuel, not just survive…

sohaibt/founder-mode · 68 tokens

founder-quiz

Take a behavioral self-assessment to discover where you sit on the founder mode spectrum. 15 questions that reveal your actual operating mode — not what you think you do, but what you actually do. Use for honest self-reflection.

sohaibt/founder-mode · 52 tokens

org-health

Diagnose organizational health against Brian Chesky's framework. Detects the division → politics → bureaucracy → complacency arc that kills founder-led companies. Use when a founder suspects their org structure is slowing them down.

sohaibt/founder-mode · 45 tokens

decision-check

Determine whether a decision is a founder-only move (requires institutional memory, passion, and permission) or a manageable decision that can be delegated. Based on Chesky's framework of what only a founder can do. Use when deciding whether to stay involved in or hand off a decision.

sohaibt/founder-mode · 59 tokens

hiring-scorecard

Score an executive or senior hire using Brian Chesky's 'guilty until proven innocent' framework. Generates a reference check script, identifies red flags, and assesses builder vs. manager fit. Use when evaluating a candidate for a senior role.

sohaibt/founder-mode · 54 tokens