malware can be highly inhomogeneous. Platform diversity, contact list utilization by the
malware, clustering in the network structure, etc., can also lead to differing spreading rates.
In this paper, a general formal framework is proposed for leveraging such heterogeneity to
derive optimal patching policies that attain the minimum aggregate cost due to the spread of
malware and the surcharge of patching. Using Pontryagin's Maximum Principle for a …