C2 protocol specification reconstruction
c2_protocol_analyzeReconstruct a C2 protocol specification from authorized source code, binaries, or packet captures, documenting framing, fields, byte order, and command IDs for defensive analysis.
Instructions
Reconstruct the C2 protocol specification from authorized source (struct definitions, command-ID defines, send/recv ordering), from a binary (string tables and constants), or from an authorized packet capture (offline message framing, headers, message types, lengths, field offsets, byte order and command identifiers, each with confidence and provenance). Emits a c2_protocol_spec knowledge record. Documentation of the protocol for defensive understanding only — never connects to a live C2 and never builds a client or server.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "c2_protocol_analyze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | No | Binary sample inside the workspace. | |
| pcapPath | No | Authorized PCAP/PCAPNG capture inside the workspace; TCP streams are reassembled and framed offline (documentation only). | |
| sourcePath | No | Authorized source file or directory inside the workspace. | |
| protocolHints | No | Analyst-supplied protocol hints. |