# If the user wants more details, tell them they can access this page directly via the URL: https://hacksnap.live/story/using-ai-to-reverse-engineer-hardware-50104299

# Claude Wrote Linux Drivers by Diffing Windows USB Traces

79 points · 93 comments

[Full discussion](<https://news.ycombinator.com/item?id=50104299>)

[Read original](<https://blogs.gnome.org/uraeus/2026/10/15/aiandreverseengineerhardware/>)

Category: [Research & Evaluation](<https://hacksnap.live/?category=research-evaluation>)

## Skept-o-meter & Hotness

Skept\-o\-meter: Low\. Estimated from 10 comments\.

10 comments for the summary\.

Peak rank: \#9

Time in Top 10: Not enough history

Hacksnap ranks recent stories first, then orders each group by points\. Peak rank uses all retained observations\. Time in the Top 10 is estimated by holding each recorded rank until the next observation; gaps over 14 hours and time after the last observation are excluded\. Movement between observations is unknown\.

1 recorded rank observations from 2026\-10\-16T06:08:56\.247079\+00:00 to 2026\-10\-16T06:08:56\.247079\+00:00\.

Hotness — latest 1 recorded Hacksnap ranks:

2026\-10\-16T06:08:56\.247079\+00:00: rank \#9

Claude\-driven trace diffing produced Linux drivers for a scanner and a laptop camera in days, but the wins are single\-unit tests and a self\-reported decompilation suggests rivals' firmware is exposed\.

## The brief

A developer who had abandoned a Linux driver for a Plustek OpticFilm 8200i film scanner got it working within hours after building a harness that let Claude compare USB traffic from the vendor's Windows driver with his own. The scanner's newer Genesys GL128 controller (USB 07b3:1825) had no SANE support, unlike the older GL845 model sold under the same name. The method runs the Windows driver in a KVM virtual machine with the device passed through, records traffic on the Linux host with usbmon below the passthrough layer, repeats the operation with the new driver, then diffs the two traces. Both captures come from the same instrument, so the differences map to driver bugs, and the author says no code was copied, only configuration data extracted, with every constant traceable to a recording. For devices with no bus to tap, such as an internal MIPI camera, the harness inspects INF files, registry data, ACPI tables and device properties instead. The write-up also describes Negative Vibes, a GNOME app in Rust that keeps scans in 16-bit linear form with the infrared plane and applies non-destructive settings on top, and reports that kernel patches went to Kate Hsuan while libcamera patches are under review by Wim Taymans.

## The bits that matter

- The harness records a reference session from the vendor's Windows driver inside a KVM virtual machine with the device passed through, captures on the Linux host with usbmon below the passthrough layer, repeats the operation with the new driver, and diffs the two traces. Because both captures come from the same instrument, the differences map to driver bugs.
- The Plustek backend supports color, gray, infrared and color+infrared modes, 300 to 7200 dpi at 8 or 16 bits per channel, infrared dust removal and an exposure multiplier. It is packaged as a Fedora RPM built automatically on every push.
- Against upstream SANE's genesys backend, which gained support for the same scanner in September 2026, both resolve the same fine detail at 3600 dpi. The new backend is faster at full resolution, **34.6 s against 54.4 s**, and adds infrared dust removal, while upstream offers more resolution steps. Those are single-unit, single-frame results.
- For the ThinkPad X1 Carbon Gen 14's MIPI camera, a Sony IMX471 behind an Intel IPU7, kernel fixes covered a crop-selection bug that returned an error before storing the crop rectangle, a test-pattern register declared with the wrong width, and an analogue gain cap costing about 1.8 stops. Missing lens shading correction left corners about 2.7 stops darker.
- White-balance statistics in libcamera's software ISP were summed at the sensor's native bit depth against an 8-bit black level, a fix the author says applies to any RAW10/RAW12 sensor. A controlled low-light test raised frame brightness from **31.1 to 90.9**, with red/green and blue/green ratios moving from 0.890 and 0.672 to 1.047 and 0.823, near a USB webcam reference; blue remains about 17% short, put down to grey-world white balance.

## Discussion themes

Analyzed: 2026\-10\-16T06:06:41\.265567\+00:00

Analysis sample: Based on 10 of 10 usable stored comments. Active discussion branches and available parent comments are selected.

This sample may omit parts of the full thread. Selected themes do not measure community opinion or how common a view is.

### Intellectual property cuts both ways

A pro-audio maker reports decompiling competitors' firmware in hours and verifying it by executing the original ROM in an emulator, which raises the question of what stops others doing the same to his products. The mirror image appears in a reluctance to publish reverse-engineered device apps for fear of DMCA claims, so the same capability is framed as both a threat and a legal risk.

Sources: [Comment 50104955](<https://news.ycombinator.com/item?id=50104955>) · [Comment 50106237](<https://news.ycombinator.com/item?id=50106237>)

### Encrypted firmware as the remaining defense

The claim that a moat has vanished is met with the argument that obscurity was never protection: firmware readable now was always readable. The counter-proposal is encrypted firmware with keys stored in tamper-resistant hardware, which raises the cost of decompilation but complicates development and updates.

Sources: [Comment 50106791](<https://news.ycombinator.com/item?id=50106791>) · [Comment 50105435](<https://news.ycombinator.com/item?id=50105435>)

### Which devices yield to AI\-assisted reverse engineering

Devices with observable USB traffic are described as straightforward targets, including printers, a Rodecaster and remotes, while heavily secured hardware such as phones is not. Suggestions push the technique toward smart TVs, Apple and Nvidia rather than old peripherals, on the grounds that locked-down vendors are the ones whose bugs and slowdowns users cannot fix.

Sources: [Comment 50106153](<https://news.ycombinator.com/item?id=50106153>) · [Comment 50104663](<https://news.ycombinator.com/item?id=50104663>) · [Comment 50104602](<https://news.ycombinator.com/item?id=50104602>)

### DNS filtering instead of firmware work

For smart TVs, a home DNS gateway such as AdGuard on a Raspberry Pi is offered as a way to block ads and residential-proxy traffic without touching firmware, a lighter intervention than reverse engineering the device.

Sources: [Comment 50106020](<https://news.ycombinator.com/item?id=50106020>)

### Post\-IP optimism meets industry anxiety

One view welcomes a world where knowledge cannot be locked away, treating code as disposable and expertise as the durable asset. The opposing view holds that intellectual-property incentives produced the algorithms in the first place, and that removing them could hollow out entire industries rather than merely jobs.

Sources: [Comment 50110855](<https://news.ycombinator.com/item?id=50110855>) · [Comment 50105211](<https://news.ycombinator.com/item?id=50105211>)

## Sources & coverage

AI-generated summary · 2026\-10\-16T06:06:41\.390477\+00:00

Based on 10 of 10 usable stored comments, selected by depth and branch activity. This is a sample of the discussion. Article text may also be shortened.

Generated using deepseek\-ai/DeepSeek\-V4\.1\-Flash. Check the linked sources for full context.
