The situation is the same for today's software, Mr. Picard. Programmers produce operating systems that are incomplete to which we attach information-processing software that is itself incomplete.
You are asking me whether artificial intelligence will be better. I have been told that supposedly cutting-edge security measures to prevent that kind of behaviour does exist. However, I do not believe that the new software will be free from all flaws.