Hol up. So what stops you from uploading custom photo + metadata onto random chip and planting it in a fake passport?
Countries like UK actually have publicly database for e-visas (share code) that can easily be verified via online API. So probably at least some foreign governments can cross validate some of passport data with each other.