Countries considering AI in military or surveillance should assess ethical implications and ensure human rights are respected.