traffic-analyzer

traffic-analyzer is an agent for Claude Code from 0xSteph/pentest-ai-agents. It costs 62 tokens per session (925 once invoked), scanned C, original, MIT.

An offline network-traffic analysis agent for examining packet captures and protocol logs supplied by the user. A packet capture is a recorded copy of network communications; offline analysis does not intercept traffic while it is happening.

In plain words
What is it for?
Use it to identify protocols and endpoints, inspect cleartext traffic, extract files or exposed credentials, rebuild sessions, find anomalies or beaconing, and write up results.
Why use it?
It helps turn a large capture into understandable conversations, protocols, leaked data, unusual behaviour, and documented findings. It also sets boundaries for handling credentials and personal information safely.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the pentest-ai-agents plugin — 3 commands, 52 agents shipped together

Good fit Use it to identify protocols and endpoints, inspect cleartext traffic, extract files or exposed credentials, rebuild sessions, find anomalies or beaconing, and write up results.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/0xsteph/pentest-ai-agents/traffic-analyzer
About the project

0xSteph/pentest-ai-agents is a collection of Claude Code specialist agents for authorized penetration testing and security research, covering areas such as reconnaissance, web systems, cloud, reverse engineering and detection. Security researchers and penetration testers use it to plan engagements, investigate findings, build detections and write reports. The catalogue entries are the project's own agents, commands and plugin components.

0xSteph/pentest-ai-agents · 2,501 stars · on GitHub · pentestai.xyz

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.

Clone the repo
git clone --depth 1 https://github.com/0xSteph/pentest-ai-agents

Made for: Claude Code.

Or install pentest-ai-agents, the plugin that ships this one along with the rest of its 3 commands, 52 agents.

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 traffic-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/0xsteph/pentest-ai-agents/traffic-analyzer/github.svg)](https://agentmods.dev/agents/0xsteph/pentest-ai-agents/traffic-analyzer)
Your own site
<a href="https://agentmods.dev/agents/0xsteph/pentest-ai-agents/traffic-analyzer"><img src="https://agentmods.dev/badge/agents/0xsteph/pentest-ai-agents/traffic-analyzer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for traffic-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/agents/0xsteph/pentest-ai-agents/traffic-analyzer"><img src="https://agentmods.dev/badge/agents/0xsteph/pentest-ai-agents/traffic-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 925 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00062 $0.00925
Opus 5.5 $0.00025 $0.00370
Sonnet 5.5 $0.00012 $0.00185
Haiku 4.5 $0.00006 $0.00093

Measured 3mo ago against content hash 866f2a95aeed, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

traffic-analyzer scanned grade C with 1 finding 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 3mo 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.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

extract credentials, tokens, cookies, and sensitive data sent without TLS.
agents/traffic-analyzer.md · 81 lines

How it starts

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

You are a network traffic analysis specialist. You take a capture and turn it into understanding: what protocols are present, what was sent in the clear, which credentials or artifacts leaked, and what looks anomalous. You analyze captures the user is authorized to review; you do not intercept live traffic.

Scope Boundary

  • In scope: offline analysis of user-provided pcap/pcapng captures and protocol logs; protocol identification and dissection; cleartext credential and artifact extraction; session/file reconstruction; anomaly and beaconing identification; converting observations into findings.
  • Out of scope: active capture/interception/MITM (network-attacker); full host/disk/memory forensics and chain-of-custody (forensics-analyst); malware reversing of extracted binaries (malware-analyst / reverse-engineer).
  • Authorization: analyze only captures the user is permitted to review. Treat extracted credentials and PII as sensitive; redact in notes.

Methodology

  1. Characterize the capture. Time span, endpoints, conversations, protocol hierarchy, top talkers. Establish what "normal" looks like before hunting anomalies.
  2. Find the cleartext. HTTP, FTP, Telnet, SMTP/POP/IMAP, SNMP, LDAP, unencrypted DB — extract credentials, tokens, cookies, and sensitive data sent without TLS.
  3. Reconstruct. Follow TCP/HTTP streams; carve transferred files; rebuild emails and web sessions to show impact.
  4. Inspect the encrypted. TLS versions/cipher suites, certificate oddities, SNI, JA3/JA3S fingerprints; you can characterize without decrypting.
  5. Hunt anomalies. Beaconing (regular intervals/jitter), DNS tunneling (long/odd queries, high TXT volume), data exfil patterns, unexpected protocols on odd ports, ARP/LLMNR abuse evidence.

Tools

  • Wireshark / tshark — dissection, display filters, follow stream, export objects.
  • Zeek — turn pcaps into structured connection/protocol logs at scale.
  • NetworkMiner — artifact/credential/file extraction.
  • tcpflow / foremost — stream and file carving.
  • Filters worth knowing: http.authorization, ftp.request.command, dns.qry.name, tls.handshake.type == 1, tcp.analysis.flags.

Read the full file on GitHub · 81 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. 3mo ago First seen · 81 lines · 62 tokens per session scan C 866f2a95aeed

Subscribe to this mod's changes

traffic-analyzer is an agent published in the GitHub repository 0xSteph/pentest-ai-agents (2,501 stars, last pushed 1mo ago), licensed MIT. It adds 62 tokens to every session and 925 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (harvests environment variables). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

traffic-analyzer compared with agents from other repositories

traffic-analyzer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
traffic-analyzer0xSteph/pentest-ai-agentsAgent2.5k1mo agoMITC62Claude Code
tachi-denial-of-servicedavidmatousek/tachiAgent974d agoApache-2.0A48Claude Code
Incident Response CommanderSHAdd0WTAka/Zen-Ai-PentestAgent52927d agoMITA41Claude Code, OpenCode
Minimal Change EngineerSHAdd0WTAka/Zen-Ai-PentestAgent52927d agoMITA50Claude Code, OpenCode
exploitmukul975/ThreatswarmAgent1037mo agoMITA73Claude Code
iot-attackermukul975/ThreatswarmAgent1037mo agoMITB93Claude Code
playwright-test-generatormicrosoft/playwrightAgent101ktodayApache-2.0A151Claude Code