Asif Rahman pleaded guilty to two counts of willful retention and transmission of national defense information, which carry a maximum sentence of 20 years.