protocol-reverse

protocol-reverse is a skill for Claude Code, Codex from Mouseww/anything-analyzer. It costs 30 tokens per session (1,140 once invoked), scanned A, a copy of protocol-reverse, Apache-2.0.

A workflow for figuring out how a network message format works from packet captures, client logs, or binary samples. It covers custom protocols as well as formats such as Protobuf, gRPC, WebSocket frames, and MQTT.

In plain words
What is it for?
Use it to inspect PCAP files, compare messages, recover frame layouts, identify serialization formats, and draft protocol dictionaries or Wireshark dissectors.
Why use it?
It helps turn raw network traffic into a description of message fields, lengths, checksums, encryption, and connection states.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect PCAP files, compare messages, recover frame layouts, identify serialization formats, and draft protocol dictionaries or Wireshark dissectors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mouseww/anything-analyzer/protocol-reverse
About the project

Anything Analyzer is a protocol-analysis toolkit that captures traffic from browsers, desktop and terminal programs, scripts, mobile devices, and other equipment, then uses AI to analyze the resulting requests. It combines browser capture, MITM proxying, JavaScript hooks, fingerprint spoofing, and MCP integration so AI agents and IDEs can inspect APIs, encryption, security issues, and service calls. The catalogue skills expose these capture and analysis workflows to agent tools.

Mouseww/anything-analyzer · 3,775 stars · on GitHub

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.

Any agent
npx skills add Mouseww/anything-analyzer --skill protocol-reverse
Clone the repo
git clone --depth 1 https://github.com/Mouseww/anything-analyzer

Made for: Claude Code, Codex.

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 protocol-reverse

