Evolutionary Dynamics of Viral Attenuation