There are entire MCUs that fit into the volume of an Ethernet connector's shielding. So there would be no visual way to tell if one were present on a board, unless the shielding or connector design was different.
Industrial X-Ray capability is trivially accessible and is frequently used for relatively simple tasks like ensuring an assembly is put together properly or that the correct part was ordered etc.