Adversarial methods in machine learning - a federated defense and an attack