It shall be the duty of the department to prosecute all suits, at law or in equity, that may be necessary to protect the rights of the State in matters of property connected with the prisons and their management, such suits to be prosecuted in the name of the department.