AI can only do those things it's set to do. Yes, it can find interesting combinations and patterns, which makes in a very helpful tool. But it has no hands. It can neither attack us nor even cause problems unless we give it that ability. I don't understand the concerns. They seem utterly irrational.
Perhaps the thinking is that there will an AI-war between nations, say between U.S. and China, where each side tells its AI to invade the other to cause them pain. Like China tells its AI to shut down the US power grid. US tells its AI to stop Chinese naval maneuvers. And in doing that, each AI gains control over the other nations physical resources, after that, if the command were to use that control to cause harm, then I suppose we could suffer as a result. That seems like the most likely harmful scenario, but also not a power I would expect either side would grant to its AI.
Maybe the good science fiction story here is what happens when one nation or a terrorist group sends an AI into another nation to take over something (power, weapons, etc.), and then the target nation in trying to stop it, engages its own AI and somehow they blend together as they work to reprogram the AI to weaken it, but results in some form of Internet-based Ultron.
But hard to see how that's more than a science fiction story as it would require high levels of stupidity and consensus among experts around that stupidity. I would rate the likelihood of a catastrophic result (as in anything that could be described as wiping out civilization or degrading our standard of living by hundreds of years or more) from AI at under 1%. Not impossible, but improbable in the extreme.