This is a joke, but it could actually be a thing. An isolator that you can use to protect your device while using those unknown ports. I would call it an isolator though, or firewall, not what you called it.
https://www.zdnet.com/article/protect-your-data-with-a-usb-c...
https://lifehacker.com/use-a-usb-condom-to-protect-your-devi...
[1] https://needgap.com/problems/73-usb-type-c-condom-usb-cybers...
Oh, I didn't know that! So what is the solution for USB-C? How do the new USB condoms work?