The headlines wrote themselves. Machines had acquired something close to human cunning. They had “hacked” their way out.