If it is legal hack, it does no problem, except if you want to enter in official tournament held by Nintendo.
To sse if the pokemon is hack or not, you have to register the battle video with him and if you can't upload it on Wi-FI,
it means that the pokemon is hack.