>>30237055I'd breed with a lot of non-legit mons if you catch my drift
besides that you sound awfully confused about how pokemon are stored as data. PIDs aren't made based on the parents, they're made based on the IVs, or at least they used to be. there is no "hacked gene", and that's even if there was a way to reverse-search and see if a gen 7 mon's PID could be generated based on the trainer's ID and SID for every given frame of all time (and some data from the physical DS, if it's anything like gen 5)
so there's not even a way to detect a mon that was hacked directly, much less one that was the offspring of a hack