Balancing data privacy and security in the age of AI-powered defenses