Even if it decides to be our friend and to help our species, someone will of course fork that AI and give it a negative personality and goals. Then you have the evil AI trying to hack the friendly AI that exists in our homes, and it's a battle of the robots.
Of course, whether or not AI is even possible, no one knows. If it is, I think we'll achieve it, and we'll open up a remarkable can of worms.
No: the first AI won't let them. See, we're talking a rapidly improving super-intelligence. Whatever is contrary to its goals, it will squash like a bug. A mad scientist forking the code of the AI with a different goal structure is definitely contrary to the goals of that first super-intelligence, and will be shut down before it grows into a sizeable competitor.
The result of intelligence explosion is a Singleton: the AI will be a perfectly efficient dictator. It may even shield us from the laws of physics until we graduate to adulthood.
Within a week it could pay/blackmail/manipulate some humans somewhere into developing some crude self-replicating robots or nanotech. Then almost immediately afterwards it consumes the entire Earth in a swarm of rapidly self-replicating nanobots.
...or something. How should I know what a mind literally millions of times more intelligent than me would do. It's like predicting the exact next move a chessmaster will make. I don't know, but I'm confident they'd beat me quickly.
The goal, of course, is to make an AI which won't do this. If the AI decides to terminate the human race, we've already failed making it friendly and it obviously doesn't share our goals and values. But what are our goals and values? I don't know if anyone can answer that. I'm not sure if there is a satisfactory answer.