Securing The Mind of Machines