Would this work over WebUSB?
not really, WebUSB is on the other side of (it allows you to interact with USB devices, it can not emulate a malicious device)
you would need to use WebUSB to hack a usb device connected to the computer, overwrite it's firmware and then make it restart so that it can "hack back" into the computer
which to be fair isn't impossible, but seems unlikely to be an relevant attack vector
WebUSB lets web apps talk to USB devices that are attached to the host running the browser. It doesn't have the browser present an emulated USB device to the kernel (at least not to my knowledge).