The Ethics of AI in Security: Balancing Safety and Privacy