If fundamental civil and religious liberties are to survive an era of artificial intelligence and mass surveillance, scientists urgently need to prioritize research that can reliably inform courts and also bolster people’s resilience to the forces that hinder our basic rights.