Machines Behaving Badly