Question: what are the chances of getting a shiny legendary in the ultra wormhole?
Answer: The wild areas in ultra wormholes have a 1/30 chance roughly to give you a shiny. But only for regular Pokémon, not legendaries or ultra beasts. Plus only a handful of regular pokemon show up in the wilds anyway. Once you enter the area, that's when the game rolls for shiny odds.