Machine learning defense applications