Methods of producing a pathogen with reduced replicative fitness are disclosed, as are attenuated pathogens produced using the methods. In particular examples, the method includes deoptimizing one or more codons in a coding sequence, thereby reducing the replicative fitness of the pathogen. Methods of using the attenuated pathogens as immunogenic compositions are also disclosed.