It is not a mystery anymore. In Iron Man 2, we saw the Russian physicist made such Iron Man suits that can't be operated from the inside. Remember how Agent Rhodes got confined in that suit and could not leave it. The villain in this movie who held the president captive is a scientist himself. As we saw, at the end of Iron Man 2, the suit was retained by the United States government. However, Rhodes took it away. It is presumable no new upgrades have been done to it (at least not shown). So the suit still remains vulnerable and, as @Avner rightly commented, the villain possibly got the equipment to control the suit and connected to it during the upgrade by AIM.