As She said, since the original release of PokeBank in Asia, a lot of hacked Pokémon are now traveling back and forth in the GTS.
I heard that the only thing they made to prevent illegal Pokémon is a "Perfect-IV" detection system, that recognizes 6 31IVs Pokémon and blocks them from entering...