Machine learning hones weapons of maldoc destruction