FWIW, I believe that all TestFlight app releases also undergo the automated portion of the App Store approval process, which would be able to catch entitlements.
If you're installing from source, that's another thing.
Their existing parser used during App Store submission already catches this. It’s the plurality of parsers on the device itself that allows this to happen when sideloading.
Most security-conscious users do not assume this. Newer iOS versions ask for credentials (and all recent smartphones that I've used ask for credential-less permission) before transferring data over USB.