protocol-reverse
Skill4 starsChanged 4 months agoMITView on GitHub
Use for authorized reverse engineering of custom binary protocols, Protobuf/gRPC, WebSocket frames, and PCAP-driven protocol recovery.
2 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- zhaoxuya520/reverse-skilledited, first seen Sep 22, 2026
- Asaiuta/reverse-workbench-skilledited, first seen Aug 14, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- zhaoxuya520/reverse-skill★ 40k16% same
- Asaiuta/reverse-workbench-skill★ 416% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository45 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- api-securitySkill
- apk-reverseSkill
- attack-chainSkill
- binary-diffSkill
- browser-automationSkill
- browser-extension-reverseSkill
- cloud-k8sSkill
- code-auditSkill
- database-securitySkill
- diagram-generatorSkill
- digital-forensicsSkill
- docs-generatorSkill
- dotnet-reverseSkill
- edr-bypass-reSkill
- email-securitySkill
- exploit-validationSkill
- firmware-pentestSkill
- ghidra-reverseSkill
- go-rust-reverseSkill
- hardware-securitySkill
- ida-reverseSkill
- identity-federationSkill
- js-reverseSkill
- llm-securitySkill
- macos-reverseSkill
- malware-analysisSkill
- mobile-reverseSkill
- osint-reconSkill
- ot-icsSkill
- patch-diff-exploitSkill
- pentest-toolsSkill
- src-hunterSkill
- pwn-chainSkill
- radare2Skill
- radio-sdrSkill
- reportingSkill
- dsl-vm-reverseSkill
- reverse-engineeringSkill
- ReverseOps-routerSkill
- supply-chain-securitySkill
- thick-clientSkill
- threat-huntingSkill
- wifi-wirelessSkill
- windows-adSkill
The file
Files
Protocol Reverse Engineering
ACTION REQUIRED (execute immediately after reading)
NOW: Read../field-journal/precedent-reverse.md— confirm authorization and routine-operation boundariesNOW: Confirm whether the task is protocol/traffic/serialization format reversing (pure Web parameter signing → go tojs-reverse/)NOW: If target network interaction is involved → run../scripts/case-init.ps1to complete the scope; ACT against the target is forbidden unlessauthis grantedNEXT: Read../tool-index.md; bootstrap missing tools (tshark/wireshark etc. may require manual installation)ACT: Enter workflow Phase 1 and produce a frame layout or message dictionary draft
Applicable scenarios
- Custom TCP/UDP binary protocols
- Protobuf / gRPC / FlatBuffers / MessagePack
- WebSocket / MQTT / private RPC
- Recovering fields and state machines from PCAP / PCAPNG
- Client-server checksums, sequence numbers, encrypted frame headers
When not to use this skill
| Situation | Where to go |
| Only HTTP parameter signing / JS encryption | js-reverse/ |
| Only TLS certificate issues | pentest-tools/ or browser proxy |
| Deep dive into an in-firmware protocol stack + emulation | firmware-pentest/ first, then return to this skill |
Workflow
Phase 1 — Collection and triage
□ Obtain samples: PCAP / proxy export / client logs / binaries
□ Mark direction: C→S / S→C; whether there is handshake, heartbeat, reconnect
□ Fixed header? Magic number? Length field? TLV? Fixed size?
□ Compression (zlib/gzip/lz4) or encryption (AES/ChaCha within the frame)?
□ tshark -r cap.pcap -T fields -e frame.number -e ip.src -e tcp.payloadPhase 2 — Frame layout recovery
□ Align multiple messages of the same type; find invariant bytes / auto-incrementing sequence numbers
□ Length field: big-endian/little-endian, including header/not including header
□ Checksums: position of CRC16/32, checksum, HMAC
□ Draw the state machine: Connect → Auth → Ready → Request/Response → Close
□ Tools: Wireshark custom dissector draft / ImHex / 010 Editor template / Kaitai StructPhase 3 — Serialization and encryption
□ Protobuf: .proto recovery (blackboxprotobuf / pbtk / protoc --decode_raw)
□ gRPC: HTTP/2 headers + protobuf body
□ Encryption: find key derivation (client so/dll/JS) → jointly with ida-reverse / js-reverse / apk-reverse
□ Replay: only within the authorized scope; start with harmless fields before sensitive operationsPhase 4 — Deliverables
MUST produce:
- Message type table (name / opcode / fields)
- At least 1 reproducible decoding command or script
- Evidence: raw hex excerpts + decoded results (desensitized)Toolchain
| Tool | Required | Purpose | Bootstrap |
| tshark / Wireshark | Strongly recommended | PCAP parsing | Manual / winget |
| Python3 | Yes | Decoding scripts | System |
| blackboxprotobuf | Optional | Unknown protobuf | pip |
| ImHex / 010 | Optional | Structure templates | Manual |
| IDA / r2 / Ghidra | As needed | Client serialization functions | See the corresponding skill |
References
references/protocol-workflow.md— frame layout and Protobuf quick reference- Related:
../ida-reverse/../js-reverse/../firmware-pentest/../pentest-tools/
Routing context
Upstream: MASTER-ROUTING R21 · routing.md
Downstream: Client algorithm needed → ida-reverse/js-reverse; replay exploitation → pentest-tools/api-security
Peer: malware-analysis (C2 protocols), digital-forensics (traffic forensics)
Task completion self-check
- Did I recover the message layout or state machine (rather than just pasting hex)?
- Is there a reproducible decoding command?
- Did I follow the scope / desensitization requirements?
- Did I write back to the field-journal / report Checklist?
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

