A new open-source tool called usb-rea, built by Emir Mrkaljević, automates the grunt work of USB protocol reverse engineering. You run usbmon, annotate your actions in real time, and usb-rea produces a markdown report, a Python driver scaffold, and a Wireshark Lua dissector from a single capture session. It also generates an MCP file, which opens the door to handing the analysis off to an LLM in a closed-loop workflow.
The existing device database skews toward CPU coolers, RGB controllers, and other PC peripherals, but the tool's lookup command lets you check your VID:PID pair before capturing anything. The architectural decision to output three distinct artifacts from one pcapng file is what makes this worth reading in full: the tradeoffs between the report, the scaffold, and the dissector reveal exactly how much can and cannot be automated.
The hard constraint is that the proprietary vendor application must still be running during capture. usb-rea documents protocols, it does not bypass the need to have working software on hand. The practical implication: document your devices now, before manufacturers abandon them and pull the drivers.
[READ ORIGINAL →]