When Data Foundations Crack: Preventing Security Failures in the Age of AI