Open-source AI used on phones and in cars can lose their safeguards, but university scientists find retraining these reduced models restores the protections.