Based on my research the best USB device can do is to trick the OS believing its device type A while it is device type B.
However it can never auto install a custom driver or auto execute a program/command when plugged in given that auto play is turned off (which is the default for Windows 10/11)
Now comes the interesting part. I recently purchased a Razor mouse and when I plugged it in a prompt popped up asking me if I want to install their gaming software. The question is how did they do it?
I took a deeper look and the exe is located in C:\Windows\Installer\Razer\Installer\App
Is my previous understanding of USB wrong that it actually has the power to copy files onto disk and execute them by just plugging the device in?
And no I have never installed any Razor software before.