USB has ALWAYS allowed it to supply Power to the connected device. USB-C is simply allowing greater power to be supplied and provide enough power to charge a laptop, however the pins are separate for Data and Power. As such whilst you can provide greater power over USB-C the Power Pins are not connected to the Data Pins ( and not a good idea to try shoving power into the Data Pins on the port on your laptop )
Data Pins and Power Pins may be in the same connector but once inside they aren't connected in a way that Data can be sent over the Power pins or Power over the Data to charge your laptop.
As such whilst it is possible to hack via the usb-c port, then it was perfectly possible over usb prior to USB-C, and thunderbolt and firewire as well.
https://techcrunch.com/2014/12/18/this-little-usb-necklace-hacks-your-computer-in-no-time-flat/
Case being the same person doing similar thing over USB-A back in 2014.
Basically if you would expect this to work over the mains power cabling then would need the USB Device plugged into something that will power it and put Data onto the Mains.
Then at the Outlet would need something that would take the Data OFF the Mains and place onto the Data Pins at the USB Outlet, as well as provide Power to the Power Pins without putting power on the Data pins Due to the nature of USB then would need one device at every outlet as such for this to work.
Again could do that with regular USB as well.
Data and Power over USB is like Power over Ethernet. In Power over Ethernet then Data Uses 2 of the 4 pairs and you then supply power over the normally unused 2 pairs.
USB-C has a 24-pin double-sided connector provides four power-ground pairs, two differential pairs for USB 2.0 data bus (though only one pair is implemented in a Type-C cable), four pairs for super-speed data bus, two "sideband use" pins, and two configuration pins for cable orientation detection, dedicated
biphase mark code (BMC) configuration data channel, and VCONN +5 V power for active cables.
Power and Data is SEPARATE on the Cable, you aren't using the same Pins on the cable for Data and Power.
If you want to stop it then either use a Power Only Cable when charging, or the Apple USB-C Digital AV Multipart Adaptor as the USB-C port on that is Power Only so Data won't get through.
As such should be providing the same level of diligence as should have been doing for years.
1.) Don't plug unknown devices into your laptop
2.) Use software that controls what you can do with your USB ports ( and any other port on your laptop ) As such can block unknown devices from getting access, as in Network Adaptors etc.
Nothing NEW here