Unauthorized access or modification of any government website, even if it is left openly accessible, is illegal under laws such as the Computer Fraud and Abuse Act (CFAA) in the U.S.
Modification of the site is as unauthorized as access to the site -- undefined.