As robots become more human-like, our tendency to attribute intentions to them creates new ethical and security risks.