Mathematical Modeling Of Epidemics And Adversarial Learning In Distributed Systems