Taking control of a computer with a USB cable?
It’s possible. Not only is it possible, the capability has been out there for four years.
Bottom line – be cautious of what you plug into your computer. Don’t use someone else’s cable, don’t let someone you don’t know well “charge their phone for a minute”.
You have to be diligent and aware of what is in and on your computer.
Now it has a fancy remote control…