README.md
[![agentmods](https://agentmods.dev/badge/skills/mouseww/anything-analyzer/protocol-reverse/github.svg)](https://agentmods.dev/skills/mouseww/anything-analyzer/protocol-reverse)
Your own site
<a href="https://agentmods.dev/skills/mouseww/anything-analyzer/protocol-reverse"><img src="https://agentmods.dev/badge/skills/mouseww/anything-analyzer/protocol-reverse/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 protocol-reverse

Your own site · 80×15
<a href="https://agentmods.dev/skills/mouseww/anything-analyzer/protocol-reverse"><img src="https://agentmods.dev/badge/skills/mouseww/anything-analyzer/protocol-reverse.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,140 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00030 $0.01140
Opus 5.5 $0.00012 $0.00456
Sonnet 5.5 $0.00006 $0.00228
Haiku 4.5 $0.00003 $0.00114

Measured 9d ago against content hash f8408273d7ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

protocol-reverse 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 9d 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.

Origin

This is a copy

100% identical to protocol-reverse — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

resources/skills/reverse-skill/protocol-reverse/SKILL.md · 98 lines

How it starts

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

Protocol Reverse Engineering

ACTION REQUIRED(读完后立刻执行)

  1. NOW: 读取 ../field-journal/precedent-reverse.md — 确认授权与常规操作边界
  2. NOW: 确认任务是否为协议/流量/序列化格式逆向(非纯 Web 参数签名 → 转 js-reverse/)
  3. NOW: 若有目标网络交互 → ../scripts/case-init.ps1 完成 scope;auth 未 granted 禁止对目标 ACT
  4. NEXT: 读取 ../tool-index.md;缺工具 bootstrap(tshark/wireshark 等可能需手动)
  5. ACT: 进入工作流 Phase 1,产出帧布局或消息字典草稿

适用场景

  • 自定义 TCP/UDP 二进制协议
  • Protobuf / gRPC / FlatBuffers / MessagePack
  • WebSocket / MQTT / 私有 RPC
  • PCAP / PCAPNG 还原字段与状态机
  • 客户端-服务端校验、序列号、加密帧头

不走本 skill

情况 去哪
仅 HTTP 参数签名 / JS 加密 js-reverse/
仅 TLS 证书问题 pentest-tools/ 或浏览器代理
固件内协议栈深挖 + 仿真 firmware-pentest/ 后再回本 skill

工作流

Phase 1 — 采集与分诊

□ 拿到样本:PCAP / 代理导出 / 客户端日志 / 二进制
□ 标记方向:C→S / S→C;是否有握手、心跳、重连
□ 固定头?魔数?长度字段?TLV?定长?
□ 是否压缩(zlib/gzip/lz4)或加密(AES/ChaCha 帧内)
□ tshark -r cap.pcap -T fields -e frame.number -e ip.src -e tcp.payload

Phase 2 — 帧布局还原

□ 对齐多个同类消息,找不变字节 / 自增序列号
□ 长度字段:大端/小端、含头/不含头
□ 校验:CRC16/32、checksum、HMAC 位置
□ 画出状态机:Connect → Auth → Ready → Request/Response → Close
□ 工具:Wireshark 自定义 dissector 草稿 / ImHex / 010 Editor 模板 / Kaitai Struct

Phase 3 — 序列化与加密

□ Protobuf:.proto 恢复(blackboxprotobuf / pbtk / protoc --decode_raw)
□ gRPC:HTTP/2 headers + protobuf body
□ 加密:找密钥派生(客户端 so/dll/JS)→ 联合 ida-reverse / js-reverse / apk-reverse
□ 重放:仅在授权 scope 内;先无害字段再敏感操作

Phase 4 — 产物

MUST 产出:
- 消息类型表(name / opcode / fields)
- 至少 1 条可复现的解码命令或脚本
- Evidence:原始 hex 摘录 + 解码结果(脱敏)

工具链

工具 必需 用途 自举
tshark / Wireshark 强烈建议 PCAP 解析 手动 / winget
Python3 是 解码脚本 系统
blackboxprotobuf 可选 未知 protobuf pip
ImHex / 010 可选 结构模板 手动
IDA / r2 / Ghidra 按需 客户端序列化函数 见对应 skill

参考

  • references/protocol-workflow.md — 帧布局与 Protobuf 速查
  • 相关:../ida-reverse/ ../js-reverse/ ../firmware-pentest/ ../pentest-tools/

路由上下文

上游: MASTER-ROUTING R21 · routing.md
下游: 需客户端算法 → ida-reverse/js-reverse;需利用重放 → pentest-tools/api-security
同级: malware-analysis(C2 协议)、digital-forensics(流量取证)

Read the full file on GitHub · 98 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 98 lines · 30 tokens per session scan A f8408273d7ba

Subscribe to this mod's changes

protocol-reverse is a skill published in the GitHub repository Mouseww/anything-analyzer (3,775 stars, last pushed 10d ago), licensed Apache-2.0. It adds 30 tokens to every session and 1,140 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to protocol-reverse, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

stealth-browser-mcp

Use this skill when operating stealth-browser-mcp from an AI agent or MCP client for browser automation, page inspection, element interaction, screenshots, file uploads, CDP commands, network debugging, cookies/storage, stealth setup, or reliable multi-step browser workflows. It provides the correct tool order, state…

vibheksoni/stealth-browser-mcp · 76 tokens

omh-code-review

This is an OMH code-review workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

rlaope/oh-my-hermes · 48 tokens

omh-rust

This is an OMH rust workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

rlaope/oh-my-hermes · 74 tokens

redteam-web-detail-pack

Routing and boundary guidance for authorized general web application security testing. Use as a web testing router when the attack surface should be dispatched to more specific web vulnerability skills.

Netw0rkNoob/VulnClaw · 38 tokens

android-pentest

A guide for authorized security testing of Android apps, covering APK inspection, runtime testing, traffic capture, code review, and function hooking. An APK is the installable package used by an Android app.

Netw0rkNoob/VulnClaw · 32 tokens

manage-schemas

Creates, views, edits, deletes, and validates note schemas for the MCP Task Orchestrator in .taskorchestrator/config.yaml — the templates that define which notes agents must fill at each workflow phase. Also recommends schema designs from a library of workflow patterns (autonomous coding loops, spec-driven teams…

jpicklyk/task-orchestrator · 212 tokens