@elly GNOME does have a USBGuard integration, though the last time I looked at it it would need some adjustments to work well on phones (it's clearly made for desktop use cases). All the needed building blocks are already there at least. USBGuard itself is used on the Librem 5 by default to not let the modem firmware impersonate another device, but it's not used for the USB-C port yet (though the user can add any rule they want, of course).