LEGAL SAFEGUARDS FOR MACHINE LEARNING: A FRAMEWORK FOR DEFENSE