It shall be unlawful for a person committed to the Department of Juvenile Justice in any juvenile correctional center or detained in a secure juvenile facility or detention home to commit any of the offenses enumerated in § 53.1-203. A violation of this section shall be punishable as a Class 6 felony, except that a violation of subdivision 6 of § 53.1-203 is a Class 5 felony.
Va. Code § 18.2-477.2