
Reverse Engineer that USB Device in Style
A new open-source tool called usb-rea automates the reverse engineering of proprietary USB devices, allowing users to capture, annotate, and generate drivers for peripherals like RGB controllers and CPU coolers.
Proprietary drivers and dedicated applications often block open-source hackers from interacting with hardware. Emir Mrkaljević’s usb-rea tool aims to solve this by automating the reverse engineering of USB devices.
The workflow involves starting a capture, annotating actions with commands like 'brightness 0%', and then stopping the capture. The tool then generates a report, a Python driver, and a Lua dissector for Wireshark.
Usb-rea timestamps all USB traffic relative to the user’s actions, making it easier to correlate commands with device responses. It also includes an MCP file, which could enable automated, closed-loop control of the device.
Users can check if their device’s Vendor ID (VID) and Product ID (PID) are already in the tool’s dataset using the 'usb-rea lookup' command. The dataset currently includes many computer peripherals, such as RGB controllers and CPU coolers.
The tool is not a silver bullet for reviving abandoned peripherals, as the proprietary driver must still be running during the recording phase. However, it provides a powerful way to document protocols before manufacturers abandon them.