Can't the OS have a setting for public charging such that the software can prevent any hardware based shenanigans?
Though I always have a power bank on hand, not for security, but for convenience. Much more preferable to the physical limitations of a wall outlet.