Information and Communications Technology Minister Anudit Nakhonthap brought the student to a press conference Wednesday.
Anudit said the student surrendered on his own and promised to use his IT expertise to help the ICT Ministry to fight against other hackers.
The student surrendered to police on Tuesday, Anudit said.
He was identified as Ekkawit Thongdeeworakul.